📄 timeseries.html
字号:
<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the item index (zero-based).<DT><B>Returns:</B><DD>The data item.</DL></DD></DL><HR><A NAME="getDataItem(org.jfree.data.time.RegularTimePeriod)"><!-- --></A><H3>getDataItem</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</A> <B>getDataItem</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> period)</PRE><DL><DD>Returns the data item for a specific period.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the period of interest (<code>null</code> not allowed).<DT><B>Returns:</B><DD>The data item matching the specified period (or <code>null</code> if there is no match).</DL></DD></DL><HR><A NAME="getTimePeriod(int)"><!-- --></A><H3>getTimePeriod</H3><PRE>public <A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> <B>getTimePeriod</B>(int index)</PRE><DL><DD>Returns the time period at the specified index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the data item.<DT><B>Returns:</B><DD>The time period.</DL></DD></DL><HR><A NAME="getNextTimePeriod()"><!-- --></A><H3>getNextTimePeriod</H3><PRE>public <A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> <B>getNextTimePeriod</B>()</PRE><DL><DD>Returns a time period that would be the next in sequence on the end of the time series.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The next time period.</DL></DD></DL><HR><A NAME="getTimePeriods()"><!-- --></A><H3>getTimePeriods</H3><PRE>public java.util.Collection <B>getTimePeriods</B>()</PRE><DL><DD>Returns a collection of all the time periods in the time series.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A collection of all the time periods.</DL></DD></DL><HR><A NAME="getTimePeriodsUniqueToOtherSeries(org.jfree.data.time.TimeSeries)"><!-- --></A><H3>getTimePeriodsUniqueToOtherSeries</H3><PRE>public java.util.Collection <B>getTimePeriodsUniqueToOtherSeries</B>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> series)</PRE><DL><DD>Returns a collection of time periods in the specified series, but not in this series, and therefore unique to the specified series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series to check against this one.<DT><B>Returns:</B><DD>The unique time periods.</DL></DD></DL><HR><A NAME="getIndex(org.jfree.data.time.RegularTimePeriod)"><!-- --></A><H3>getIndex</H3><PRE>public int <B>getIndex</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> period)</PRE><DL><DD>Returns the index for the item (if any) that corresponds to a time period.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The index.</DL></DD></DL><HR><A NAME="getValue(int)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.Number <B>getValue</B>(int index)</PRE><DL><DD>Returns the value at the specified index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index of a value.<DT><B>Returns:</B><DD>The value (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="getValue(org.jfree.data.time.RegularTimePeriod)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.Number <B>getValue</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> period)</PRE><DL><DD>Returns the value for a time period. If there is no data item with the specified period, this method will return <code>null</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - time period (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The value (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="add(org.jfree.data.time.TimeSeriesDataItem)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</A> item)</PRE><DL><DD>Adds a data item to the series and sends a <A HREF="../../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registerd listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>item</CODE> - the (timeperiod, value) pair (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="add(org.jfree.data.time.RegularTimePeriod, double)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> period, double value)</PRE><DL><DD>Adds a new data item to the series and sends a <A HREF="../../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registerd listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period (<code>null</code> not permitted).<DD><CODE>value</CODE> - the value.</DL></DD></DL><HR><A NAME="add(org.jfree.data.time.RegularTimePeriod, java.lang.Number)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> period, java.lang.Number value)</PRE><DL><DD>Adds a new data item to the series and sends a <A HREF="../../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registerd listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period (<code>null</code> not permitted).<DD><CODE>value</CODE> - the value (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="update(org.jfree.data.time.RegularTimePeriod, java.lang.Number)"><!-- --></A><H3>update</H3><PRE>public void <B>update</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> period, java.lang.Number value)</PRE><DL><DD>Updates (changes) the value for a time period. Throws a <A HREF="../../../../org/jfree/data/SeriesException.html" title="class in org.jfree.data"><CODE>SeriesException</CODE></A> if the period does not exist.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the period (<code>null</code> not permitted).<DD><CODE>value</CODE> - the value (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="update(int, java.lang.Number)"><!-- --></A><H3>update</H3><PRE>public void <B>update</B>(int index, java.lang.Number value)</PRE><DL><DD>Updates (changes) the value of a data item.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the data item.<DD><CODE>value</CODE> - the new value (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="addAndOrUpdate(org.jfree.data.time.TimeSeries)"><!-- --></A><H3>addAndOrUpdate</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> <B>addAndOrUpdate</B>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> series)</PRE><DL><DD>Adds or updates data from one series to another. Returns another series containing the values that were overwritten.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series to merge with this.<DT><B>Returns:</B><DD>A series containing the values that were overwritten.</DL></DD></DL><HR><A NAME="addOrUpdate(org.jfree.data.time.RegularTimePeriod, double)"><!-- --></A><H3>addOrUpdate</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</A> <B>addOrUpdate</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> period, double value)</PRE><DL><DD>Adds or updates an item in the times series and sends a <A HREF="../../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listenrs.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period to add/update (<code>null</code> not permitted).<DD><CODE>value</CODE> - the new value.<DT><B>Returns:</B><DD>A copy of the overwritten data item, or <code>null</code> if no item was overwritten.</DL></DD></DL><HR><A NAME="addOrUpdate(org.jfree.data.time.RegularTimePeriod, java.lang.Number)"><!-- --></A><H3>addOrUpdate</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</A> <B>addOrUpdate</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A> period, java.lang.Number value)</PRE><DL><DD>Adds or updates an item in the times series and sends a <A HREF="../../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listenrs.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period to add/update (<code>null</code> not permitted).<DD><CODE>value</CODE> - the new value (<code>null</code> permitted).<DT><B>Returns:</B><DD>A copy of the overwritten data item, or <code>null</code> if no item was overwritten.</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -