timeseries.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,370 行 · 第 1/4 页

HTML
1,370
字号
<TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getHistoryCount()">getHistoryCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the history count for the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getIndex(org.jfree.data.time.RegularTimePeriod)">getIndex</A></B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A>&nbsp;period)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index for the item (if any) that corresponds to a time period.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getItemCount()">getItemCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of items in the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.List</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getItems()">getItems</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the list of data items for the series (the list contains <A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html"><CODE>TimeSeriesDataItem</CODE></A> objects and is unmodifiable).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getMaximumItemCount()">getMaximumItemCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum number of items that will be retained in the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getNextTimePeriod()">getNextTimePeriod</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a time period that would be the next in sequence on the end of the time series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getRangeDescription()">getRangeDescription</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the range description.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getTimePeriod(int)">getTimePeriod</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the time period at the specified index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getTimePeriodClass()">getTimePeriodClass</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the time period class for this series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Collection</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getTimePeriods()">getTimePeriods</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a collection of all the time periods in the time series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Collection</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getTimePeriodsUniqueToOtherSeries(org.jfree.data.time.TimeSeries)">getTimePeriodsUniqueToOtherSeries</A></B>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html">TimeSeries</A>&nbsp;series)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a collection of time periods in the specified series, but not in this series, and therefore unique to the specified series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getValue(int)">getValue</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value at the specified index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#getValue(org.jfree.data.time.RegularTimePeriod)">getValue</A></B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A>&nbsp;period)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value for a time period.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#setDomainDescription(java.lang.String)">setDomainDescription</A></B>(java.lang.String&nbsp;description)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the domain description.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#setHistoryCount(int)">setHistoryCount</A></B>(int&nbsp;periods)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of time units in the 'history' for the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#setMaximumItemCount(int)">setMaximumItemCount</A></B>(int&nbsp;maximum)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum number of items that will be retained in the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#setRangeDescription(java.lang.String)">setRangeDescription</A></B>(java.lang.String&nbsp;description)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the range description.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#update(int, java.lang.Number)">update</A></B>(int&nbsp;index,       java.lang.Number&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates (changes) the value of a data pair.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeries.html#update(org.jfree.data.time.RegularTimePeriod, java.lang.Number)">update</A></B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A>&nbsp;period,       java.lang.Number&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates (changes) the value for a time period.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.data.Series"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.jfree.data.<A HREF="../../../../org/jfree/data/Series.html">Series</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/data/Series.html#addChangeListener(org.jfree.data.SeriesChangeListener)">addChangeListener</A>, <A HREF="../../../../org/jfree/data/Series.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../../org/jfree/data/Series.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A>, <A HREF="../../../../org/jfree/data/Series.html#fireSeriesChanged()">fireSeriesChanged</A>, <A HREF="../../../../org/jfree/data/Series.html#getDescription()">getDescription</A>, <A HREF="../../../../org/jfree/data/Series.html#getName()">getName</A>, <A HREF="../../../../org/jfree/data/Series.html#notifyListeners(org.jfree.data.SeriesChangeEvent)">notifyListeners</A>, <A HREF="../../../../org/jfree/data/Series.html#removeChangeListener(org.jfree.data.SeriesChangeListener)">removeChangeListener</A>, <A HREF="../../../../org/jfree/data/Series.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../../org/jfree/data/Series.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../org/jfree/data/Series.html#setName(java.lang.String)">setName</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="DEFAULT_DOMAIN_DESCRIPTION"><!-- --></A><H3>DEFAULT_DOMAIN_DESCRIPTION</H3><PRE>protected static final java.lang.String <B>DEFAULT_DOMAIN_DESCRIPTION</B></PRE><DL><DD>Default value for the domain description.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.data.time.TimeSeries.DEFAULT_DOMAIN_DESCRIPTION">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_RANGE_DESCRIPTION"><!-- --></A><H3>DEFAULT_RANGE_DESCRIPTION</H3><PRE>protected static final java.lang.String <B>DEFAULT_RANGE_DESCRIPTION</B></PRE><DL><DD>Default value for the range description.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.data.time.TimeSeries.DEFAULT_RANGE_DESCRIPTION">Constant Field Values</A></DL></DL><HR><A NAME="timePeriodClass"><!-- --></A><H3>timePeriodClass</H3><PRE>protected java.lang.Class <B>timePeriodClass</B></PRE><DL><DD>The type of period for the data.<P><DL></DL></DL><HR><A NAME="data"><!-- --></A><H3>data</H3><PRE>protected java.util.List <B>data</B></PRE><DL><DD>The list of data pairs in the series.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TimeSeries(java.lang.String)"><!-- --></A><H3>TimeSeries</H3><PRE>public <B>TimeSeries</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Creates a new (empty) time series. <P> By default, a daily time series is created.  Use one of the other constructors if you require a different time period.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the series.</DL><HR><A NAME="TimeSeries(java.lang.String, java.lang.Class)"><!-- --></A><H3>TimeSeries</H3><PRE>public <B>TimeSeries</B>(java.lang.String&nbsp;name,                  java.lang.Class&nbsp;timePeriodClass)</PRE><DL><DD>Creates a new  (empty) time series.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - the series name.<DD><CODE>timePeriodClass</CODE> - the type of time period.</DL><HR><A NAME="TimeSeries(java.lang.String, java.lang.String, java.lang.String, java.lang.Class)"><!-- --></A><H3>TimeSeries</H3><PRE>public <B>TimeSeries</B>(java.lang.String&nbsp;name,                  java.lang.String&nbsp;domain,                  java.lang.String&nbsp;range,                  java.lang.Class&nbsp;timePeriodClass)</PRE><DL><DD>Creates a new time series that contains no data. <P> Descriptions can be specified for the domain and range.  One situation where this is helpful is when generating a chart for the time series - axis labels can be taken from the domain and range description.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the series.<DD><CODE>domain</CODE> - the domain description.<DD><CODE>range</CODE> - the range description.<DD><CODE>timePeriodClass</CODE> - the type of time period.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getDomainDescription()"><!-- --></A><H3>getDomainDescription</H3><PRE>public java.lang.String <B>getDomainDescription</B>()</PRE><DL><DD>Returns the domain description.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the domain description.</DL></DD></DL><HR><A NAME="setDomainDescription(java.lang.String)"><!-- --></A><H3>setDomainDescription</H3><PRE>public void <B>setDomainDescription</B>(java.lang.String&nbsp;description)</PRE><DL><DD>Sets the domain description. <P> A property change event is fired, and an undoable edit is posted.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>description</CODE> - the new description.</DL></DD></DL><HR><A NAME="getRangeDescription()"><!-- --></A><H3>getRangeDescription</H3><PRE>public java.lang.String <B>getRangeDescription</B>()</PRE><DL><DD>Returns the range description.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the range description.</DL></DD></DL>

⌨️ 快捷键说明

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