⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timeseries.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 exceed the maximum item count, then the FIRST element in the series is  automatically removed, ensuring that the maximum item count is not  exceeded.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maximum</CODE> - the maximum (requires >= 0).<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getMaximumItemCount()"><CODE>getMaximumItemCount()</CODE></A></DL></DD></DL><HR><A NAME="getMaximumItemAge()"><!-- --></A><H3>getMaximumItemAge</H3><PRE>public long <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.277"><B>getMaximumItemAge</B></A>()</PRE><DL><DD>Returns the maximum item age (in time periods) for the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The maximum item age.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/time/TimeSeries.html#setMaximumItemAge(long)"><CODE>setMaximumItemAge(long)</CODE></A></DL></DD></DL><HR><A NAME="setMaximumItemAge(long)"><!-- --></A><H3>setMaximumItemAge</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.293"><B>setMaximumItemAge</B></A>(long&nbsp;periods)</PRE><DL><DD>Sets the number of time units in the 'history' for the series.  This  provides one mechanism for automatically dropping old data from the time series. For example, if a series contains daily data, you might set the history count to 30.  Then, when you add a new data item, all data items more than 30 days older than the latest value are automatically  dropped from the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>periods</CODE> - the number of time periods.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getMaximumItemAge()"><CODE>getMaximumItemAge()</CODE></A></DL></DD></DL><HR><A NAME="getTimePeriodClass()"><!-- --></A><H3>getTimePeriodClass</H3><PRE>public java.lang.Class <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.310"><B>getTimePeriodClass</B></A>()</PRE><DL><DD>Returns the time period class for this series. <p> Only one time period class can be used within a single series (enforced). 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 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.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The time period class (never <code>null</code>).</DL></DD></DL><HR><A NAME="getDataItem(int)"><!-- --></A><H3>getDataItem</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</A> <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.323"><B>getDataItem</B></A>(int&nbsp;index)</PRE><DL><DD>Returns a data item for the series.<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.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getDataItem(org.jfree.data.time.RegularTimePeriod)"><CODE>getDataItem(RegularTimePeriod)</CODE></A></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> <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.337"><B>getDataItem</B></A>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A>&nbsp;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).<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getDataItem(int)"><CODE>getDataItem(int)</CODE></A></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> <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.359"><B>getTimePeriod</B></A>(int&nbsp;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> <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.369"><B>getNextTimePeriod</B></A>()</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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.379"><B>getTimePeriods</B></A>()</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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.395"><B>getTimePeriodsUniqueToOtherSeries</B></A>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A>&nbsp;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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.417"><B>getIndex</B></A>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A>&nbsp;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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.433"><B>getValue</B></A>(int&nbsp;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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.445"><B>getValue</B></A>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A>&nbsp;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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.465"><B>add</B></A>(<A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</A>&nbsp;item)</PRE><DL><DD>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 all registered  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.TimeSeriesDataItem, boolean)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.478"><B>add</B></A>(<A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</A>&nbsp;item,                boolean&nbsp;notify)</PRE><DL><DD>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 all registered  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).<DD><CODE>notify</CODE> - notify listeners?</DL></DD></DL><HR><A NAME="add(org.jfree.data.time.RegularTimePeriod, double)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeSeries.html#line.547"><B>add</B></A>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</A>&nbsp;period,                double&nbsp;value)</PRE><DL><DD>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> to all registered listeners.<P><DD><DL></DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -