timeseries.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,370 行 · 第 1/4 页
HTML
1,370 行
</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">TimeSeriesDataItem</A> pair) throws <A HREF="../../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds a data item to the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pair</CODE> - the (timeperiod, value) pair.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jfree/data/SeriesException.html">SeriesException</A></CODE> - if there is a problem adding the data.</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">RegularTimePeriod</A> period, double value) throws <A HREF="../../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds a new data item to the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period.<DD><CODE>value</CODE> - the value.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jfree/data/SeriesException.html">SeriesException</A></CODE> - if there is a problem adding the data.</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">RegularTimePeriod</A> period, java.lang.Number value) throws <A HREF="../../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds a new data item to the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period.<DD><CODE>value</CODE> - the value.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jfree/data/SeriesException.html">SeriesException</A></CODE> - if there is a problem adding the data.</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">RegularTimePeriod</A> period, java.lang.Number value) throws <A HREF="../../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Updates (changes) the value for a time period. Ignores the update if the period does not exist.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the period to update.<DD><CODE>value</CODE> - the new value.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jfree/data/SeriesException.html">SeriesException</A></CODE> - if there is a problem adding the data.</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 pair.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the data pair to update.<DD><CODE>value</CODE> - the new value.</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">TimeSeries</A> <B>addAndOrUpdate</B>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html">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>series containing the values that were 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">TimeSeriesDataItem</A> <B>addOrUpdate</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A> period, java.lang.Number value)</PRE><DL><DD>Adds or updates the times series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period to add/update.<DD><CODE>value</CODE> - the new value.<DT><B>Returns:</B><DD>a copy of the overwritten data pair (or null).</DL></DD></DL><HR><A NAME="ageHistoryCountItems()"><!-- --></A><H3>ageHistoryCountItems</H3><PRE>public void <B>ageHistoryCountItems</B>()</PRE><DL><DD>age items in the series. Ensure that the timespan from the youngest to the oldest record in the series does not exceed history count. oldest items will be removed if required<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="ageHistoryCountItems(long)"><!-- --></A><H3>ageHistoryCountItems</H3><PRE>public void <B>ageHistoryCountItems</B>(long latest)</PRE><DL><DD>age items in the series. Ensure that the timespan from the supplied time to the oldest record in the series does not exceed history count. oldest items will be removed if required<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>latest</CODE> - the time to be compared against when aging data.</DL></DD></DL><HR><A NAME="delete(org.jfree.data.time.RegularTimePeriod)"><!-- --></A><H3>delete</H3><PRE>public void <B>delete</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A> period)</PRE><DL><DD>Deletes data for the given time period.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - period to delete.</DL></DD></DL><HR><A NAME="delete(int, int)"><!-- --></A><H3>delete</H3><PRE>public void <B>delete</B>(int start, int end)</PRE><DL><DD>Deletes data from start until end index (end inclusive).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - the index of the first period to delete.<DD><CODE>end</CODE> - the index of the last period to delete.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Returns a clone of the time series. <P> Notes: <ul> <li>no need to clone the domain and range descriptions, since String object is immutable;</li> <li>we pass over to the more general method clone(start, end).</li> </ul><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/data/Series.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/Series.html">Series</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone of the time series.</DL></DD></DL><HR><A NAME="createCopy(int, int)"><!-- --></A><H3>createCopy</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeries.html">TimeSeries</A> <B>createCopy</B>(int start, int end)</PRE><DL><DD>Creates a new timeseries by copying a subset of the data in this time series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - the index of the first time period to copy.<DD><CODE>end</CODE> - the index of the last time period to copy.<DT><B>Returns:</B><DD>a series containing a copy of this times series from start until end.</DL></DD></DL><HR><A NAME="createCopy(org.jfree.data.time.RegularTimePeriod, org.jfree.data.time.RegularTimePeriod)"><!-- --></A><H3>createCopy</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeries.html">TimeSeries</A> <B>createCopy</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A> start, <A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A> end)</PRE><DL><DD>Creates a new timeseries by copying a subset of the data in this time series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - the first time period to copy.<DD><CODE>end</CODE> - the last time period to copy.<DT><B>Returns:</B><DD>a time series containing a copy of this time series from start until end.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object object)</PRE><DL><DD>Tests the series for equality with another object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/data/Series.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/Series.html">Series</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - the object.<DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jfree/data/time/TimePeriodValuesCollection.html"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/data/time/TimeSeriesCollection.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="TimeSeries.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?