TimeSeries.html 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734
  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:43 CEST 2014 -->
  6. <title>TimeSeries (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="TimeSeries (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,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":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/TimeSeries.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/data/time/TimePeriodValuesCollection.html" title="class in org.jfree.data.time"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../org/jfree/data/time/TimeSeriesCollection.html" title="class in org.jfree.data.time"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/jfree/data/time/TimeSeries.html" target="_top">Frames</a></li>
  57. <li><a href="TimeSeries.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>Nested&nbsp;|&nbsp;</li>
  78. <li><a href="#field.summary">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><a href="#field.detail">Field</a>&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.data.time</div>
  96. <h2 title="Class TimeSeries" class="title">Class TimeSeries</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><a href="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">org.jfree.data.general.Series</a></li>
  104. <li>
  105. <ul class="inheritance">
  106. <li>org.jfree.data.time.TimeSeries</li>
  107. </ul>
  108. </li>
  109. </ul>
  110. </li>
  111. </ul>
  112. <div class="description">
  113. <ul class="blockList">
  114. <li class="blockList">
  115. <dl>
  116. <dt>All Implemented Interfaces:</dt>
  117. <dd>java.io.Serializable, java.lang.Cloneable</dd>
  118. </dl>
  119. <hr>
  120. <br>
  121. <pre>public class <a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.118">TimeSeries</a>
  122. extends <a href="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a>
  123. implements java.lang.Cloneable, java.io.Serializable</pre>
  124. <div class="block">Represents a sequence of zero or more data items in the form (period, value)
  125. where 'period' is some instance of a subclass of <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time"><code>RegularTimePeriod</code></a>.
  126. The time series will ensure that (a) all data items have the same type of
  127. period (for example, <a href="../../../../org/jfree/data/time/Day.html" title="class in org.jfree.data.time"><code>Day</code></a>) and (b) that each period appears at
  128. most one time in the series.</div>
  129. <dl>
  130. <dt><span class="seeLabel">See Also:</span></dt>
  131. <dd><a href="../../../../serialized-form.html#org.jfree.data.time.TimeSeries">Serialized Form</a></dd>
  132. </dl>
  133. </li>
  134. </ul>
  135. </div>
  136. <div class="summary">
  137. <ul class="blockList">
  138. <li class="blockList">
  139. <!-- =========== FIELD SUMMARY =========== -->
  140. <ul class="blockList">
  141. <li class="blockList"><a name="field.summary">
  142. <!-- -->
  143. </a>
  144. <h3>Field Summary</h3>
  145. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  146. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  147. <tr>
  148. <th class="colFirst" scope="col">Modifier and Type</th>
  149. <th class="colLast" scope="col">Field and Description</th>
  150. </tr>
  151. <tr class="altColor">
  152. <td class="colFirst"><code>protected java.util.List</code></td>
  153. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#data">data</a></span></code>
  154. <div class="block">The list of data items in the series.</div>
  155. </td>
  156. </tr>
  157. <tr class="rowColor">
  158. <td class="colFirst"><code>protected static java.lang.String</code></td>
  159. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#DEFAULT_DOMAIN_DESCRIPTION">DEFAULT_DOMAIN_DESCRIPTION</a></span></code>
  160. <div class="block">Default value for the domain description.</div>
  161. </td>
  162. </tr>
  163. <tr class="altColor">
  164. <td class="colFirst"><code>protected static java.lang.String</code></td>
  165. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#DEFAULT_RANGE_DESCRIPTION">DEFAULT_RANGE_DESCRIPTION</a></span></code>
  166. <div class="block">Default value for the range description.</div>
  167. </td>
  168. </tr>
  169. <tr class="rowColor">
  170. <td class="colFirst"><code>protected java.lang.Class</code></td>
  171. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#timePeriodClass">timePeriodClass</a></span></code>
  172. <div class="block">The type of period for the data.</div>
  173. </td>
  174. </tr>
  175. </table>
  176. </li>
  177. </ul>
  178. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  179. <ul class="blockList">
  180. <li class="blockList"><a name="constructor.summary">
  181. <!-- -->
  182. </a>
  183. <h3>Constructor Summary</h3>
  184. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  185. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  186. <tr>
  187. <th class="colOne" scope="col">Constructor and Description</th>
  188. </tr>
  189. <tr class="altColor">
  190. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#TimeSeries-java.lang.Comparable-">TimeSeries</a></span>(java.lang.Comparable&nbsp;name)</code>
  191. <div class="block">Creates a new (empty) time series.</div>
  192. </td>
  193. </tr>
  194. <tr class="rowColor">
  195. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#TimeSeries-java.lang.Comparable-java.lang.Class-">TimeSeries</a></span>(java.lang.Comparable&nbsp;name,
  196. java.lang.Class&nbsp;timePeriodClass)</code>
  197. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  198. <div class="block"><span class="deprecationComment">As of 1.0.13, it is not necessary to specify the
  199. <code>timePeriodClass</code> as this will be inferred when the
  200. first data item is added to the dataset.</span></div>
  201. </div>
  202. </td>
  203. </tr>
  204. <tr class="altColor">
  205. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#TimeSeries-java.lang.Comparable-java.lang.String-java.lang.String-">TimeSeries</a></span>(java.lang.Comparable&nbsp;name,
  206. java.lang.String&nbsp;domain,
  207. java.lang.String&nbsp;range)</code>
  208. <div class="block">Creates a new time series that contains no data.</div>
  209. </td>
  210. </tr>
  211. <tr class="rowColor">
  212. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#TimeSeries-java.lang.Comparable-java.lang.String-java.lang.String-java.lang.Class-">TimeSeries</a></span>(java.lang.Comparable&nbsp;name,
  213. java.lang.String&nbsp;domain,
  214. java.lang.String&nbsp;range,
  215. java.lang.Class&nbsp;timePeriodClass)</code>
  216. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  217. <div class="block"><span class="deprecationComment">As of 1.0.13, it is not necessary to specify the
  218. <code>timePeriodClass</code> as this will be inferred when the
  219. first data item is added to the dataset.</span></div>
  220. </div>
  221. </td>
  222. </tr>
  223. </table>
  224. </li>
  225. </ul>
  226. <!-- ========== METHOD SUMMARY =========== -->
  227. <ul class="blockList">
  228. <li class="blockList"><a name="method.summary">
  229. <!-- -->
  230. </a>
  231. <h3>Method Summary</h3>
  232. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  233. <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>
  234. <tr>
  235. <th class="colFirst" scope="col">Modifier and Type</th>
  236. <th class="colLast" scope="col">Method and Description</th>
  237. </tr>
  238. <tr id="i0" class="altColor">
  239. <td class="colFirst"><code>void</code></td>
  240. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#add-org.jfree.data.time.RegularTimePeriod-double-">add</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  241. double&nbsp;value)</code>
  242. <div class="block">Adds a new data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a>
  243. to all registered listeners.</div>
  244. </td>
  245. </tr>
  246. <tr id="i1" class="rowColor">
  247. <td class="colFirst"><code>void</code></td>
  248. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#add-org.jfree.data.time.RegularTimePeriod-double-boolean-">add</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  249. double&nbsp;value,
  250. boolean&nbsp;notify)</code>
  251. <div class="block">Adds a new data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a>
  252. to all registered listeners.</div>
  253. </td>
  254. </tr>
  255. <tr id="i2" class="altColor">
  256. <td class="colFirst"><code>void</code></td>
  257. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#add-org.jfree.data.time.RegularTimePeriod-java.lang.Number-">add</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  258. java.lang.Number&nbsp;value)</code>
  259. <div class="block">Adds a new data item to the series and sends
  260. a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered
  261. listeners.</div>
  262. </td>
  263. </tr>
  264. <tr id="i3" class="rowColor">
  265. <td class="colFirst"><code>void</code></td>
  266. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#add-org.jfree.data.time.RegularTimePeriod-java.lang.Number-boolean-">add</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  267. java.lang.Number&nbsp;value,
  268. boolean&nbsp;notify)</code>
  269. <div class="block">Adds a new data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a>
  270. to all registered listeners.</div>
  271. </td>
  272. </tr>
  273. <tr id="i4" class="altColor">
  274. <td class="colFirst"><code>void</code></td>
  275. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#add-org.jfree.data.time.TimeSeriesDataItem-">add</a></span>(<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;item)</code>
  276. <div class="block">Adds a data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to
  277. all registered listeners.</div>
  278. </td>
  279. </tr>
  280. <tr id="i5" class="rowColor">
  281. <td class="colFirst"><code>void</code></td>
  282. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#add-org.jfree.data.time.TimeSeriesDataItem-boolean-">add</a></span>(<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;item,
  283. boolean&nbsp;notify)</code>
  284. <div class="block">Adds a data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to
  285. all registered listeners.</div>
  286. </td>
  287. </tr>
  288. <tr id="i6" class="altColor">
  289. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a></code></td>
  290. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#addAndOrUpdate-org.jfree.data.time.TimeSeries-">addAndOrUpdate</a></span>(<a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a>&nbsp;series)</code>
  291. <div class="block">Adds or updates data from one series to another.</div>
  292. </td>
  293. </tr>
  294. <tr id="i7" class="rowColor">
  295. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a></code></td>
  296. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#addOrUpdate-org.jfree.data.time.RegularTimePeriod-double-">addOrUpdate</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  297. double&nbsp;value)</code>
  298. <div class="block">Adds or updates an item in the times series and sends a
  299. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  300. </td>
  301. </tr>
  302. <tr id="i8" class="altColor">
  303. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a></code></td>
  304. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#addOrUpdate-org.jfree.data.time.RegularTimePeriod-java.lang.Number-">addOrUpdate</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  305. java.lang.Number&nbsp;value)</code>
  306. <div class="block">Adds or updates an item in the times series and sends a
  307. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  308. </td>
  309. </tr>
  310. <tr id="i9" class="rowColor">
  311. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a></code></td>
  312. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#addOrUpdate-org.jfree.data.time.TimeSeriesDataItem-">addOrUpdate</a></span>(<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;item)</code>
  313. <div class="block">Adds or updates an item in the times series and sends a
  314. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  315. </td>
  316. </tr>
  317. <tr id="i10" class="altColor">
  318. <td class="colFirst"><code>void</code></td>
  319. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#clear--">clear</a></span>()</code>
  320. <div class="block">Removes all data items from the series and sends a
  321. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  322. </td>
  323. </tr>
  324. <tr id="i11" class="rowColor">
  325. <td class="colFirst"><code>java.lang.Object</code></td>
  326. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#clone--">clone</a></span>()</code>
  327. <div class="block">Returns a clone of the time series.</div>
  328. </td>
  329. </tr>
  330. <tr id="i12" class="altColor">
  331. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a></code></td>
  332. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#createCopy-int-int-">createCopy</a></span>(int&nbsp;start,
  333. int&nbsp;end)</code>
  334. <div class="block">Creates a new timeseries by copying a subset of the data in this time
  335. series.</div>
  336. </td>
  337. </tr>
  338. <tr id="i13" class="rowColor">
  339. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a></code></td>
  340. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#createCopy-org.jfree.data.time.RegularTimePeriod-org.jfree.data.time.RegularTimePeriod-">createCopy</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;start,
  341. <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;end)</code>
  342. <div class="block">Creates a new timeseries by copying a subset of the data in this time
  343. series.</div>
  344. </td>
  345. </tr>
  346. <tr id="i14" class="altColor">
  347. <td class="colFirst"><code>void</code></td>
  348. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#delete-int-int-">delete</a></span>(int&nbsp;start,
  349. int&nbsp;end)</code>
  350. <div class="block">Deletes data from start until end index (end inclusive).</div>
  351. </td>
  352. </tr>
  353. <tr id="i15" class="rowColor">
  354. <td class="colFirst"><code>void</code></td>
  355. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#delete-int-int-boolean-">delete</a></span>(int&nbsp;start,
  356. int&nbsp;end,
  357. boolean&nbsp;notify)</code>
  358. <div class="block">Deletes data from start until end index (end inclusive).</div>
  359. </td>
  360. </tr>
  361. <tr id="i16" class="altColor">
  362. <td class="colFirst"><code>void</code></td>
  363. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#delete-org.jfree.data.time.RegularTimePeriod-">delete</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period)</code>
  364. <div class="block">Deletes the data item for the given time period and sends a
  365. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  366. </td>
  367. </tr>
  368. <tr id="i17" class="rowColor">
  369. <td class="colFirst"><code>boolean</code></td>
  370. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;obj)</code>
  371. <div class="block">Tests the series for equality with an arbitrary object.</div>
  372. </td>
  373. </tr>
  374. <tr id="i18" class="altColor">
  375. <td class="colFirst"><code><a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a></code></td>
  376. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#findValueRange--">findValueRange</a></span>()</code>
  377. <div class="block">Returns the range of y-values in the time series.</div>
  378. </td>
  379. </tr>
  380. <tr id="i19" class="rowColor">
  381. <td class="colFirst"><code><a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a></code></td>
  382. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#findValueRange-org.jfree.data.Range-org.jfree.data.time.TimePeriodAnchor-java.util.TimeZone-">findValueRange</a></span>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;xRange,
  383. <a href="../../../../org/jfree/data/time/TimePeriodAnchor.html" title="class in org.jfree.data.time">TimePeriodAnchor</a>&nbsp;xAnchor,
  384. java.util.TimeZone&nbsp;zone)</code>
  385. <div class="block">Finds the range of y-values that fall within the specified range of
  386. x-values (where the x-values are interpreted as milliseconds since the
  387. epoch and converted to time periods using the specified timezone).</div>
  388. </td>
  389. </tr>
  390. <tr id="i20" class="altColor">
  391. <td class="colFirst"><code><a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a></code></td>
  392. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#findValueRange-org.jfree.data.Range-java.util.TimeZone-">findValueRange</a></span>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;xRange,
  393. java.util.TimeZone&nbsp;timeZone)</code>
  394. <div class="block">Returns the range of y-values in the time series that fall within
  395. the specified range of x-values.</div>
  396. </td>
  397. </tr>
  398. <tr id="i21" class="rowColor">
  399. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a></code></td>
  400. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getDataItem-int-">getDataItem</a></span>(int&nbsp;index)</code>
  401. <div class="block">Returns a data item from the dataset.</div>
  402. </td>
  403. </tr>
  404. <tr id="i22" class="altColor">
  405. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a></code></td>
  406. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getDataItem-org.jfree.data.time.RegularTimePeriod-">getDataItem</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period)</code>
  407. <div class="block">Returns the data item for a specific period.</div>
  408. </td>
  409. </tr>
  410. <tr id="i23" class="rowColor">
  411. <td class="colFirst"><code>java.lang.String</code></td>
  412. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getDomainDescription--">getDomainDescription</a></span>()</code>
  413. <div class="block">Returns the domain description.</div>
  414. </td>
  415. </tr>
  416. <tr id="i24" class="altColor">
  417. <td class="colFirst"><code>int</code></td>
  418. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getIndex-org.jfree.data.time.RegularTimePeriod-">getIndex</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period)</code>
  419. <div class="block">Returns the index for the item (if any) that corresponds to a time
  420. period.</div>
  421. </td>
  422. </tr>
  423. <tr id="i25" class="rowColor">
  424. <td class="colFirst"><code>int</code></td>
  425. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getItemCount--">getItemCount</a></span>()</code>
  426. <div class="block">Returns the number of items in the series.</div>
  427. </td>
  428. </tr>
  429. <tr id="i26" class="altColor">
  430. <td class="colFirst"><code>java.util.List</code></td>
  431. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getItems--">getItems</a></span>()</code>
  432. <div class="block">Returns the list of data items for the series (the list contains
  433. <a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time"><code>TimeSeriesDataItem</code></a> objects and is unmodifiable).</div>
  434. </td>
  435. </tr>
  436. <tr id="i27" class="rowColor">
  437. <td class="colFirst"><code>long</code></td>
  438. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getMaximumItemAge--">getMaximumItemAge</a></span>()</code>
  439. <div class="block">Returns the maximum item age (in time periods) for the series.</div>
  440. </td>
  441. </tr>
  442. <tr id="i28" class="altColor">
  443. <td class="colFirst"><code>int</code></td>
  444. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getMaximumItemCount--">getMaximumItemCount</a></span>()</code>
  445. <div class="block">Returns the maximum number of items that will be retained in the series.</div>
  446. </td>
  447. </tr>
  448. <tr id="i29" class="rowColor">
  449. <td class="colFirst"><code>double</code></td>
  450. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getMaxY--">getMaxY</a></span>()</code>
  451. <div class="block">Returns the largest y-value in the series, ignoring any
  452. <code>null</code> and <code>Double.NaN</code> values.</div>
  453. </td>
  454. </tr>
  455. <tr id="i30" class="altColor">
  456. <td class="colFirst"><code>double</code></td>
  457. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getMinY--">getMinY</a></span>()</code>
  458. <div class="block">Returns the smallest y-value in the series, ignoring any
  459. <code>null</code> and <code>Double.NaN</code> values.</div>
  460. </td>
  461. </tr>
  462. <tr id="i31" class="rowColor">
  463. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></td>
  464. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getNextTimePeriod--">getNextTimePeriod</a></span>()</code>
  465. <div class="block">Returns a time period that would be the next in sequence on the end of
  466. the time series.</div>
  467. </td>
  468. </tr>
  469. <tr id="i32" class="altColor">
  470. <td class="colFirst"><code>java.lang.String</code></td>
  471. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getRangeDescription--">getRangeDescription</a></span>()</code>
  472. <div class="block">Returns the range description.</div>
  473. </td>
  474. </tr>
  475. <tr id="i33" class="rowColor">
  476. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></td>
  477. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getTimePeriod-int-">getTimePeriod</a></span>(int&nbsp;index)</code>
  478. <div class="block">Returns the time period at the specified index.</div>
  479. </td>
  480. </tr>
  481. <tr id="i34" class="altColor">
  482. <td class="colFirst"><code>java.lang.Class</code></td>
  483. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getTimePeriodClass--">getTimePeriodClass</a></span>()</code>
  484. <div class="block">Returns the time period class for this series.</div>
  485. </td>
  486. </tr>
  487. <tr id="i35" class="rowColor">
  488. <td class="colFirst"><code>java.util.Collection</code></td>
  489. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getTimePeriods--">getTimePeriods</a></span>()</code>
  490. <div class="block">Returns a collection of all the time periods in the time series.</div>
  491. </td>
  492. </tr>
  493. <tr id="i36" class="altColor">
  494. <td class="colFirst"><code>java.util.Collection</code></td>
  495. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getTimePeriodsUniqueToOtherSeries-org.jfree.data.time.TimeSeries-">getTimePeriodsUniqueToOtherSeries</a></span>(<a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a>&nbsp;series)</code>
  496. <div class="block">Returns a collection of time periods in the specified series, but not in
  497. this series, and therefore unique to the specified series.</div>
  498. </td>
  499. </tr>
  500. <tr id="i37" class="rowColor">
  501. <td class="colFirst"><code>java.lang.Number</code></td>
  502. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getValue-int-">getValue</a></span>(int&nbsp;index)</code>
  503. <div class="block">Returns the value at the specified index.</div>
  504. </td>
  505. </tr>
  506. <tr id="i38" class="altColor">
  507. <td class="colFirst"><code>java.lang.Number</code></td>
  508. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#getValue-org.jfree.data.time.RegularTimePeriod-">getValue</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period)</code>
  509. <div class="block">Returns the value for a time period.</div>
  510. </td>
  511. </tr>
  512. <tr id="i39" class="rowColor">
  513. <td class="colFirst"><code>int</code></td>
  514. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#hashCode--">hashCode</a></span>()</code>
  515. <div class="block">Returns a hash code value for the object.</div>
  516. </td>
  517. </tr>
  518. <tr id="i40" class="altColor">
  519. <td class="colFirst"><code>void</code></td>
  520. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#removeAgedItems-boolean-">removeAgedItems</a></span>(boolean&nbsp;notify)</code>
  521. <div class="block">Age items in the series.</div>
  522. </td>
  523. </tr>
  524. <tr id="i41" class="rowColor">
  525. <td class="colFirst"><code>void</code></td>
  526. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#removeAgedItems-long-boolean-">removeAgedItems</a></span>(long&nbsp;latest,
  527. boolean&nbsp;notify)</code>
  528. <div class="block">Age items in the series.</div>
  529. </td>
  530. </tr>
  531. <tr id="i42" class="altColor">
  532. <td class="colFirst"><code>void</code></td>
  533. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#setDomainDescription-java.lang.String-">setDomainDescription</a></span>(java.lang.String&nbsp;description)</code>
  534. <div class="block">Sets the domain description and sends a <code>PropertyChangeEvent</code>
  535. (with the property name <code>Domain</code>) to all registered
  536. property change listeners.</div>
  537. </td>
  538. </tr>
  539. <tr id="i43" class="rowColor">
  540. <td class="colFirst"><code>void</code></td>
  541. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#setMaximumItemAge-long-">setMaximumItemAge</a></span>(long&nbsp;periods)</code>
  542. <div class="block">Sets the number of time units in the 'history' for the series.</div>
  543. </td>
  544. </tr>
  545. <tr id="i44" class="altColor">
  546. <td class="colFirst"><code>void</code></td>
  547. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#setMaximumItemCount-int-">setMaximumItemCount</a></span>(int&nbsp;maximum)</code>
  548. <div class="block">Sets the maximum number of items that will be retained in the series.</div>
  549. </td>
  550. </tr>
  551. <tr id="i45" class="rowColor">
  552. <td class="colFirst"><code>void</code></td>
  553. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#setRangeDescription-java.lang.String-">setRangeDescription</a></span>(java.lang.String&nbsp;description)</code>
  554. <div class="block">Sets the range description and sends a <code>PropertyChangeEvent</code>
  555. (with the property name <code>Range</code>) to all registered listeners.</div>
  556. </td>
  557. </tr>
  558. <tr id="i46" class="altColor">
  559. <td class="colFirst"><code>void</code></td>
  560. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#update-int-java.lang.Number-">update</a></span>(int&nbsp;index,
  561. java.lang.Number&nbsp;value)</code>
  562. <div class="block">Updates (changes) the value of a data item.</div>
  563. </td>
  564. </tr>
  565. <tr id="i47" class="rowColor">
  566. <td class="colFirst"><code>void</code></td>
  567. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#update-org.jfree.data.time.RegularTimePeriod-double-">update</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  568. double&nbsp;value)</code>
  569. <div class="block">Updates (changes) the value for a time period.</div>
  570. </td>
  571. </tr>
  572. <tr id="i48" class="altColor">
  573. <td class="colFirst"><code>void</code></td>
  574. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/TimeSeries.html#update-org.jfree.data.time.RegularTimePeriod-java.lang.Number-">update</a></span>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  575. java.lang.Number&nbsp;value)</code>
  576. <div class="block">Updates (changes) the value for a time period.</div>
  577. </td>
  578. </tr>
  579. </table>
  580. <ul class="blockList">
  581. <li class="blockList"><a name="methods.inherited.from.class.org.jfree.data.general.Series">
  582. <!-- -->
  583. </a>
  584. <h3>Methods inherited from class&nbsp;org.jfree.data.general.<a href="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></h3>
  585. <code><a href="../../../../org/jfree/data/general/Series.html#addChangeListener-org.jfree.data.general.SeriesChangeListener-">addChangeListener</a>, <a href="../../../../org/jfree/data/general/Series.html#addPropertyChangeListener-java.beans.PropertyChangeListener-">addPropertyChangeListener</a>, <a href="../../../../org/jfree/data/general/Series.html#addVetoableChangeListener-java.beans.VetoableChangeListener-">addVetoableChangeListener</a>, <a href="../../../../org/jfree/data/general/Series.html#firePropertyChange-java.lang.String-java.lang.Object-java.lang.Object-">firePropertyChange</a>, <a href="../../../../org/jfree/data/general/Series.html#fireSeriesChanged--">fireSeriesChanged</a>, <a href="../../../../org/jfree/data/general/Series.html#fireVetoableChange-java.lang.String-java.lang.Object-java.lang.Object-">fireVetoableChange</a>, <a href="../../../../org/jfree/data/general/Series.html#getDescription--">getDescription</a>, <a href="../../../../org/jfree/data/general/Series.html#getKey--">getKey</a>, <a href="../../../../org/jfree/data/general/Series.html#getNotify--">getNotify</a>, <a href="../../../../org/jfree/data/general/Series.html#isEmpty--">isEmpty</a>, <a href="../../../../org/jfree/data/general/Series.html#notifyListeners-org.jfree.data.general.SeriesChangeEvent-">notifyListeners</a>, <a href="../../../../org/jfree/data/general/Series.html#removeChangeListener-org.jfree.data.general.SeriesChangeListener-">removeChangeListener</a>, <a href="../../../../org/jfree/data/general/Series.html#removePropertyChangeListener-java.beans.PropertyChangeListener-">removePropertyChangeListener</a>, <a href="../../../../org/jfree/data/general/Series.html#removeVetoableChangeListener-java.beans.VetoableChangeListener-">removeVetoableChangeListener</a>, <a href="../../../../org/jfree/data/general/Series.html#setDescription-java.lang.String-">setDescription</a>, <a href="../../../../org/jfree/data/general/Series.html#setKey-java.lang.Comparable-">setKey</a>, <a href="../../../../org/jfree/data/general/Series.html#setNotify-boolean-">setNotify</a></code></li>
  586. </ul>
  587. <ul class="blockList">
  588. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  589. <!-- -->
  590. </a>
  591. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  592. <code>finalize, getClass, notify, notifyAll, toString, wait, wait, wait</code></li>
  593. </ul>
  594. </li>
  595. </ul>
  596. </li>
  597. </ul>
  598. </div>
  599. <div class="details">
  600. <ul class="blockList">
  601. <li class="blockList">
  602. <!-- ============ FIELD DETAIL =========== -->
  603. <ul class="blockList">
  604. <li class="blockList"><a name="field.detail">
  605. <!-- -->
  606. </a>
  607. <h3>Field Detail</h3>
  608. <a name="DEFAULT_DOMAIN_DESCRIPTION">
  609. <!-- -->
  610. </a>
  611. <ul class="blockList">
  612. <li class="blockList">
  613. <h4>DEFAULT_DOMAIN_DESCRIPTION</h4>
  614. <pre>protected static final&nbsp;java.lang.String <a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.124">DEFAULT_DOMAIN_DESCRIPTION</a></pre>
  615. <div class="block">Default value for the domain description.</div>
  616. <dl>
  617. <dt><span class="seeLabel">See Also:</span></dt>
  618. <dd><a href="../../../../constant-values.html#org.jfree.data.time.TimeSeries.DEFAULT_DOMAIN_DESCRIPTION">Constant Field Values</a></dd>
  619. </dl>
  620. </li>
  621. </ul>
  622. <a name="DEFAULT_RANGE_DESCRIPTION">
  623. <!-- -->
  624. </a>
  625. <ul class="blockList">
  626. <li class="blockList">
  627. <h4>DEFAULT_RANGE_DESCRIPTION</h4>
  628. <pre>protected static final&nbsp;java.lang.String <a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.127">DEFAULT_RANGE_DESCRIPTION</a></pre>
  629. <div class="block">Default value for the range description.</div>
  630. <dl>
  631. <dt><span class="seeLabel">See Also:</span></dt>
  632. <dd><a href="../../../../constant-values.html#org.jfree.data.time.TimeSeries.DEFAULT_RANGE_DESCRIPTION">Constant Field Values</a></dd>
  633. </dl>
  634. </li>
  635. </ul>
  636. <a name="timePeriodClass">
  637. <!-- -->
  638. </a>
  639. <ul class="blockList">
  640. <li class="blockList">
  641. <h4>timePeriodClass</h4>
  642. <pre>protected&nbsp;java.lang.Class <a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.136">timePeriodClass</a></pre>
  643. <div class="block">The type of period for the data.</div>
  644. </li>
  645. </ul>
  646. <a name="data">
  647. <!-- -->
  648. </a>
  649. <ul class="blockListLast">
  650. <li class="blockList">
  651. <h4>data</h4>
  652. <pre>protected&nbsp;java.util.List <a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.139">data</a></pre>
  653. <div class="block">The list of data items in the series.</div>
  654. </li>
  655. </ul>
  656. </li>
  657. </ul>
  658. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  659. <ul class="blockList">
  660. <li class="blockList"><a name="constructor.detail">
  661. <!-- -->
  662. </a>
  663. <h3>Constructor Detail</h3>
  664. <a name="TimeSeries-java.lang.Comparable-">
  665. <!-- -->
  666. </a>
  667. <ul class="blockList">
  668. <li class="blockList">
  669. <h4>TimeSeries</h4>
  670. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.171">TimeSeries</a>(java.lang.Comparable&nbsp;name)</pre>
  671. <div class="block">Creates a new (empty) time series. By default, a daily time series is
  672. created. Use one of the other constructors if you require a different
  673. time period.</div>
  674. <dl>
  675. <dt><span class="paramLabel">Parameters:</span></dt>
  676. <dd><code>name</code> - the series name (<code>null</code> not permitted).</dd>
  677. </dl>
  678. </li>
  679. </ul>
  680. <a name="TimeSeries-java.lang.Comparable-java.lang.String-java.lang.String-">
  681. <!-- -->
  682. </a>
  683. <ul class="blockList">
  684. <li class="blockList">
  685. <h4>TimeSeries</h4>
  686. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.188">TimeSeries</a>(java.lang.Comparable&nbsp;name,
  687. java.lang.String&nbsp;domain,
  688. java.lang.String&nbsp;range)</pre>
  689. <div class="block">Creates a new time series that contains no data.
  690. <P>
  691. Descriptions can be specified for the domain and range. One situation
  692. where this is helpful is when generating a chart for the time series -
  693. axis labels can be taken from the domain and range description.</div>
  694. <dl>
  695. <dt><span class="paramLabel">Parameters:</span></dt>
  696. <dd><code>name</code> - the name of the series (<code>null</code> not permitted).</dd>
  697. <dd><code>domain</code> - the domain description (<code>null</code> permitted).</dd>
  698. <dd><code>range</code> - the range description (<code>null</code> permitted).</dd>
  699. <dt><span class="simpleTagLabel">Since:</span></dt>
  700. <dd>1.0.13</dd>
  701. </dl>
  702. </li>
  703. </ul>
  704. <a name="TimeSeries-java.lang.Comparable-java.lang.Class-">
  705. <!-- -->
  706. </a>
  707. <ul class="blockList">
  708. <li class="blockList">
  709. <h4>TimeSeries</h4>
  710. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1398">TimeSeries</a>(java.lang.Comparable&nbsp;name,
  711. java.lang.Class&nbsp;timePeriodClass)</pre>
  712. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of 1.0.13, it is not necessary to specify the
  713. <code>timePeriodClass</code> as this will be inferred when the
  714. first data item is added to the dataset.</span></div>
  715. <div class="block">Creates a new (empty) time series with the specified name and class
  716. of <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time"><code>RegularTimePeriod</code></a>.</div>
  717. <dl>
  718. <dt><span class="paramLabel">Parameters:</span></dt>
  719. <dd><code>name</code> - the series name (<code>null</code> not permitted).</dd>
  720. <dd><code>timePeriodClass</code> - the type of time period (<code>null</code> not
  721. permitted).</dd>
  722. </dl>
  723. </li>
  724. </ul>
  725. <a name="TimeSeries-java.lang.Comparable-java.lang.String-java.lang.String-java.lang.Class-">
  726. <!-- -->
  727. </a>
  728. <ul class="blockListLast">
  729. <li class="blockList">
  730. <h4>TimeSeries</h4>
  731. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1420">TimeSeries</a>(java.lang.Comparable&nbsp;name,
  732. java.lang.String&nbsp;domain,
  733. java.lang.String&nbsp;range,
  734. java.lang.Class&nbsp;timePeriodClass)</pre>
  735. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of 1.0.13, it is not necessary to specify the
  736. <code>timePeriodClass</code> as this will be inferred when the
  737. first data item is added to the dataset.</span></div>
  738. <div class="block">Creates a new time series that contains no data.
  739. <P>
  740. Descriptions can be specified for the domain and range. One situation
  741. where this is helpful is when generating a chart for the time series -
  742. axis labels can be taken from the domain and range description.</div>
  743. <dl>
  744. <dt><span class="paramLabel">Parameters:</span></dt>
  745. <dd><code>name</code> - the name of the series (<code>null</code> not permitted).</dd>
  746. <dd><code>domain</code> - the domain description (<code>null</code> permitted).</dd>
  747. <dd><code>range</code> - the range description (<code>null</code> permitted).</dd>
  748. <dd><code>timePeriodClass</code> - the type of time period (<code>null</code> not
  749. permitted).</dd>
  750. </dl>
  751. </li>
  752. </ul>
  753. </li>
  754. </ul>
  755. <!-- ============ METHOD DETAIL ========== -->
  756. <ul class="blockList">
  757. <li class="blockList"><a name="method.detail">
  758. <!-- -->
  759. </a>
  760. <h3>Method Detail</h3>
  761. <a name="getDomainDescription--">
  762. <!-- -->
  763. </a>
  764. <ul class="blockList">
  765. <li class="blockList">
  766. <h4>getDomainDescription</h4>
  767. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.207">getDomainDescription</a>()</pre>
  768. <div class="block">Returns the domain description.</div>
  769. <dl>
  770. <dt><span class="returnLabel">Returns:</span></dt>
  771. <dd>The domain description (possibly <code>null</code>).</dd>
  772. <dt><span class="seeLabel">See Also:</span></dt>
  773. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#setDomainDescription-java.lang.String-"><code>setDomainDescription(String)</code></a></dd>
  774. </dl>
  775. </li>
  776. </ul>
  777. <a name="setDomainDescription-java.lang.String-">
  778. <!-- -->
  779. </a>
  780. <ul class="blockList">
  781. <li class="blockList">
  782. <h4>setDomainDescription</h4>
  783. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.220">setDomainDescription</a>(java.lang.String&nbsp;description)</pre>
  784. <div class="block">Sets the domain description and sends a <code>PropertyChangeEvent</code>
  785. (with the property name <code>Domain</code>) to all registered
  786. property change listeners.</div>
  787. <dl>
  788. <dt><span class="paramLabel">Parameters:</span></dt>
  789. <dd><code>description</code> - the description (<code>null</code> permitted).</dd>
  790. <dt><span class="seeLabel">See Also:</span></dt>
  791. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#getDomainDescription--"><code>getDomainDescription()</code></a></dd>
  792. </dl>
  793. </li>
  794. </ul>
  795. <a name="getRangeDescription--">
  796. <!-- -->
  797. </a>
  798. <ul class="blockList">
  799. <li class="blockList">
  800. <h4>getRangeDescription</h4>
  801. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.233">getRangeDescription</a>()</pre>
  802. <div class="block">Returns the range description.</div>
  803. <dl>
  804. <dt><span class="returnLabel">Returns:</span></dt>
  805. <dd>The range description (possibly <code>null</code>).</dd>
  806. <dt><span class="seeLabel">See Also:</span></dt>
  807. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#setRangeDescription-java.lang.String-"><code>setRangeDescription(String)</code></a></dd>
  808. </dl>
  809. </li>
  810. </ul>
  811. <a name="setRangeDescription-java.lang.String-">
  812. <!-- -->
  813. </a>
  814. <ul class="blockList">
  815. <li class="blockList">
  816. <h4>setRangeDescription</h4>
  817. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.245">setRangeDescription</a>(java.lang.String&nbsp;description)</pre>
  818. <div class="block">Sets the range description and sends a <code>PropertyChangeEvent</code>
  819. (with the property name <code>Range</code>) to all registered listeners.</div>
  820. <dl>
  821. <dt><span class="paramLabel">Parameters:</span></dt>
  822. <dd><code>description</code> - the description (<code>null</code> permitted).</dd>
  823. <dt><span class="seeLabel">See Also:</span></dt>
  824. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#getRangeDescription--"><code>getRangeDescription()</code></a></dd>
  825. </dl>
  826. </li>
  827. </ul>
  828. <a name="getItemCount--">
  829. <!-- -->
  830. </a>
  831. <ul class="blockList">
  832. <li class="blockList">
  833. <h4>getItemCount</h4>
  834. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.257">getItemCount</a>()</pre>
  835. <div class="block">Returns the number of items in the series.</div>
  836. <dl>
  837. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  838. <dd><code><a href="../../../../org/jfree/data/general/Series.html#getItemCount--">getItemCount</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></code></dd>
  839. <dt><span class="returnLabel">Returns:</span></dt>
  840. <dd>The item count.</dd>
  841. </dl>
  842. </li>
  843. </ul>
  844. <a name="getItems--">
  845. <!-- -->
  846. </a>
  847. <ul class="blockList">
  848. <li class="blockList">
  849. <h4>getItems</h4>
  850. <pre>public&nbsp;java.util.List&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.267">getItems</a>()</pre>
  851. <div class="block">Returns the list of data items for the series (the list contains
  852. <a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time"><code>TimeSeriesDataItem</code></a> objects and is unmodifiable).</div>
  853. <dl>
  854. <dt><span class="returnLabel">Returns:</span></dt>
  855. <dd>The list of data items.</dd>
  856. </dl>
  857. </li>
  858. </ul>
  859. <a name="getMaximumItemCount--">
  860. <!-- -->
  861. </a>
  862. <ul class="blockList">
  863. <li class="blockList">
  864. <h4>getMaximumItemCount</h4>
  865. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.280">getMaximumItemCount</a>()</pre>
  866. <div class="block">Returns the maximum number of items that will be retained in the series.
  867. The default value is <code>Integer.MAX_VALUE</code>.</div>
  868. <dl>
  869. <dt><span class="returnLabel">Returns:</span></dt>
  870. <dd>The maximum item count.</dd>
  871. <dt><span class="seeLabel">See Also:</span></dt>
  872. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#setMaximumItemCount-int-"><code>setMaximumItemCount(int)</code></a></dd>
  873. </dl>
  874. </li>
  875. </ul>
  876. <a name="setMaximumItemCount-int-">
  877. <!-- -->
  878. </a>
  879. <ul class="blockList">
  880. <li class="blockList">
  881. <h4>setMaximumItemCount</h4>
  882. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.295">setMaximumItemCount</a>(int&nbsp;maximum)</pre>
  883. <div class="block">Sets the maximum number of items that will be retained in the series.
  884. If you add a new item to the series such that the number of items will
  885. exceed the maximum item count, then the FIRST element in the series is
  886. automatically removed, ensuring that the maximum item count is not
  887. exceeded.</div>
  888. <dl>
  889. <dt><span class="paramLabel">Parameters:</span></dt>
  890. <dd><code>maximum</code> - the maximum (requires &gt;= 0).</dd>
  891. <dt><span class="seeLabel">See Also:</span></dt>
  892. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#getMaximumItemCount--"><code>getMaximumItemCount()</code></a></dd>
  893. </dl>
  894. </li>
  895. </ul>
  896. <a name="getMaximumItemAge--">
  897. <!-- -->
  898. </a>
  899. <ul class="blockList">
  900. <li class="blockList">
  901. <h4>getMaximumItemAge</h4>
  902. <pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.313">getMaximumItemAge</a>()</pre>
  903. <div class="block">Returns the maximum item age (in time periods) for the series.</div>
  904. <dl>
  905. <dt><span class="returnLabel">Returns:</span></dt>
  906. <dd>The maximum item age.</dd>
  907. <dt><span class="seeLabel">See Also:</span></dt>
  908. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#setMaximumItemAge-long-"><code>setMaximumItemAge(long)</code></a></dd>
  909. </dl>
  910. </li>
  911. </ul>
  912. <a name="setMaximumItemAge-long-">
  913. <!-- -->
  914. </a>
  915. <ul class="blockList">
  916. <li class="blockList">
  917. <h4>setMaximumItemAge</h4>
  918. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.329">setMaximumItemAge</a>(long&nbsp;periods)</pre>
  919. <div class="block">Sets the number of time units in the 'history' for the series. This
  920. provides one mechanism for automatically dropping old data from the
  921. time series. For example, if a series contains daily data, you might set
  922. the history count to 30. Then, when you add a new data item, all data
  923. items more than 30 days older than the latest value are automatically
  924. dropped from the series.</div>
  925. <dl>
  926. <dt><span class="paramLabel">Parameters:</span></dt>
  927. <dd><code>periods</code> - the number of time periods.</dd>
  928. <dt><span class="seeLabel">See Also:</span></dt>
  929. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#getMaximumItemAge--"><code>getMaximumItemAge()</code></a></dd>
  930. </dl>
  931. </li>
  932. </ul>
  933. <a name="findValueRange--">
  934. <!-- -->
  935. </a>
  936. <ul class="blockList">
  937. <li class="blockList">
  938. <h4>findValueRange</h4>
  939. <pre>public&nbsp;<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.349">findValueRange</a>()</pre>
  940. <div class="block">Returns the range of y-values in the time series. Any <code>null</code>
  941. data values in the series will be ignored (except for the special case
  942. where all data values are <code>null</code>, in which case the return
  943. value is <code>Range(Double.NaN, Double.NaN)</code>). If the time
  944. series contains no items, this method will return <code>null</code>.</div>
  945. <dl>
  946. <dt><span class="returnLabel">Returns:</span></dt>
  947. <dd>The range of y-values in the time series (possibly
  948. <code>null</code>).</dd>
  949. <dt><span class="simpleTagLabel">Since:</span></dt>
  950. <dd>1.0.18</dd>
  951. </dl>
  952. </li>
  953. </ul>
  954. <a name="findValueRange-org.jfree.data.Range-java.util.TimeZone-">
  955. <!-- -->
  956. </a>
  957. <ul class="blockList">
  958. <li class="blockList">
  959. <h4>findValueRange</h4>
  960. <pre>public&nbsp;<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.370">findValueRange</a>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;xRange,
  961. java.util.TimeZone&nbsp;timeZone)</pre>
  962. <div class="block">Returns the range of y-values in the time series that fall within
  963. the specified range of x-values. This is equivalent to
  964. <code>findValueRange(xRange, TimePeriodAnchor.MIDDLE, timeZone)</code>.</div>
  965. <dl>
  966. <dt><span class="paramLabel">Parameters:</span></dt>
  967. <dd><code>xRange</code> - the subrange of x-values (<code>null</code> not
  968. permitted).</dd>
  969. <dd><code>timeZone</code> - the time zone used to convert x-values to time periods
  970. (<code>null</code> not permitted).</dd>
  971. <dt><span class="returnLabel">Returns:</span></dt>
  972. <dd>The range.</dd>
  973. <dt><span class="simpleTagLabel">Since:</span></dt>
  974. <dd>1.0.18</dd>
  975. </dl>
  976. </li>
  977. </ul>
  978. <a name="findValueRange-org.jfree.data.Range-org.jfree.data.time.TimePeriodAnchor-java.util.TimeZone-">
  979. <!-- -->
  980. </a>
  981. <ul class="blockList">
  982. <li class="blockList">
  983. <h4>findValueRange</h4>
  984. <pre>public&nbsp;<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.389">findValueRange</a>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;xRange,
  985. <a href="../../../../org/jfree/data/time/TimePeriodAnchor.html" title="class in org.jfree.data.time">TimePeriodAnchor</a>&nbsp;xAnchor,
  986. java.util.TimeZone&nbsp;zone)</pre>
  987. <div class="block">Finds the range of y-values that fall within the specified range of
  988. x-values (where the x-values are interpreted as milliseconds since the
  989. epoch and converted to time periods using the specified timezone).</div>
  990. <dl>
  991. <dt><span class="paramLabel">Parameters:</span></dt>
  992. <dd><code>xRange</code> - the subset of x-values to use (<code>null</code> not
  993. permitted).</dd>
  994. <dd><code>xAnchor</code> - the anchor point for the x-values (<code>null</code>
  995. not permitted).</dd>
  996. <dd><code>zone</code> - the time zone (<code>null</code> not permitted).</dd>
  997. <dt><span class="returnLabel">Returns:</span></dt>
  998. <dd>The range of y-values.</dd>
  999. <dt><span class="simpleTagLabel">Since:</span></dt>
  1000. <dd>1.0.18</dd>
  1001. </dl>
  1002. </li>
  1003. </ul>
  1004. <a name="getMinY--">
  1005. <!-- -->
  1006. </a>
  1007. <ul class="blockList">
  1008. <li class="blockList">
  1009. <h4>getMinY</h4>
  1010. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.436">getMinY</a>()</pre>
  1011. <div class="block">Returns the smallest y-value in the series, ignoring any
  1012. <code>null</code> and <code>Double.NaN</code> values. This method
  1013. returns <code>Double.NaN</code> if there is no smallest y-value (for
  1014. example, when the series is empty).</div>
  1015. <dl>
  1016. <dt><span class="returnLabel">Returns:</span></dt>
  1017. <dd>The smallest y-value.</dd>
  1018. <dt><span class="simpleTagLabel">Since:</span></dt>
  1019. <dd>1.0.14</dd>
  1020. <dt><span class="seeLabel">See Also:</span></dt>
  1021. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#getMaxY--"><code>getMaxY()</code></a></dd>
  1022. </dl>
  1023. </li>
  1024. </ul>
  1025. <a name="getMaxY--">
  1026. <!-- -->
  1027. </a>
  1028. <ul class="blockList">
  1029. <li class="blockList">
  1030. <h4>getMaxY</h4>
  1031. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.452">getMaxY</a>()</pre>
  1032. <div class="block">Returns the largest y-value in the series, ignoring any
  1033. <code>null</code> and <code>Double.NaN</code> values. This method
  1034. returns <code>Double.NaN</code> if there is no largest y-value
  1035. (for example, when the series is empty).</div>
  1036. <dl>
  1037. <dt><span class="returnLabel">Returns:</span></dt>
  1038. <dd>The largest y-value.</dd>
  1039. <dt><span class="simpleTagLabel">Since:</span></dt>
  1040. <dd>1.0.14</dd>
  1041. <dt><span class="seeLabel">See Also:</span></dt>
  1042. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#getMinY--"><code>getMinY()</code></a></dd>
  1043. </dl>
  1044. </li>
  1045. </ul>
  1046. <a name="getTimePeriodClass--">
  1047. <!-- -->
  1048. </a>
  1049. <ul class="blockList">
  1050. <li class="blockList">
  1051. <h4>getTimePeriodClass</h4>
  1052. <pre>public&nbsp;java.lang.Class&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.466">getTimePeriodClass</a>()</pre>
  1053. <div class="block">Returns the time period class for this series.
  1054. <p>
  1055. Only one time period class can be used within a single series (enforced).
  1056. If you add a data item with a <a href="../../../../org/jfree/data/time/Year.html" title="class in org.jfree.data.time"><code>Year</code></a> for the time period, then all
  1057. subsequent data items must also have a <a href="../../../../org/jfree/data/time/Year.html" title="class in org.jfree.data.time"><code>Year</code></a> for the time period.</div>
  1058. <dl>
  1059. <dt><span class="returnLabel">Returns:</span></dt>
  1060. <dd>The time period class (may be <code>null</code> but only for
  1061. an empty series).</dd>
  1062. </dl>
  1063. </li>
  1064. </ul>
  1065. <a name="getDataItem-int-">
  1066. <!-- -->
  1067. </a>
  1068. <ul class="blockList">
  1069. <li class="blockList">
  1070. <h4>getDataItem</h4>
  1071. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.479">getDataItem</a>(int&nbsp;index)</pre>
  1072. <div class="block">Returns a data item from the dataset. Note that the returned object
  1073. is a clone of the item in the series, so modifying it will have no
  1074. effect on the data series.</div>
  1075. <dl>
  1076. <dt><span class="paramLabel">Parameters:</span></dt>
  1077. <dd><code>index</code> - the item index.</dd>
  1078. <dt><span class="returnLabel">Returns:</span></dt>
  1079. <dd>The data item.</dd>
  1080. </dl>
  1081. </li>
  1082. </ul>
  1083. <a name="getDataItem-org.jfree.data.time.RegularTimePeriod-">
  1084. <!-- -->
  1085. </a>
  1086. <ul class="blockList">
  1087. <li class="blockList">
  1088. <h4>getDataItem</h4>
  1089. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.496">getDataItem</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period)</pre>
  1090. <div class="block">Returns the data item for a specific period. Note that the returned
  1091. object is a clone of the item in the series, so modifying it will have
  1092. no effect on the data series.</div>
  1093. <dl>
  1094. <dt><span class="paramLabel">Parameters:</span></dt>
  1095. <dd><code>period</code> - the period of interest (<code>null</code> not allowed).</dd>
  1096. <dt><span class="returnLabel">Returns:</span></dt>
  1097. <dd>The data item matching the specified period (or
  1098. <code>null</code> if there is no match).</dd>
  1099. <dt><span class="seeLabel">See Also:</span></dt>
  1100. <dd><a href="../../../../org/jfree/data/time/TimeSeries.html#getDataItem-int-"><code>getDataItem(int)</code></a></dd>
  1101. </dl>
  1102. </li>
  1103. </ul>
  1104. <a name="getTimePeriod-int-">
  1105. <!-- -->
  1106. </a>
  1107. <ul class="blockList">
  1108. <li class="blockList">
  1109. <h4>getTimePeriod</h4>
  1110. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.549">getTimePeriod</a>(int&nbsp;index)</pre>
  1111. <div class="block">Returns the time period at the specified index.</div>
  1112. <dl>
  1113. <dt><span class="paramLabel">Parameters:</span></dt>
  1114. <dd><code>index</code> - the index of the data item.</dd>
  1115. <dt><span class="returnLabel">Returns:</span></dt>
  1116. <dd>The time period.</dd>
  1117. </dl>
  1118. </li>
  1119. </ul>
  1120. <a name="getNextTimePeriod--">
  1121. <!-- -->
  1122. </a>
  1123. <ul class="blockList">
  1124. <li class="blockList">
  1125. <h4>getNextTimePeriod</h4>
  1126. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.559">getNextTimePeriod</a>()</pre>
  1127. <div class="block">Returns a time period that would be the next in sequence on the end of
  1128. the time series.</div>
  1129. <dl>
  1130. <dt><span class="returnLabel">Returns:</span></dt>
  1131. <dd>The next time period.</dd>
  1132. </dl>
  1133. </li>
  1134. </ul>
  1135. <a name="getTimePeriods--">
  1136. <!-- -->
  1137. </a>
  1138. <ul class="blockList">
  1139. <li class="blockList">
  1140. <h4>getTimePeriods</h4>
  1141. <pre>public&nbsp;java.util.Collection&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.569">getTimePeriods</a>()</pre>
  1142. <div class="block">Returns a collection of all the time periods in the time series.</div>
  1143. <dl>
  1144. <dt><span class="returnLabel">Returns:</span></dt>
  1145. <dd>A collection of all the time periods.</dd>
  1146. </dl>
  1147. </li>
  1148. </ul>
  1149. <a name="getTimePeriodsUniqueToOtherSeries-org.jfree.data.time.TimeSeries-">
  1150. <!-- -->
  1151. </a>
  1152. <ul class="blockList">
  1153. <li class="blockList">
  1154. <h4>getTimePeriodsUniqueToOtherSeries</h4>
  1155. <pre>public&nbsp;java.util.Collection&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.585">getTimePeriodsUniqueToOtherSeries</a>(<a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a>&nbsp;series)</pre>
  1156. <div class="block">Returns a collection of time periods in the specified series, but not in
  1157. this series, and therefore unique to the specified series.</div>
  1158. <dl>
  1159. <dt><span class="paramLabel">Parameters:</span></dt>
  1160. <dd><code>series</code> - the series to check against this one.</dd>
  1161. <dt><span class="returnLabel">Returns:</span></dt>
  1162. <dd>The unique time periods.</dd>
  1163. </dl>
  1164. </li>
  1165. </ul>
  1166. <a name="getIndex-org.jfree.data.time.RegularTimePeriod-">
  1167. <!-- -->
  1168. </a>
  1169. <ul class="blockList">
  1170. <li class="blockList">
  1171. <h4>getIndex</h4>
  1172. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.605">getIndex</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period)</pre>
  1173. <div class="block">Returns the index for the item (if any) that corresponds to a time
  1174. period.</div>
  1175. <dl>
  1176. <dt><span class="paramLabel">Parameters:</span></dt>
  1177. <dd><code>period</code> - the time period (<code>null</code> not permitted).</dd>
  1178. <dt><span class="returnLabel">Returns:</span></dt>
  1179. <dd>The index.</dd>
  1180. </dl>
  1181. </li>
  1182. </ul>
  1183. <a name="getValue-int-">
  1184. <!-- -->
  1185. </a>
  1186. <ul class="blockList">
  1187. <li class="blockList">
  1188. <h4>getValue</h4>
  1189. <pre>public&nbsp;java.lang.Number&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.619">getValue</a>(int&nbsp;index)</pre>
  1190. <div class="block">Returns the value at the specified index.</div>
  1191. <dl>
  1192. <dt><span class="paramLabel">Parameters:</span></dt>
  1193. <dd><code>index</code> - index of a value.</dd>
  1194. <dt><span class="returnLabel">Returns:</span></dt>
  1195. <dd>The value (possibly <code>null</code>).</dd>
  1196. </dl>
  1197. </li>
  1198. </ul>
  1199. <a name="getValue-org.jfree.data.time.RegularTimePeriod-">
  1200. <!-- -->
  1201. </a>
  1202. <ul class="blockList">
  1203. <li class="blockList">
  1204. <h4>getValue</h4>
  1205. <pre>public&nbsp;java.lang.Number&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.631">getValue</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period)</pre>
  1206. <div class="block">Returns the value for a time period. If there is no data item with the
  1207. specified period, this method will return <code>null</code>.</div>
  1208. <dl>
  1209. <dt><span class="paramLabel">Parameters:</span></dt>
  1210. <dd><code>period</code> - time period (<code>null</code> not permitted).</dd>
  1211. <dt><span class="returnLabel">Returns:</span></dt>
  1212. <dd>The value (possibly <code>null</code>).</dd>
  1213. </dl>
  1214. </li>
  1215. </ul>
  1216. <a name="add-org.jfree.data.time.TimeSeriesDataItem-">
  1217. <!-- -->
  1218. </a>
  1219. <ul class="blockList">
  1220. <li class="blockList">
  1221. <h4>add</h4>
  1222. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.646">add</a>(<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;item)</pre>
  1223. <div class="block">Adds a data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to
  1224. all registered listeners.</div>
  1225. <dl>
  1226. <dt><span class="paramLabel">Parameters:</span></dt>
  1227. <dd><code>item</code> - the (timeperiod, value) pair (<code>null</code> not
  1228. permitted).</dd>
  1229. </dl>
  1230. </li>
  1231. </ul>
  1232. <a name="add-org.jfree.data.time.TimeSeriesDataItem-boolean-">
  1233. <!-- -->
  1234. </a>
  1235. <ul class="blockList">
  1236. <li class="blockList">
  1237. <h4>add</h4>
  1238. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.658">add</a>(<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;item,
  1239. boolean&nbsp;notify)</pre>
  1240. <div class="block">Adds a data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to
  1241. all registered listeners.</div>
  1242. <dl>
  1243. <dt><span class="paramLabel">Parameters:</span></dt>
  1244. <dd><code>item</code> - the (timeperiod, value) pair (<code>null</code> not
  1245. permitted).</dd>
  1246. <dd><code>notify</code> - notify listeners?</dd>
  1247. </dl>
  1248. </li>
  1249. </ul>
  1250. <a name="add-org.jfree.data.time.RegularTimePeriod-double-">
  1251. <!-- -->
  1252. </a>
  1253. <ul class="blockList">
  1254. <li class="blockList">
  1255. <h4>add</h4>
  1256. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.732">add</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  1257. double&nbsp;value)</pre>
  1258. <div class="block">Adds a new data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a>
  1259. to all registered listeners.</div>
  1260. <dl>
  1261. <dt><span class="paramLabel">Parameters:</span></dt>
  1262. <dd><code>period</code> - the time period (<code>null</code> not permitted).</dd>
  1263. <dd><code>value</code> - the value.</dd>
  1264. </dl>
  1265. </li>
  1266. </ul>
  1267. <a name="add-org.jfree.data.time.RegularTimePeriod-double-boolean-">
  1268. <!-- -->
  1269. </a>
  1270. <ul class="blockList">
  1271. <li class="blockList">
  1272. <h4>add</h4>
  1273. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.745">add</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  1274. double&nbsp;value,
  1275. boolean&nbsp;notify)</pre>
  1276. <div class="block">Adds a new data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a>
  1277. to all registered listeners.</div>
  1278. <dl>
  1279. <dt><span class="paramLabel">Parameters:</span></dt>
  1280. <dd><code>period</code> - the time period (<code>null</code> not permitted).</dd>
  1281. <dd><code>value</code> - the value.</dd>
  1282. <dd><code>notify</code> - notify listeners?</dd>
  1283. </dl>
  1284. </li>
  1285. </ul>
  1286. <a name="add-org.jfree.data.time.RegularTimePeriod-java.lang.Number-">
  1287. <!-- -->
  1288. </a>
  1289. <ul class="blockList">
  1290. <li class="blockList">
  1291. <h4>add</h4>
  1292. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.759">add</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  1293. java.lang.Number&nbsp;value)</pre>
  1294. <div class="block">Adds a new data item to the series and sends
  1295. a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered
  1296. listeners.</div>
  1297. <dl>
  1298. <dt><span class="paramLabel">Parameters:</span></dt>
  1299. <dd><code>period</code> - the time period (<code>null</code> not permitted).</dd>
  1300. <dd><code>value</code> - the value (<code>null</code> permitted).</dd>
  1301. </dl>
  1302. </li>
  1303. </ul>
  1304. <a name="add-org.jfree.data.time.RegularTimePeriod-java.lang.Number-boolean-">
  1305. <!-- -->
  1306. </a>
  1307. <ul class="blockList">
  1308. <li class="blockList">
  1309. <h4>add</h4>
  1310. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.772">add</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  1311. java.lang.Number&nbsp;value,
  1312. boolean&nbsp;notify)</pre>
  1313. <div class="block">Adds a new data item to the series and sends a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a>
  1314. to all registered listeners.</div>
  1315. <dl>
  1316. <dt><span class="paramLabel">Parameters:</span></dt>
  1317. <dd><code>period</code> - the time period (<code>null</code> not permitted).</dd>
  1318. <dd><code>value</code> - the value (<code>null</code> permitted).</dd>
  1319. <dd><code>notify</code> - notify listeners?</dd>
  1320. </dl>
  1321. </li>
  1322. </ul>
  1323. <a name="update-org.jfree.data.time.RegularTimePeriod-double-">
  1324. <!-- -->
  1325. </a>
  1326. <ul class="blockList">
  1327. <li class="blockList">
  1328. <h4>update</h4>
  1329. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.787">update</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  1330. double&nbsp;value)</pre>
  1331. <div class="block">Updates (changes) the value for a time period. Throws a
  1332. <a href="../../../../org/jfree/data/general/SeriesException.html" title="class in org.jfree.data.general"><code>SeriesException</code></a> if the period does not exist.</div>
  1333. <dl>
  1334. <dt><span class="paramLabel">Parameters:</span></dt>
  1335. <dd><code>period</code> - the period (<code>null</code> not permitted).</dd>
  1336. <dd><code>value</code> - the value.</dd>
  1337. <dt><span class="simpleTagLabel">Since:</span></dt>
  1338. <dd>1.0.14</dd>
  1339. </dl>
  1340. </li>
  1341. </ul>
  1342. <a name="update-org.jfree.data.time.RegularTimePeriod-java.lang.Number-">
  1343. <!-- -->
  1344. </a>
  1345. <ul class="blockList">
  1346. <li class="blockList">
  1347. <h4>update</h4>
  1348. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.798">update</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  1349. java.lang.Number&nbsp;value)</pre>
  1350. <div class="block">Updates (changes) the value for a time period. Throws a
  1351. <a href="../../../../org/jfree/data/general/SeriesException.html" title="class in org.jfree.data.general"><code>SeriesException</code></a> if the period does not exist.</div>
  1352. <dl>
  1353. <dt><span class="paramLabel">Parameters:</span></dt>
  1354. <dd><code>period</code> - the period (<code>null</code> not permitted).</dd>
  1355. <dd><code>value</code> - the value (<code>null</code> permitted).</dd>
  1356. </dl>
  1357. </li>
  1358. </ul>
  1359. <a name="update-int-java.lang.Number-">
  1360. <!-- -->
  1361. </a>
  1362. <ul class="blockList">
  1363. <li class="blockList">
  1364. <h4>update</h4>
  1365. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.814">update</a>(int&nbsp;index,
  1366. java.lang.Number&nbsp;value)</pre>
  1367. <div class="block">Updates (changes) the value of a data item.</div>
  1368. <dl>
  1369. <dt><span class="paramLabel">Parameters:</span></dt>
  1370. <dd><code>index</code> - the index of the data item.</dd>
  1371. <dd><code>value</code> - the new value (<code>null</code> permitted).</dd>
  1372. </dl>
  1373. </li>
  1374. </ul>
  1375. <a name="addAndOrUpdate-org.jfree.data.time.TimeSeries-">
  1376. <!-- -->
  1377. </a>
  1378. <ul class="blockList">
  1379. <li class="blockList">
  1380. <h4>addAndOrUpdate</h4>
  1381. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.844">addAndOrUpdate</a>(<a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a>&nbsp;series)</pre>
  1382. <div class="block">Adds or updates data from one series to another. Returns another series
  1383. containing the values that were overwritten.</div>
  1384. <dl>
  1385. <dt><span class="paramLabel">Parameters:</span></dt>
  1386. <dd><code>series</code> - the series to merge with this.</dd>
  1387. <dt><span class="returnLabel">Returns:</span></dt>
  1388. <dd>A series containing the values that were overwritten.</dd>
  1389. </dl>
  1390. </li>
  1391. </ul>
  1392. <a name="addOrUpdate-org.jfree.data.time.RegularTimePeriod-double-">
  1393. <!-- -->
  1394. </a>
  1395. <ul class="blockList">
  1396. <li class="blockList">
  1397. <h4>addOrUpdate</h4>
  1398. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.869">addOrUpdate</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  1399. double&nbsp;value)</pre>
  1400. <div class="block">Adds or updates an item in the times series and sends a
  1401. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  1402. <dl>
  1403. <dt><span class="paramLabel">Parameters:</span></dt>
  1404. <dd><code>period</code> - the time period to add/update (<code>null</code> not
  1405. permitted).</dd>
  1406. <dd><code>value</code> - the new value.</dd>
  1407. <dt><span class="returnLabel">Returns:</span></dt>
  1408. <dd>A copy of the overwritten data item, or <code>null</code> if no
  1409. item was overwritten.</dd>
  1410. </dl>
  1411. </li>
  1412. </ul>
  1413. <a name="addOrUpdate-org.jfree.data.time.RegularTimePeriod-java.lang.Number-">
  1414. <!-- -->
  1415. </a>
  1416. <ul class="blockList">
  1417. <li class="blockList">
  1418. <h4>addOrUpdate</h4>
  1419. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.885">addOrUpdate</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period,
  1420. java.lang.Number&nbsp;value)</pre>
  1421. <div class="block">Adds or updates an item in the times series and sends a
  1422. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  1423. <dl>
  1424. <dt><span class="paramLabel">Parameters:</span></dt>
  1425. <dd><code>period</code> - the time period to add/update (<code>null</code> not
  1426. permitted).</dd>
  1427. <dd><code>value</code> - the new value (<code>null</code> permitted).</dd>
  1428. <dt><span class="returnLabel">Returns:</span></dt>
  1429. <dd>A copy of the overwritten data item, or <code>null</code> if no
  1430. item was overwritten.</dd>
  1431. </dl>
  1432. </li>
  1433. </ul>
  1434. <a name="addOrUpdate-org.jfree.data.time.TimeSeriesDataItem-">
  1435. <!-- -->
  1436. </a>
  1437. <ul class="blockList">
  1438. <li class="blockList">
  1439. <h4>addOrUpdate</h4>
  1440. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.901">addOrUpdate</a>(<a href="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</a>&nbsp;item)</pre>
  1441. <div class="block">Adds or updates an item in the times series and sends a
  1442. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  1443. <dl>
  1444. <dt><span class="paramLabel">Parameters:</span></dt>
  1445. <dd><code>item</code> - the data item (<code>null</code> not permitted).</dd>
  1446. <dt><span class="returnLabel">Returns:</span></dt>
  1447. <dd>A copy of the overwritten data item, or <code>null</code> if no
  1448. item was overwritten.</dd>
  1449. <dt><span class="simpleTagLabel">Since:</span></dt>
  1450. <dd>1.0.14</dd>
  1451. </dl>
  1452. </li>
  1453. </ul>
  1454. <a name="removeAgedItems-boolean-">
  1455. <!-- -->
  1456. </a>
  1457. <ul class="blockList">
  1458. <li class="blockList">
  1459. <h4>removeAgedItems</h4>
  1460. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.966">removeAgedItems</a>(boolean&nbsp;notify)</pre>
  1461. <div class="block">Age items in the series. Ensure that the timespan from the youngest to
  1462. the oldest record in the series does not exceed maximumItemAge time
  1463. periods. Oldest items will be removed if required.</div>
  1464. <dl>
  1465. <dt><span class="paramLabel">Parameters:</span></dt>
  1466. <dd><code>notify</code> - controls whether or not a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> is
  1467. sent to registered listeners IF any items are removed.</dd>
  1468. </dl>
  1469. </li>
  1470. </ul>
  1471. <a name="removeAgedItems-long-boolean-">
  1472. <!-- -->
  1473. </a>
  1474. <ul class="blockList">
  1475. <li class="blockList">
  1476. <h4>removeAgedItems</h4>
  1477. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.996">removeAgedItems</a>(long&nbsp;latest,
  1478. boolean&nbsp;notify)</pre>
  1479. <div class="block">Age items in the series. Ensure that the timespan from the supplied
  1480. time to the oldest record in the series does not exceed history count.
  1481. oldest items will be removed if required.</div>
  1482. <dl>
  1483. <dt><span class="paramLabel">Parameters:</span></dt>
  1484. <dd><code>latest</code> - the time to be compared against when aging data
  1485. (specified in milliseconds).</dd>
  1486. <dd><code>notify</code> - controls whether or not a <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> is
  1487. sent to registered listeners IF any items are removed.</dd>
  1488. </dl>
  1489. </li>
  1490. </ul>
  1491. <a name="clear--">
  1492. <!-- -->
  1493. </a>
  1494. <ul class="blockList">
  1495. <li class="blockList">
  1496. <h4>clear</h4>
  1497. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1041">clear</a>()</pre>
  1498. <div class="block">Removes all data items from the series and sends a
  1499. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
  1500. </li>
  1501. </ul>
  1502. <a name="delete-org.jfree.data.time.RegularTimePeriod-">
  1503. <!-- -->
  1504. </a>
  1505. <ul class="blockList">
  1506. <li class="blockList">
  1507. <h4>delete</h4>
  1508. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1059">delete</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;period)</pre>
  1509. <div class="block">Deletes the data item for the given time period and sends a
  1510. <a href="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners. If there is no
  1511. item with the specified time period, this method does nothing.</div>
  1512. <dl>
  1513. <dt><span class="paramLabel">Parameters:</span></dt>
  1514. <dd><code>period</code> - the period of the item to delete (<code>null</code> not
  1515. permitted).</dd>
  1516. </dl>
  1517. </li>
  1518. </ul>
  1519. <a name="delete-int-int-">
  1520. <!-- -->
  1521. </a>
  1522. <ul class="blockList">
  1523. <li class="blockList">
  1524. <h4>delete</h4>
  1525. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1078">delete</a>(int&nbsp;start,
  1526. int&nbsp;end)</pre>
  1527. <div class="block">Deletes data from start until end index (end inclusive).</div>
  1528. <dl>
  1529. <dt><span class="paramLabel">Parameters:</span></dt>
  1530. <dd><code>start</code> - the index of the first period to delete.</dd>
  1531. <dd><code>end</code> - the index of the last period to delete.</dd>
  1532. </dl>
  1533. </li>
  1534. </ul>
  1535. <a name="delete-int-int-boolean-">
  1536. <!-- -->
  1537. </a>
  1538. <ul class="blockList">
  1539. <li class="blockList">
  1540. <h4>delete</h4>
  1541. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1091">delete</a>(int&nbsp;start,
  1542. int&nbsp;end,
  1543. boolean&nbsp;notify)</pre>
  1544. <div class="block">Deletes data from start until end index (end inclusive).</div>
  1545. <dl>
  1546. <dt><span class="paramLabel">Parameters:</span></dt>
  1547. <dd><code>start</code> - the index of the first period to delete.</dd>
  1548. <dd><code>end</code> - the index of the last period to delete.</dd>
  1549. <dd><code>notify</code> - notify listeners?</dd>
  1550. <dt><span class="simpleTagLabel">Since:</span></dt>
  1551. <dd>1.0.14</dd>
  1552. </dl>
  1553. </li>
  1554. </ul>
  1555. <a name="clone--">
  1556. <!-- -->
  1557. </a>
  1558. <ul class="blockList">
  1559. <li class="blockList">
  1560. <h4>clone</h4>
  1561. <pre>public&nbsp;java.lang.Object&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1123">clone</a>()
  1562. throws java.lang.CloneNotSupportedException</pre>
  1563. <div class="block">Returns a clone of the time series.
  1564. <P>
  1565. Notes:
  1566. <ul>
  1567. <li>no need to clone the domain and range descriptions, since String
  1568. object is immutable;</li>
  1569. <li>we pass over to the more general method clone(start, end).</li>
  1570. </ul></div>
  1571. <dl>
  1572. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  1573. <dd><code><a href="../../../../org/jfree/data/general/Series.html#clone--">clone</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></code></dd>
  1574. <dt><span class="returnLabel">Returns:</span></dt>
  1575. <dd>A clone of the time series.</dd>
  1576. <dt><span class="throwsLabel">Throws:</span></dt>
  1577. <dd><code>java.lang.CloneNotSupportedException</code> - not thrown by this class, but
  1578. subclasses may differ.</dd>
  1579. </dl>
  1580. </li>
  1581. </ul>
  1582. <a name="createCopy-int-int-">
  1583. <!-- -->
  1584. </a>
  1585. <ul class="blockList">
  1586. <li class="blockList">
  1587. <h4>createCopy</h4>
  1588. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1141">createCopy</a>(int&nbsp;start,
  1589. int&nbsp;end)
  1590. throws java.lang.CloneNotSupportedException</pre>
  1591. <div class="block">Creates a new timeseries by copying a subset of the data in this time
  1592. series.</div>
  1593. <dl>
  1594. <dt><span class="paramLabel">Parameters:</span></dt>
  1595. <dd><code>start</code> - the index of the first time period to copy.</dd>
  1596. <dd><code>end</code> - the index of the last time period to copy.</dd>
  1597. <dt><span class="returnLabel">Returns:</span></dt>
  1598. <dd>A series containing a copy of this times series from start until
  1599. end.</dd>
  1600. <dt><span class="throwsLabel">Throws:</span></dt>
  1601. <dd><code>java.lang.CloneNotSupportedException</code> - if there is a cloning problem.</dd>
  1602. </dl>
  1603. </li>
  1604. </ul>
  1605. <a name="createCopy-org.jfree.data.time.RegularTimePeriod-org.jfree.data.time.RegularTimePeriod-">
  1606. <!-- -->
  1607. </a>
  1608. <ul class="blockList">
  1609. <li class="blockList">
  1610. <h4>createCopy</h4>
  1611. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1183">createCopy</a>(<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;start,
  1612. <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;end)
  1613. throws java.lang.CloneNotSupportedException</pre>
  1614. <div class="block">Creates a new timeseries by copying a subset of the data in this time
  1615. series.</div>
  1616. <dl>
  1617. <dt><span class="paramLabel">Parameters:</span></dt>
  1618. <dd><code>start</code> - the first time period to copy (<code>null</code> not
  1619. permitted).</dd>
  1620. <dd><code>end</code> - the last time period to copy (<code>null</code> not
  1621. permitted).</dd>
  1622. <dt><span class="returnLabel">Returns:</span></dt>
  1623. <dd>A time series containing a copy of this time series from start
  1624. until end.</dd>
  1625. <dt><span class="throwsLabel">Throws:</span></dt>
  1626. <dd><code>java.lang.CloneNotSupportedException</code> - if there is a cloning problem.</dd>
  1627. </dl>
  1628. </li>
  1629. </ul>
  1630. <a name="equals-java.lang.Object-">
  1631. <!-- -->
  1632. </a>
  1633. <ul class="blockList">
  1634. <li class="blockList">
  1635. <h4>equals</h4>
  1636. <pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1224">equals</a>(java.lang.Object&nbsp;obj)</pre>
  1637. <div class="block">Tests the series for equality with an arbitrary object.</div>
  1638. <dl>
  1639. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  1640. <dd><code><a href="../../../../org/jfree/data/general/Series.html#equals-java.lang.Object-">equals</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></code></dd>
  1641. <dt><span class="paramLabel">Parameters:</span></dt>
  1642. <dd><code>obj</code> - the object to test against (<code>null</code> permitted).</dd>
  1643. <dt><span class="returnLabel">Returns:</span></dt>
  1644. <dd>A boolean.</dd>
  1645. </dl>
  1646. </li>
  1647. </ul>
  1648. <a name="hashCode--">
  1649. <!-- -->
  1650. </a>
  1651. <ul class="blockListLast">
  1652. <li class="blockList">
  1653. <h4>hashCode</h4>
  1654. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.1266">hashCode</a>()</pre>
  1655. <div class="block">Returns a hash code value for the object.</div>
  1656. <dl>
  1657. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  1658. <dd><code><a href="../../../../org/jfree/data/general/Series.html#hashCode--">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></code></dd>
  1659. <dt><span class="returnLabel">Returns:</span></dt>
  1660. <dd>The hashcode</dd>
  1661. </dl>
  1662. </li>
  1663. </ul>
  1664. </li>
  1665. </ul>
  1666. </li>
  1667. </ul>
  1668. </div>
  1669. </div>
  1670. <!-- ========= END OF CLASS DATA ========= -->
  1671. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  1672. <div class="bottomNav"><a name="navbar.bottom">
  1673. <!-- -->
  1674. </a>
  1675. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  1676. <a name="navbar.bottom.firstrow">
  1677. <!-- -->
  1678. </a>
  1679. <ul class="navList" title="Navigation">
  1680. <li><a href="../../../../overview-summary.html">Overview</a></li>
  1681. <li><a href="package-summary.html">Package</a></li>
  1682. <li class="navBarCell1Rev">Class</li>
  1683. <li><a href="class-use/TimeSeries.html">Use</a></li>
  1684. <li><a href="package-tree.html">Tree</a></li>
  1685. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  1686. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  1687. <li><a href="../../../../help-doc.html">Help</a></li>
  1688. </ul>
  1689. </div>
  1690. <div class="subNav">
  1691. <ul class="navList">
  1692. <li><a href="../../../../org/jfree/data/time/TimePeriodValuesCollection.html" title="class in org.jfree.data.time"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  1693. <li><a href="../../../../org/jfree/data/time/TimeSeriesCollection.html" title="class in org.jfree.data.time"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  1694. </ul>
  1695. <ul class="navList">
  1696. <li><a href="../../../../index.html?org/jfree/data/time/TimeSeries.html" target="_top">Frames</a></li>
  1697. <li><a href="TimeSeries.html" target="_top">No&nbsp;Frames</a></li>
  1698. </ul>
  1699. <ul class="navList" id="allclasses_navbar_bottom">
  1700. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  1701. </ul>
  1702. <div>
  1703. <script type="text/javascript"><!--
  1704. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  1705. if(window==top) {
  1706. allClassesLink.style.display = "block";
  1707. }
  1708. else {
  1709. allClassesLink.style.display = "none";
  1710. }
  1711. //-->
  1712. </script>
  1713. </div>
  1714. <div>
  1715. <ul class="subNavList">
  1716. <li>Summary:&nbsp;</li>
  1717. <li>Nested&nbsp;|&nbsp;</li>
  1718. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  1719. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  1720. <li><a href="#method.summary">Method</a></li>
  1721. </ul>
  1722. <ul class="subNavList">
  1723. <li>Detail:&nbsp;</li>
  1724. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  1725. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  1726. <li><a href="#method.detail">Method</a></li>
  1727. </ul>
  1728. </div>
  1729. <a name="skip.navbar.bottom">
  1730. <!-- -->
  1731. </a></div>
  1732. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1733. </body>
  1734. </html>