📄 timeseriescollection.html
字号:
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" title="class in org.jfree.data.time">TimeSeries</A> series, java.util.TimeZone 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" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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> <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 position)</PRE><DL><DD><B>Deprecated.</B> <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" title="class in org.jfree.data.time">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" title="interface in org.jfree.data"><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" title="class in org.jfree.data.time">TimePeriodAnchor</A> 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" title="interface in org.jfree.data"><CODE>XYDataset</CODE></A>. A <A HREF="../../../../org/jfree/data/DatasetChangeEvent.html" title="class in org.jfree.data"><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 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" title="interface in org.jfree.data">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" title="class in org.jfree.data">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" title="class in org.jfree.data.time">TimeSeries</A> <B>getSeries</B>(int 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><A NAME="getSeries(java.lang.String)"><!-- --></A><H3>getSeries</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> <B>getSeries</B>(java.lang.String name)</PRE><DL><DD>Returns the series with the specified name, or <code>null</code> if there is no such series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the series name.<DT><B>Returns:</B><DD>The series with the given name.</DL></DD></DL><HR><A NAME="getSeriesName(int)"><!-- --></A><H3>getSeriesName</H3><PRE>public java.lang.String <B>getSeriesName</B>(int series)</PRE><DL><DD>Returns the name of a series. <P> This method is provided for convenience.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/SeriesDataset.html#getSeriesName(int)">getSeriesName</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/SeriesDataset.html" title="interface in org.jfree.data">SeriesDataset</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/AbstractSeriesDataset.html#getSeriesName(int)">getSeriesName</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/AbstractSeriesDataset.html" title="class in org.jfree.data">AbstractSeriesDataset</A></CODE></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 name of a series.</DL></DD></DL><HR><A NAME="addSeries(org.jfree.data.time.TimeSeries)"><!-- --></A><H3>addSeries</H3><PRE>public void <B>addSeries</B>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> series)</PRE><DL><DD>Adds a series to the collection. <P> Notifies all registered listeners that the dataset has changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the time series.</DL></DD></DL><HR><A NAME="removeSeries(org.jfree.data.time.TimeSeries)"><!-- --></A><H3>removeSeries</H3><PRE>public void <B>removeSeries</B>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> series)</PRE><DL><DD>Removes the specified series from the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series to remove.</DL></DD></DL><HR><A NAME="removeSeries(int)"><!-- --></A><H3>removeSeries</H3><PRE>public void <B>removeSeries</B>(int index)</PRE><DL><DD>Removes a series from the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the series index (zero-based).</DL></DD></DL><HR><A NAME="removeAllSeries()"><!-- --></A><H3>removeAllSeries</H3><PRE>public void <B>removeAllSeries</B>()</PRE><DL><DD>Removes all the series from the collection. A <A HREF="../../../../org/jfree/data/DatasetChangeEvent.html" title="class in org.jfree.data"><CODE>DatasetChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -