timeseriescollection.html

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

HTML
1,084
字号
<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/TimeSeriesCollection.html#getYValue(int, int)">getYValue</A></B>(int&nbsp;series,          int&nbsp;item)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the y-value for the specified series and item.</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/TimeSeriesCollection.html#removeSeries(int)">removeSeries</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a series from the collection.</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/TimeSeriesCollection.html#removeSeries(org.jfree.data.time.TimeSeries)">removeSeries</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;Removes the specified series from the collection.</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/TimeSeriesCollection.html#setDomainIsPointsInTime(boolean)">setDomainIsPointsInTime</A></B>(boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a flag that controls whether the domain is treated as 'points in time', or time periods.</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/TimeSeriesCollection.html#setPosition(int)">setPosition</A></B>(int&nbsp;position)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use setXPosition(...).</I></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/TimeSeriesCollection.html#setXPosition(org.jfree.data.time.TimePeriodAnchor)">setXPosition</A></B>(<A HREF="../../../../org/jfree/data/time/TimePeriodAnchor.html">TimePeriodAnchor</A>&nbsp;anchor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the position within each time period that is used for the X values when the collection is used as an <A HREF="../../../../org/jfree/data/XYDataset.html"><CODE>XYDataset</CODE></A>.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.data.AbstractSeriesDataset"><!-- --></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/AbstractSeriesDataset.html">AbstractSeriesDataset</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/data/AbstractSeriesDataset.html#seriesChanged(org.jfree.data.SeriesChangeEvent)">seriesChanged</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.data.AbstractDataset"><!-- --></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/AbstractDataset.html">AbstractDataset</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/data/AbstractDataset.html#addChangeListener(org.jfree.data.DatasetChangeListener)">addChangeListener</A>, <A HREF="../../../../org/jfree/data/AbstractDataset.html#clone()">clone</A>, <A HREF="../../../../org/jfree/data/AbstractDataset.html#fireDatasetChanged()">fireDatasetChanged</A>, <A HREF="../../../../org/jfree/data/AbstractDataset.html#getGroup()">getGroup</A>, <A HREF="../../../../org/jfree/data/AbstractDataset.html#notifyListeners(org.jfree.data.DatasetChangeEvent)">notifyListeners</A>, <A HREF="../../../../org/jfree/data/AbstractDataset.html#removeChangeListener(org.jfree.data.DatasetChangeListener)">removeChangeListener</A>, <A HREF="../../../../org/jfree/data/AbstractDataset.html#setGroup(org.jfree.data.DatasetGroup)">setGroup</A>, <A HREF="../../../../org/jfree/data/AbstractDataset.html#validateObject()">validateObject</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;<A NAME="methods_inherited_from_class_org.jfree.data.Dataset"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.jfree.data.<A HREF="../../../../org/jfree/data/Dataset.html">Dataset</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/data/Dataset.html#addChangeListener(org.jfree.data.DatasetChangeListener)">addChangeListener</A>, <A HREF="../../../../org/jfree/data/Dataset.html#getGroup()">getGroup</A>, <A HREF="../../../../org/jfree/data/Dataset.html#removeChangeListener(org.jfree.data.DatasetChangeListener)">removeChangeListener</A>, <A HREF="../../../../org/jfree/data/Dataset.html#setGroup(org.jfree.data.DatasetGroup)">setGroup</A></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="START"><!-- --></A><H3>START</H3><PRE>public static final int <B>START</B></PRE><DL><DD>Useful constant for controlling the x-value returned for a time period.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.data.time.TimeSeriesCollection.START">Constant Field Values</A></DL></DL><HR><A NAME="MIDDLE"><!-- --></A><H3>MIDDLE</H3><PRE>public static final int <B>MIDDLE</B></PRE><DL><DD>Useful constant for controlling the x-value returned for a time period.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.data.time.TimeSeriesCollection.MIDDLE">Constant Field Values</A></DL></DL><HR><A NAME="END"><!-- --></A><H3>END</H3><PRE>public static final int <B>END</B></PRE><DL><DD>Useful constant for controlling the x-value returned for a time period.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.data.time.TimeSeriesCollection.END">Constant Field Values</A></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="TimeSeriesCollection()"><!-- --></A><H3>TimeSeriesCollection</H3><PRE>public <B>TimeSeriesCollection</B>()</PRE><DL><DD>Constructs an empty dataset, tied to the default timezone.<P></DL><HR><A NAME="TimeSeriesCollection(java.util.TimeZone)"><!-- --></A><H3>TimeSeriesCollection</H3><PRE>public <B>TimeSeriesCollection</B>(java.util.TimeZone&nbsp;zone)</PRE><DL><DD>Constructs an empty dataset, tied to a specific timezone.<P><DT><B>Parameters:</B><DD><CODE>zone</CODE> - the timezone.</DL><HR><A NAME="TimeSeriesCollection(org.jfree.data.time.TimeSeries)"><!-- --></A><H3>TimeSeriesCollection</H3><PRE>public <B>TimeSeriesCollection</B>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html">TimeSeries</A>&nbsp;series)</PRE><DL><DD>Constructs a dataset containing a single series (more can be added), tied to the default timezone.<P><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series.</DL><HR><A NAME="TimeSeriesCollection(org.jfree.data.time.TimeSeries, java.util.TimeZone)"><!-- --></A><H3>TimeSeriesCollection</H3><PRE>public <B>TimeSeriesCollection</B>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html">TimeSeries</A>&nbsp;series,                            java.util.TimeZone&nbsp;zone)</PRE><DL><DD>Constructs a dataset containing a single series (more can be added), tied to a specific timezone.<P><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series.<DD><CODE>zone</CODE> - the timezone.</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="getPosition()"><!-- --></A><H3>getPosition</H3><PRE>public int <B>getPosition</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use getXPosition().</I><P><DD>Returns the position of the x-value returned for a time period (START, MIDDLE, or END).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The position.</DL></DD></DL><HR><A NAME="setPosition(int)"><!-- --></A><H3>setPosition</H3><PRE>public void <B>setPosition</B>(int&nbsp;position)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use setXPosition(...).</I><P><DD>Sets the position - this controls the x-value that is returned for a particular time period. <P> Use the constants <code>START</code>, <code>MIDDLE</code> and <code>END</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - the position.</DL></DD></DL><HR><A NAME="getXPosition()"><!-- --></A><H3>getXPosition</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimePeriodAnchor.html">TimePeriodAnchor</A> <B>getXPosition</B>()</PRE><DL><DD>Returns the position within each time period that is used for the X value when the collection is used as an <A HREF="../../../../org/jfree/data/XYDataset.html"><CODE>XYDataset</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The anchor position.</DL></DD></DL><HR><A NAME="setXPosition(org.jfree.data.time.TimePeriodAnchor)"><!-- --></A><H3>setXPosition</H3><PRE>public void <B>setXPosition</B>(<A HREF="../../../../org/jfree/data/time/TimePeriodAnchor.html">TimePeriodAnchor</A>&nbsp;anchor)</PRE><DL><DD>Sets the position within each time period that is used for the X values when the collection is used as an <A HREF="../../../../org/jfree/data/XYDataset.html"><CODE>XYDataset</CODE></A>.  A <A HREF="../../../../org/jfree/data/DatasetChangeEvent.html"><CODE>DatasetChangeEvent</CODE></A> is sent to  all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>anchor</CODE> - the anchor position.</DL></DD></DL><HR><A NAME="getDomainIsPointsInTime()"><!-- --></A><H3>getDomainIsPointsInTime</H3><PRE>public boolean <B>getDomainIsPointsInTime</B>()</PRE><DL><DD>Returns a flag that controls whether the domain is treated as 'points in time'. <P> This flag is used when determining the max and min values for the domain.  If true, then only the x-values are considered for the max and min values.  If false, then the start and end x-values will also be taken into consideration<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the flag.</DL></DD></DL><HR><A NAME="setDomainIsPointsInTime(boolean)"><!-- --></A><H3>setDomainIsPointsInTime</H3><PRE>public void <B>setDomainIsPointsInTime</B>(boolean&nbsp;flag)</PRE><DL><DD>Sets a flag that controls whether the domain is treated as 'points in time', or time periods.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - The new value of the flag.</DL></DD></DL><HR><A NAME="getSeries()"><!-- --></A><H3>getSeries</H3><PRE>public java.util.List <B>getSeries</B>()</PRE><DL><DD>Returns a list of all the series in the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The list (which is unmodifiable).</DL></DD></DL><HR><A NAME="getSeriesCount()"><!-- --></A><H3>getSeriesCount</H3><PRE>public int <B>getSeriesCount</B>()</PRE><DL><DD>Returns the number of series in the collection.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/SeriesDataset.html#getSeriesCount()">getSeriesCount</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/SeriesDataset.html">SeriesDataset</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/AbstractSeriesDataset.html#getSeriesCount()">getSeriesCount</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/AbstractSeriesDataset.html">AbstractSeriesDataset</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the series count.</DL></DD></DL><HR><A NAME="getSeries(int)"><!-- --></A><H3>getSeries</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeries.html">TimeSeries</A> <B>getSeries</B>(int&nbsp;series)</PRE><DL><DD>Returns a series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - The index of the series (zero-based).<DT><B>Returns:</B><DD>the series.</DL></DD></DL><HR>

⌨️ 快捷键说明

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