RelativeDateFormat.html 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_05) on Thu Jul 31 14:50:41 CEST 2014 -->
  6. <title>RelativeDateFormat (JFreeChart Class Library (version 1.0.19-fx))</title>
  7. <meta name="date" content="2014-07-31">
  8. <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="RelativeDateFormat (JFreeChart Class Library (version 1.0.19-fx))";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/RelativeDateFormat.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  47. <li><a href="../../../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li><a href="../../../../org/jfree/chart/util/ParamChecks.html" title="class in org.jfree.chart.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../org/jfree/chart/util/ResourceBundleWrapper.html" title="class in org.jfree.chart.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/jfree/chart/util/RelativeDateFormat.html" target="_top">Frames</a></li>
  57. <li><a href="RelativeDateFormat.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li><a href="#nested.classes.inherited.from.class.java.text.DateFormat">Nested</a>&nbsp;|&nbsp;</li>
  78. <li><a href="#fields.inherited.from.class.java.text.DateFormat">Field</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li>Field&nbsp;|&nbsp;</li>
  85. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">org.jfree.chart.util</div>
  96. <h2 title="Class RelativeDateFormat" class="title">Class RelativeDateFormat</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <ul class="inheritance">
  100. <li>java.lang.Object</li>
  101. <li>
  102. <ul class="inheritance">
  103. <li>java.text.Format</li>
  104. <li>
  105. <ul class="inheritance">
  106. <li>java.text.DateFormat</li>
  107. <li>
  108. <ul class="inheritance">
  109. <li>org.jfree.chart.util.RelativeDateFormat</li>
  110. </ul>
  111. </li>
  112. </ul>
  113. </li>
  114. </ul>
  115. </li>
  116. </ul>
  117. <div class="description">
  118. <ul class="blockList">
  119. <li class="blockList">
  120. <dl>
  121. <dt>All Implemented Interfaces:</dt>
  122. <dd>java.io.Serializable, java.lang.Cloneable</dd>
  123. </dl>
  124. <hr>
  125. <br>
  126. <pre>public class <a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.65">RelativeDateFormat</a>
  127. extends java.text.DateFormat</pre>
  128. <div class="block">A formatter that formats dates to show the elapsed time relative to some
  129. base date.</div>
  130. <dl>
  131. <dt><span class="simpleTagLabel">Since:</span></dt>
  132. <dd>1.0.3</dd>
  133. <dt><span class="seeLabel">See Also:</span></dt>
  134. <dd><a href="../../../../serialized-form.html#org.jfree.chart.util.RelativeDateFormat">Serialized Form</a></dd>
  135. </dl>
  136. </li>
  137. </ul>
  138. </div>
  139. <div class="summary">
  140. <ul class="blockList">
  141. <li class="blockList">
  142. <!-- ======== NESTED CLASS SUMMARY ======== -->
  143. <ul class="blockList">
  144. <li class="blockList"><a name="nested.class.summary">
  145. <!-- -->
  146. </a>
  147. <h3>Nested Class Summary</h3>
  148. <ul class="blockList">
  149. <li class="blockList"><a name="nested.classes.inherited.from.class.java.text.DateFormat">
  150. <!-- -->
  151. </a>
  152. <h3>Nested classes/interfaces inherited from class&nbsp;java.text.DateFormat</h3>
  153. <code>java.text.DateFormat.Field</code></li>
  154. </ul>
  155. </li>
  156. </ul>
  157. <!-- =========== FIELD SUMMARY =========== -->
  158. <ul class="blockList">
  159. <li class="blockList"><a name="field.summary">
  160. <!-- -->
  161. </a>
  162. <h3>Field Summary</h3>
  163. <ul class="blockList">
  164. <li class="blockList"><a name="fields.inherited.from.class.java.text.DateFormat">
  165. <!-- -->
  166. </a>
  167. <h3>Fields inherited from class&nbsp;java.text.DateFormat</h3>
  168. <code>AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, numberFormat, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD</code></li>
  169. </ul>
  170. </li>
  171. </ul>
  172. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  173. <ul class="blockList">
  174. <li class="blockList"><a name="constructor.summary">
  175. <!-- -->
  176. </a>
  177. <h3>Constructor Summary</h3>
  178. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  179. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  180. <tr>
  181. <th class="colOne" scope="col">Constructor and Description</th>
  182. </tr>
  183. <tr class="altColor">
  184. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#RelativeDateFormat--">RelativeDateFormat</a></span>()</code>
  185. <div class="block">Creates a new instance with base milliseconds set to zero.</div>
  186. </td>
  187. </tr>
  188. <tr class="rowColor">
  189. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#RelativeDateFormat-java.util.Date-">RelativeDateFormat</a></span>(java.util.Date&nbsp;time)</code>
  190. <div class="block">Creates a new instance.</div>
  191. </td>
  192. </tr>
  193. <tr class="altColor">
  194. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#RelativeDateFormat-long-">RelativeDateFormat</a></span>(long&nbsp;baseMillis)</code>
  195. <div class="block">Creates a new instance.</div>
  196. </td>
  197. </tr>
  198. </table>
  199. </li>
  200. </ul>
  201. <!-- ========== METHOD SUMMARY =========== -->
  202. <ul class="blockList">
  203. <li class="blockList"><a name="method.summary">
  204. <!-- -->
  205. </a>
  206. <h3>Method Summary</h3>
  207. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  208. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  209. <tr>
  210. <th class="colFirst" scope="col">Modifier and Type</th>
  211. <th class="colLast" scope="col">Method and Description</th>
  212. </tr>
  213. <tr id="i0" class="altColor">
  214. <td class="colFirst"><code>java.lang.Object</code></td>
  215. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#clone--">clone</a></span>()</code>
  216. <div class="block">Returns a clone of this instance.</div>
  217. </td>
  218. </tr>
  219. <tr id="i1" class="rowColor">
  220. <td class="colFirst"><code>boolean</code></td>
  221. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;obj)</code>
  222. <div class="block">Tests this formatter for equality with an arbitrary object.</div>
  223. </td>
  224. </tr>
  225. <tr id="i2" class="altColor">
  226. <td class="colFirst"><code>java.lang.StringBuffer</code></td>
  227. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#format-java.util.Date-java.lang.StringBuffer-java.text.FieldPosition-">format</a></span>(java.util.Date&nbsp;date,
  228. java.lang.StringBuffer&nbsp;toAppendTo,
  229. java.text.FieldPosition&nbsp;fieldPosition)</code>
  230. <div class="block">Formats the given date as the amount of elapsed time (relative to the
  231. base date specified in the constructor).</div>
  232. </td>
  233. </tr>
  234. <tr id="i3" class="rowColor">
  235. <td class="colFirst"><code>long</code></td>
  236. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getBaseMillis--">getBaseMillis</a></span>()</code>
  237. <div class="block">Returns the base date/time used to calculate the elapsed time for
  238. display.</div>
  239. </td>
  240. </tr>
  241. <tr id="i4" class="altColor">
  242. <td class="colFirst"><code>java.lang.String</code></td>
  243. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getDaySuffix--">getDaySuffix</a></span>()</code>
  244. <div class="block">Returns the string that is appended to the day count.</div>
  245. </td>
  246. </tr>
  247. <tr id="i5" class="rowColor">
  248. <td class="colFirst"><code>java.lang.String</code></td>
  249. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getHourSuffix--">getHourSuffix</a></span>()</code>
  250. <div class="block">Returns the string that is appended to the hour count.</div>
  251. </td>
  252. </tr>
  253. <tr id="i6" class="altColor">
  254. <td class="colFirst"><code>java.lang.String</code></td>
  255. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getMinuteSuffix--">getMinuteSuffix</a></span>()</code>
  256. <div class="block">Returns the string that is appended to the minute count.</div>
  257. </td>
  258. </tr>
  259. <tr id="i7" class="rowColor">
  260. <td class="colFirst"><code>java.lang.String</code></td>
  261. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getPositivePrefix--">getPositivePrefix</a></span>()</code>
  262. <div class="block">Returns the string that is prepended to the format if the relative time
  263. is positive.</div>
  264. </td>
  265. </tr>
  266. <tr id="i8" class="altColor">
  267. <td class="colFirst"><code>java.lang.String</code></td>
  268. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getSecondSuffix--">getSecondSuffix</a></span>()</code>
  269. <div class="block">Returns the string that is appended to the second count.</div>
  270. </td>
  271. </tr>
  272. <tr id="i9" class="rowColor">
  273. <td class="colFirst"><code>boolean</code></td>
  274. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getShowZeroDays--">getShowZeroDays</a></span>()</code>
  275. <div class="block">Returns the flag that controls whether or not zero day counts are
  276. shown in the formatted output.</div>
  277. </td>
  278. </tr>
  279. <tr id="i10" class="altColor">
  280. <td class="colFirst"><code>boolean</code></td>
  281. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getShowZeroHours--">getShowZeroHours</a></span>()</code>
  282. <div class="block">Returns the flag that controls whether or not zero hour counts are
  283. shown in the formatted output.</div>
  284. </td>
  285. </tr>
  286. <tr id="i11" class="rowColor">
  287. <td class="colFirst"><code>int</code></td>
  288. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#hashCode--">hashCode</a></span>()</code>
  289. <div class="block">Returns a hash code for this instance.</div>
  290. </td>
  291. </tr>
  292. <tr id="i12" class="altColor">
  293. <td class="colFirst"><code>java.util.Date</code></td>
  294. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#parse-java.lang.String-java.text.ParsePosition-">parse</a></span>(java.lang.String&nbsp;source,
  295. java.text.ParsePosition&nbsp;pos)</code>
  296. <div class="block">Parses the given string (not implemented).</div>
  297. </td>
  298. </tr>
  299. <tr id="i13" class="rowColor">
  300. <td class="colFirst"><code>void</code></td>
  301. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setBaseMillis-long-">setBaseMillis</a></span>(long&nbsp;baseMillis)</code>
  302. <div class="block">Sets the base date/time used to calculate the elapsed time for display.</div>
  303. </td>
  304. </tr>
  305. <tr id="i14" class="altColor">
  306. <td class="colFirst"><code>void</code></td>
  307. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setDayFormatter-java.text.NumberFormat-">setDayFormatter</a></span>(java.text.NumberFormat&nbsp;formatter)</code>
  308. <div class="block">Sets the formatter for the days.</div>
  309. </td>
  310. </tr>
  311. <tr id="i15" class="rowColor">
  312. <td class="colFirst"><code>void</code></td>
  313. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setDaySuffix-java.lang.String-">setDaySuffix</a></span>(java.lang.String&nbsp;suffix)</code>
  314. <div class="block">Sets the string that is appended to the day count.</div>
  315. </td>
  316. </tr>
  317. <tr id="i16" class="altColor">
  318. <td class="colFirst"><code>void</code></td>
  319. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setHourFormatter-java.text.NumberFormat-">setHourFormatter</a></span>(java.text.NumberFormat&nbsp;formatter)</code>
  320. <div class="block">Sets the formatter for the hours.</div>
  321. </td>
  322. </tr>
  323. <tr id="i17" class="rowColor">
  324. <td class="colFirst"><code>void</code></td>
  325. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setHourSuffix-java.lang.String-">setHourSuffix</a></span>(java.lang.String&nbsp;suffix)</code>
  326. <div class="block">Sets the string that is appended to the hour count.</div>
  327. </td>
  328. </tr>
  329. <tr id="i18" class="altColor">
  330. <td class="colFirst"><code>void</code></td>
  331. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setMinuteFormatter-java.text.NumberFormat-">setMinuteFormatter</a></span>(java.text.NumberFormat&nbsp;formatter)</code>
  332. <div class="block">Sets the formatter for the minutes.</div>
  333. </td>
  334. </tr>
  335. <tr id="i19" class="rowColor">
  336. <td class="colFirst"><code>void</code></td>
  337. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setMinuteSuffix-java.lang.String-">setMinuteSuffix</a></span>(java.lang.String&nbsp;suffix)</code>
  338. <div class="block">Sets the string that is appended to the minute count.</div>
  339. </td>
  340. </tr>
  341. <tr id="i20" class="altColor">
  342. <td class="colFirst"><code>void</code></td>
  343. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setPositivePrefix-java.lang.String-">setPositivePrefix</a></span>(java.lang.String&nbsp;prefix)</code>
  344. <div class="block">Sets the string that is prepended to the format if the relative time is
  345. positive.</div>
  346. </td>
  347. </tr>
  348. <tr id="i21" class="rowColor">
  349. <td class="colFirst"><code>void</code></td>
  350. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setSecondFormatter-java.text.NumberFormat-">setSecondFormatter</a></span>(java.text.NumberFormat&nbsp;formatter)</code>
  351. <div class="block">Sets the formatter for the seconds and milliseconds.</div>
  352. </td>
  353. </tr>
  354. <tr id="i22" class="altColor">
  355. <td class="colFirst"><code>void</code></td>
  356. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setSecondSuffix-java.lang.String-">setSecondSuffix</a></span>(java.lang.String&nbsp;suffix)</code>
  357. <div class="block">Sets the string that is appended to the second count.</div>
  358. </td>
  359. </tr>
  360. <tr id="i23" class="rowColor">
  361. <td class="colFirst"><code>void</code></td>
  362. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setShowZeroDays-boolean-">setShowZeroDays</a></span>(boolean&nbsp;show)</code>
  363. <div class="block">Sets the flag that controls whether or not zero day counts are shown
  364. in the formatted output.</div>
  365. </td>
  366. </tr>
  367. <tr id="i24" class="altColor">
  368. <td class="colFirst"><code>void</code></td>
  369. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setShowZeroHours-boolean-">setShowZeroHours</a></span>(boolean&nbsp;show)</code>
  370. <div class="block">Sets the flag that controls whether or not zero hour counts are shown
  371. in the formatted output.</div>
  372. </td>
  373. </tr>
  374. </table>
  375. <ul class="blockList">
  376. <li class="blockList"><a name="methods.inherited.from.class.java.text.DateFormat">
  377. <!-- -->
  378. </a>
  379. <h3>Methods inherited from class&nbsp;java.text.DateFormat</h3>
  380. <code>format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone</code></li>
  381. </ul>
  382. <ul class="blockList">
  383. <li class="blockList"><a name="methods.inherited.from.class.java.text.Format">
  384. <!-- -->
  385. </a>
  386. <h3>Methods inherited from class&nbsp;java.text.Format</h3>
  387. <code>format, formatToCharacterIterator, parseObject</code></li>
  388. </ul>
  389. <ul class="blockList">
  390. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  391. <!-- -->
  392. </a>
  393. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  394. <code>finalize, getClass, notify, notifyAll, toString, wait, wait, wait</code></li>
  395. </ul>
  396. </li>
  397. </ul>
  398. </li>
  399. </ul>
  400. </div>
  401. <div class="details">
  402. <ul class="blockList">
  403. <li class="blockList">
  404. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  405. <ul class="blockList">
  406. <li class="blockList"><a name="constructor.detail">
  407. <!-- -->
  408. </a>
  409. <h3>Constructor Detail</h3>
  410. <a name="RelativeDateFormat--">
  411. <!-- -->
  412. </a>
  413. <ul class="blockList">
  414. <li class="blockList">
  415. <h4>RelativeDateFormat</h4>
  416. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.149">RelativeDateFormat</a>()</pre>
  417. <div class="block">Creates a new instance with base milliseconds set to zero.</div>
  418. </li>
  419. </ul>
  420. <a name="RelativeDateFormat-java.util.Date-">
  421. <!-- -->
  422. </a>
  423. <ul class="blockList">
  424. <li class="blockList">
  425. <h4>RelativeDateFormat</h4>
  426. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.158">RelativeDateFormat</a>(java.util.Date&nbsp;time)</pre>
  427. <div class="block">Creates a new instance.</div>
  428. <dl>
  429. <dt><span class="paramLabel">Parameters:</span></dt>
  430. <dd><code>time</code> - the date/time (<code>null</code> not permitted).</dd>
  431. </dl>
  432. </li>
  433. </ul>
  434. <a name="RelativeDateFormat-long-">
  435. <!-- -->
  436. </a>
  437. <ul class="blockListLast">
  438. <li class="blockList">
  439. <h4>RelativeDateFormat</h4>
  440. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.167">RelativeDateFormat</a>(long&nbsp;baseMillis)</pre>
  441. <div class="block">Creates a new instance.</div>
  442. <dl>
  443. <dt><span class="paramLabel">Parameters:</span></dt>
  444. <dd><code>baseMillis</code> - the time zone (<code>null</code> not permitted).</dd>
  445. </dl>
  446. </li>
  447. </ul>
  448. </li>
  449. </ul>
  450. <!-- ============ METHOD DETAIL ========== -->
  451. <ul class="blockList">
  452. <li class="blockList"><a name="method.detail">
  453. <!-- -->
  454. </a>
  455. <h3>Method Detail</h3>
  456. <a name="getBaseMillis--">
  457. <!-- -->
  458. </a>
  459. <ul class="blockList">
  460. <li class="blockList">
  461. <h4>getBaseMillis</h4>
  462. <pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.198">getBaseMillis</a>()</pre>
  463. <div class="block">Returns the base date/time used to calculate the elapsed time for
  464. display.</div>
  465. <dl>
  466. <dt><span class="returnLabel">Returns:</span></dt>
  467. <dd>The base date/time in milliseconds since 1-Jan-1970.</dd>
  468. <dt><span class="seeLabel">See Also:</span></dt>
  469. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setBaseMillis-long-"><code>setBaseMillis(long)</code></a></dd>
  470. </dl>
  471. </li>
  472. </ul>
  473. <a name="setBaseMillis-long-">
  474. <!-- -->
  475. </a>
  476. <ul class="blockList">
  477. <li class="blockList">
  478. <h4>setBaseMillis</h4>
  479. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.211">setBaseMillis</a>(long&nbsp;baseMillis)</pre>
  480. <div class="block">Sets the base date/time used to calculate the elapsed time for display.
  481. This should be specified in milliseconds using the same encoding as
  482. <code>java.util.Date</code>.</div>
  483. <dl>
  484. <dt><span class="paramLabel">Parameters:</span></dt>
  485. <dd><code>baseMillis</code> - the base date/time in milliseconds.</dd>
  486. <dt><span class="seeLabel">See Also:</span></dt>
  487. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getBaseMillis--"><code>getBaseMillis()</code></a></dd>
  488. </dl>
  489. </li>
  490. </ul>
  491. <a name="getShowZeroDays--">
  492. <!-- -->
  493. </a>
  494. <ul class="blockList">
  495. <li class="blockList">
  496. <h4>getShowZeroDays</h4>
  497. <pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.223">getShowZeroDays</a>()</pre>
  498. <div class="block">Returns the flag that controls whether or not zero day counts are
  499. shown in the formatted output.</div>
  500. <dl>
  501. <dt><span class="returnLabel">Returns:</span></dt>
  502. <dd>The flag.</dd>
  503. <dt><span class="seeLabel">See Also:</span></dt>
  504. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setShowZeroDays-boolean-"><code>setShowZeroDays(boolean)</code></a></dd>
  505. </dl>
  506. </li>
  507. </ul>
  508. <a name="setShowZeroDays-boolean-">
  509. <!-- -->
  510. </a>
  511. <ul class="blockList">
  512. <li class="blockList">
  513. <h4>setShowZeroDays</h4>
  514. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.235">setShowZeroDays</a>(boolean&nbsp;show)</pre>
  515. <div class="block">Sets the flag that controls whether or not zero day counts are shown
  516. in the formatted output.</div>
  517. <dl>
  518. <dt><span class="paramLabel">Parameters:</span></dt>
  519. <dd><code>show</code> - the flag.</dd>
  520. <dt><span class="seeLabel">See Also:</span></dt>
  521. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getShowZeroDays--"><code>getShowZeroDays()</code></a></dd>
  522. </dl>
  523. </li>
  524. </ul>
  525. <a name="getShowZeroHours--">
  526. <!-- -->
  527. </a>
  528. <ul class="blockList">
  529. <li class="blockList">
  530. <h4>getShowZeroHours</h4>
  531. <pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.249">getShowZeroHours</a>()</pre>
  532. <div class="block">Returns the flag that controls whether or not zero hour counts are
  533. shown in the formatted output.</div>
  534. <dl>
  535. <dt><span class="returnLabel">Returns:</span></dt>
  536. <dd>The flag.</dd>
  537. <dt><span class="simpleTagLabel">Since:</span></dt>
  538. <dd>1.0.10</dd>
  539. <dt><span class="seeLabel">See Also:</span></dt>
  540. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setShowZeroHours-boolean-"><code>setShowZeroHours(boolean)</code></a></dd>
  541. </dl>
  542. </li>
  543. </ul>
  544. <a name="setShowZeroHours-boolean-">
  545. <!-- -->
  546. </a>
  547. <ul class="blockList">
  548. <li class="blockList">
  549. <h4>setShowZeroHours</h4>
  550. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.263">setShowZeroHours</a>(boolean&nbsp;show)</pre>
  551. <div class="block">Sets the flag that controls whether or not zero hour counts are shown
  552. in the formatted output.</div>
  553. <dl>
  554. <dt><span class="paramLabel">Parameters:</span></dt>
  555. <dd><code>show</code> - the flag.</dd>
  556. <dt><span class="simpleTagLabel">Since:</span></dt>
  557. <dd>1.0.10</dd>
  558. <dt><span class="seeLabel">See Also:</span></dt>
  559. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getShowZeroHours--"><code>getShowZeroHours()</code></a></dd>
  560. </dl>
  561. </li>
  562. </ul>
  563. <a name="getPositivePrefix--">
  564. <!-- -->
  565. </a>
  566. <ul class="blockList">
  567. <li class="blockList">
  568. <h4>getPositivePrefix</h4>
  569. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.277">getPositivePrefix</a>()</pre>
  570. <div class="block">Returns the string that is prepended to the format if the relative time
  571. is positive.</div>
  572. <dl>
  573. <dt><span class="returnLabel">Returns:</span></dt>
  574. <dd>The string (never <code>null</code>).</dd>
  575. <dt><span class="simpleTagLabel">Since:</span></dt>
  576. <dd>1.0.10</dd>
  577. <dt><span class="seeLabel">See Also:</span></dt>
  578. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setPositivePrefix-java.lang.String-"><code>setPositivePrefix(String)</code></a></dd>
  579. </dl>
  580. </li>
  581. </ul>
  582. <a name="setPositivePrefix-java.lang.String-">
  583. <!-- -->
  584. </a>
  585. <ul class="blockList">
  586. <li class="blockList">
  587. <h4>setPositivePrefix</h4>
  588. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.291">setPositivePrefix</a>(java.lang.String&nbsp;prefix)</pre>
  589. <div class="block">Sets the string that is prepended to the format if the relative time is
  590. positive.</div>
  591. <dl>
  592. <dt><span class="paramLabel">Parameters:</span></dt>
  593. <dd><code>prefix</code> - the prefix (<code>null</code> not permitted).</dd>
  594. <dt><span class="simpleTagLabel">Since:</span></dt>
  595. <dd>1.0.10</dd>
  596. <dt><span class="seeLabel">See Also:</span></dt>
  597. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getPositivePrefix--"><code>getPositivePrefix()</code></a></dd>
  598. </dl>
  599. </li>
  600. </ul>
  601. <a name="setDayFormatter-java.text.NumberFormat-">
  602. <!-- -->
  603. </a>
  604. <ul class="blockList">
  605. <li class="blockList">
  606. <h4>setDayFormatter</h4>
  607. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.303">setDayFormatter</a>(java.text.NumberFormat&nbsp;formatter)</pre>
  608. <div class="block">Sets the formatter for the days.</div>
  609. <dl>
  610. <dt><span class="paramLabel">Parameters:</span></dt>
  611. <dd><code>formatter</code> - the formatter (<code>null</code> not permitted).</dd>
  612. <dt><span class="simpleTagLabel">Since:</span></dt>
  613. <dd>1.0.11</dd>
  614. </dl>
  615. </li>
  616. </ul>
  617. <a name="getDaySuffix--">
  618. <!-- -->
  619. </a>
  620. <ul class="blockList">
  621. <li class="blockList">
  622. <h4>getDaySuffix</h4>
  623. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.315">getDaySuffix</a>()</pre>
  624. <div class="block">Returns the string that is appended to the day count.</div>
  625. <dl>
  626. <dt><span class="returnLabel">Returns:</span></dt>
  627. <dd>The string.</dd>
  628. <dt><span class="seeLabel">See Also:</span></dt>
  629. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setDaySuffix-java.lang.String-"><code>setDaySuffix(String)</code></a></dd>
  630. </dl>
  631. </li>
  632. </ul>
  633. <a name="setDaySuffix-java.lang.String-">
  634. <!-- -->
  635. </a>
  636. <ul class="blockList">
  637. <li class="blockList">
  638. <h4>setDaySuffix</h4>
  639. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.326">setDaySuffix</a>(java.lang.String&nbsp;suffix)</pre>
  640. <div class="block">Sets the string that is appended to the day count.</div>
  641. <dl>
  642. <dt><span class="paramLabel">Parameters:</span></dt>
  643. <dd><code>suffix</code> - the suffix (<code>null</code> not permitted).</dd>
  644. <dt><span class="seeLabel">See Also:</span></dt>
  645. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getDaySuffix--"><code>getDaySuffix()</code></a></dd>
  646. </dl>
  647. </li>
  648. </ul>
  649. <a name="setHourFormatter-java.text.NumberFormat-">
  650. <!-- -->
  651. </a>
  652. <ul class="blockList">
  653. <li class="blockList">
  654. <h4>setHourFormatter</h4>
  655. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.338">setHourFormatter</a>(java.text.NumberFormat&nbsp;formatter)</pre>
  656. <div class="block">Sets the formatter for the hours.</div>
  657. <dl>
  658. <dt><span class="paramLabel">Parameters:</span></dt>
  659. <dd><code>formatter</code> - the formatter (<code>null</code> not permitted).</dd>
  660. <dt><span class="simpleTagLabel">Since:</span></dt>
  661. <dd>1.0.11</dd>
  662. </dl>
  663. </li>
  664. </ul>
  665. <a name="getHourSuffix--">
  666. <!-- -->
  667. </a>
  668. <ul class="blockList">
  669. <li class="blockList">
  670. <h4>getHourSuffix</h4>
  671. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.350">getHourSuffix</a>()</pre>
  672. <div class="block">Returns the string that is appended to the hour count.</div>
  673. <dl>
  674. <dt><span class="returnLabel">Returns:</span></dt>
  675. <dd>The string.</dd>
  676. <dt><span class="seeLabel">See Also:</span></dt>
  677. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setHourSuffix-java.lang.String-"><code>setHourSuffix(String)</code></a></dd>
  678. </dl>
  679. </li>
  680. </ul>
  681. <a name="setHourSuffix-java.lang.String-">
  682. <!-- -->
  683. </a>
  684. <ul class="blockList">
  685. <li class="blockList">
  686. <h4>setHourSuffix</h4>
  687. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.361">setHourSuffix</a>(java.lang.String&nbsp;suffix)</pre>
  688. <div class="block">Sets the string that is appended to the hour count.</div>
  689. <dl>
  690. <dt><span class="paramLabel">Parameters:</span></dt>
  691. <dd><code>suffix</code> - the suffix (<code>null</code> not permitted).</dd>
  692. <dt><span class="seeLabel">See Also:</span></dt>
  693. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getHourSuffix--"><code>getHourSuffix()</code></a></dd>
  694. </dl>
  695. </li>
  696. </ul>
  697. <a name="setMinuteFormatter-java.text.NumberFormat-">
  698. <!-- -->
  699. </a>
  700. <ul class="blockList">
  701. <li class="blockList">
  702. <h4>setMinuteFormatter</h4>
  703. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.373">setMinuteFormatter</a>(java.text.NumberFormat&nbsp;formatter)</pre>
  704. <div class="block">Sets the formatter for the minutes.</div>
  705. <dl>
  706. <dt><span class="paramLabel">Parameters:</span></dt>
  707. <dd><code>formatter</code> - the formatter (<code>null</code> not permitted).</dd>
  708. <dt><span class="simpleTagLabel">Since:</span></dt>
  709. <dd>1.0.11</dd>
  710. </dl>
  711. </li>
  712. </ul>
  713. <a name="getMinuteSuffix--">
  714. <!-- -->
  715. </a>
  716. <ul class="blockList">
  717. <li class="blockList">
  718. <h4>getMinuteSuffix</h4>
  719. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.385">getMinuteSuffix</a>()</pre>
  720. <div class="block">Returns the string that is appended to the minute count.</div>
  721. <dl>
  722. <dt><span class="returnLabel">Returns:</span></dt>
  723. <dd>The string.</dd>
  724. <dt><span class="seeLabel">See Also:</span></dt>
  725. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setMinuteSuffix-java.lang.String-"><code>setMinuteSuffix(String)</code></a></dd>
  726. </dl>
  727. </li>
  728. </ul>
  729. <a name="setMinuteSuffix-java.lang.String-">
  730. <!-- -->
  731. </a>
  732. <ul class="blockList">
  733. <li class="blockList">
  734. <h4>setMinuteSuffix</h4>
  735. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.396">setMinuteSuffix</a>(java.lang.String&nbsp;suffix)</pre>
  736. <div class="block">Sets the string that is appended to the minute count.</div>
  737. <dl>
  738. <dt><span class="paramLabel">Parameters:</span></dt>
  739. <dd><code>suffix</code> - the suffix (<code>null</code> not permitted).</dd>
  740. <dt><span class="seeLabel">See Also:</span></dt>
  741. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getMinuteSuffix--"><code>getMinuteSuffix()</code></a></dd>
  742. </dl>
  743. </li>
  744. </ul>
  745. <a name="getSecondSuffix--">
  746. <!-- -->
  747. </a>
  748. <ul class="blockList">
  749. <li class="blockList">
  750. <h4>getSecondSuffix</h4>
  751. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.408">getSecondSuffix</a>()</pre>
  752. <div class="block">Returns the string that is appended to the second count.</div>
  753. <dl>
  754. <dt><span class="returnLabel">Returns:</span></dt>
  755. <dd>The string.</dd>
  756. <dt><span class="seeLabel">See Also:</span></dt>
  757. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#setSecondSuffix-java.lang.String-"><code>setSecondSuffix(String)</code></a></dd>
  758. </dl>
  759. </li>
  760. </ul>
  761. <a name="setSecondSuffix-java.lang.String-">
  762. <!-- -->
  763. </a>
  764. <ul class="blockList">
  765. <li class="blockList">
  766. <h4>setSecondSuffix</h4>
  767. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.419">setSecondSuffix</a>(java.lang.String&nbsp;suffix)</pre>
  768. <div class="block">Sets the string that is appended to the second count.</div>
  769. <dl>
  770. <dt><span class="paramLabel">Parameters:</span></dt>
  771. <dd><code>suffix</code> - the suffix (<code>null</code> not permitted).</dd>
  772. <dt><span class="seeLabel">See Also:</span></dt>
  773. <dd><a href="../../../../org/jfree/chart/util/RelativeDateFormat.html#getSecondSuffix--"><code>getSecondSuffix()</code></a></dd>
  774. </dl>
  775. </li>
  776. </ul>
  777. <a name="setSecondFormatter-java.text.NumberFormat-">
  778. <!-- -->
  779. </a>
  780. <ul class="blockList">
  781. <li class="blockList">
  782. <h4>setSecondFormatter</h4>
  783. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.429">setSecondFormatter</a>(java.text.NumberFormat&nbsp;formatter)</pre>
  784. <div class="block">Sets the formatter for the seconds and milliseconds.</div>
  785. <dl>
  786. <dt><span class="paramLabel">Parameters:</span></dt>
  787. <dd><code>formatter</code> - the formatter (<code>null</code> not permitted).</dd>
  788. </dl>
  789. </li>
  790. </ul>
  791. <a name="format-java.util.Date-java.lang.StringBuffer-java.text.FieldPosition-">
  792. <!-- -->
  793. </a>
  794. <ul class="blockList">
  795. <li class="blockList">
  796. <h4>format</h4>
  797. <pre>public&nbsp;java.lang.StringBuffer&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.445">format</a>(java.util.Date&nbsp;date,
  798. java.lang.StringBuffer&nbsp;toAppendTo,
  799. java.text.FieldPosition&nbsp;fieldPosition)</pre>
  800. <div class="block">Formats the given date as the amount of elapsed time (relative to the
  801. base date specified in the constructor).</div>
  802. <dl>
  803. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  804. <dd><code>format</code>&nbsp;in class&nbsp;<code>java.text.DateFormat</code></dd>
  805. <dt><span class="paramLabel">Parameters:</span></dt>
  806. <dd><code>date</code> - the date.</dd>
  807. <dd><code>toAppendTo</code> - the string buffer.</dd>
  808. <dd><code>fieldPosition</code> - the field position.</dd>
  809. <dt><span class="returnLabel">Returns:</span></dt>
  810. <dd>The formatted date.</dd>
  811. </dl>
  812. </li>
  813. </ul>
  814. <a name="parse-java.lang.String-java.text.ParsePosition-">
  815. <!-- -->
  816. </a>
  817. <ul class="blockList">
  818. <li class="blockList">
  819. <h4>parse</h4>
  820. <pre>public&nbsp;java.util.Date&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.491">parse</a>(java.lang.String&nbsp;source,
  821. java.text.ParsePosition&nbsp;pos)</pre>
  822. <div class="block">Parses the given string (not implemented).</div>
  823. <dl>
  824. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  825. <dd><code>parse</code>&nbsp;in class&nbsp;<code>java.text.DateFormat</code></dd>
  826. <dt><span class="paramLabel">Parameters:</span></dt>
  827. <dd><code>source</code> - the date string.</dd>
  828. <dd><code>pos</code> - the parse position.</dd>
  829. <dt><span class="returnLabel">Returns:</span></dt>
  830. <dd><code>null</code>, as this method has not been implemented.</dd>
  831. </dl>
  832. </li>
  833. </ul>
  834. <a name="equals-java.lang.Object-">
  835. <!-- -->
  836. </a>
  837. <ul class="blockList">
  838. <li class="blockList">
  839. <h4>equals</h4>
  840. <pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.503">equals</a>(java.lang.Object&nbsp;obj)</pre>
  841. <div class="block">Tests this formatter for equality with an arbitrary object.</div>
  842. <dl>
  843. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  844. <dd><code>equals</code>&nbsp;in class&nbsp;<code>java.text.DateFormat</code></dd>
  845. <dt><span class="paramLabel">Parameters:</span></dt>
  846. <dd><code>obj</code> - the object (<code>null</code> permitted).</dd>
  847. <dt><span class="returnLabel">Returns:</span></dt>
  848. <dd>A boolean.</dd>
  849. </dl>
  850. </li>
  851. </ul>
  852. <a name="hashCode--">
  853. <!-- -->
  854. </a>
  855. <ul class="blockList">
  856. <li class="blockList">
  857. <h4>hashCode</h4>
  858. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.559">hashCode</a>()</pre>
  859. <div class="block">Returns a hash code for this instance.</div>
  860. <dl>
  861. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  862. <dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.text.DateFormat</code></dd>
  863. <dt><span class="returnLabel">Returns:</span></dt>
  864. <dd>A hash code.</dd>
  865. </dl>
  866. </li>
  867. </ul>
  868. <a name="clone--">
  869. <!-- -->
  870. </a>
  871. <ul class="blockListLast">
  872. <li class="blockList">
  873. <h4>clone</h4>
  874. <pre>public&nbsp;java.lang.Object&nbsp;<a href="../../../../src-html/org/jfree/chart/util/RelativeDateFormat.html#line.578">clone</a>()</pre>
  875. <div class="block">Returns a clone of this instance.</div>
  876. <dl>
  877. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  878. <dd><code>clone</code>&nbsp;in class&nbsp;<code>java.text.DateFormat</code></dd>
  879. <dt><span class="returnLabel">Returns:</span></dt>
  880. <dd>A clone.</dd>
  881. </dl>
  882. </li>
  883. </ul>
  884. </li>
  885. </ul>
  886. </li>
  887. </ul>
  888. </div>
  889. </div>
  890. <!-- ========= END OF CLASS DATA ========= -->
  891. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  892. <div class="bottomNav"><a name="navbar.bottom">
  893. <!-- -->
  894. </a>
  895. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  896. <a name="navbar.bottom.firstrow">
  897. <!-- -->
  898. </a>
  899. <ul class="navList" title="Navigation">
  900. <li><a href="../../../../overview-summary.html">Overview</a></li>
  901. <li><a href="package-summary.html">Package</a></li>
  902. <li class="navBarCell1Rev">Class</li>
  903. <li><a href="class-use/RelativeDateFormat.html">Use</a></li>
  904. <li><a href="package-tree.html">Tree</a></li>
  905. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  906. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  907. <li><a href="../../../../help-doc.html">Help</a></li>
  908. </ul>
  909. </div>
  910. <div class="subNav">
  911. <ul class="navList">
  912. <li><a href="../../../../org/jfree/chart/util/ParamChecks.html" title="class in org.jfree.chart.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  913. <li><a href="../../../../org/jfree/chart/util/ResourceBundleWrapper.html" title="class in org.jfree.chart.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  914. </ul>
  915. <ul class="navList">
  916. <li><a href="../../../../index.html?org/jfree/chart/util/RelativeDateFormat.html" target="_top">Frames</a></li>
  917. <li><a href="RelativeDateFormat.html" target="_top">No&nbsp;Frames</a></li>
  918. </ul>
  919. <ul class="navList" id="allclasses_navbar_bottom">
  920. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  921. </ul>
  922. <div>
  923. <script type="text/javascript"><!--
  924. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  925. if(window==top) {
  926. allClassesLink.style.display = "block";
  927. }
  928. else {
  929. allClassesLink.style.display = "none";
  930. }
  931. //-->
  932. </script>
  933. </div>
  934. <div>
  935. <ul class="subNavList">
  936. <li>Summary:&nbsp;</li>
  937. <li><a href="#nested.classes.inherited.from.class.java.text.DateFormat">Nested</a>&nbsp;|&nbsp;</li>
  938. <li><a href="#fields.inherited.from.class.java.text.DateFormat">Field</a>&nbsp;|&nbsp;</li>
  939. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  940. <li><a href="#method.summary">Method</a></li>
  941. </ul>
  942. <ul class="subNavList">
  943. <li>Detail:&nbsp;</li>
  944. <li>Field&nbsp;|&nbsp;</li>
  945. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  946. <li><a href="#method.detail">Method</a></li>
  947. </ul>
  948. </div>
  949. <a name="skip.navbar.bottom">
  950. <!-- -->
  951. </a></div>
  952. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  953. </body>
  954. </html>