📄 timeseriescollection.html
字号:
</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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.212"><B>setDomainIsPointsInTime</B></A>(boolean flag)</PRE><DL><DD><B>Deprecated.</B> <I>This flag is no longer used, as of 1.0.1. The <code>includeInterval</code> flag in methods such as <A HREF="../../../../org/jfree/data/time/TimeSeriesCollection.html#getDomainBounds(boolean)"><CODE>getDomainBounds(boolean)</CODE></A> makes this unnecessary.</I><P><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 flag.</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> <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.224"><B>getXPosition</B></A>()</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/xy/XYDataset.html" title="interface in org.jfree.data.xy"><CODE>XYDataset</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The anchor position (never <code>null</code>).</DL></DD></DL><HR><A NAME="setXPosition(org.jfree.data.time.TimePeriodAnchor)"><!-- --></A><H3>setXPosition</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.235"><B>setXPosition</B></A>(<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/xy/XYDataset.html" title="interface in org.jfree.data.xy"><CODE>XYDataset</CODE></A>, then sends a <A HREF="../../../../org/jfree/data/general/DatasetChangeEvent.html" title="class in org.jfree.data.general"><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 (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getSeries()"><!-- --></A><H3>getSeries</H3><PRE>public java.util.List <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.248"><B>getSeries</B></A>()</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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.257"><B>getSeriesCount</B></A>()</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/general/SeriesDataset.html#getSeriesCount()">getSeriesCount</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/general/SeriesDataset.html" title="interface in org.jfree.data.general">SeriesDataset</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/general/AbstractSeriesDataset.html#getSeriesCount()">getSeriesCount</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/general/AbstractSeriesDataset.html" title="class in org.jfree.data.general">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> <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.268"><B>getSeries</B></A>(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> <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.284"><B>getSeries</B></A>(java.lang.String key)</PRE><DL><DD>Returns the series with the specified key, or <code>null</code> if there is no such series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the series key (<code>null</code> permitted).<DT><B>Returns:</B><DD>The series with the given key.</DL></DD></DL><HR><A NAME="getSeriesKey(int)"><!-- --></A><H3>getSeriesKey</H3><PRE>public java.lang.Comparable <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.304"><B>getSeriesKey</B></A>(int series)</PRE><DL><DD>Returns the key for a series.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/general/SeriesDataset.html#getSeriesKey(int)">getSeriesKey</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/general/SeriesDataset.html" title="interface in org.jfree.data.general">SeriesDataset</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/general/AbstractSeriesDataset.html#getSeriesKey(int)">getSeriesKey</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/general/AbstractSeriesDataset.html" title="class in org.jfree.data.general">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 key for a series.</DL></DD></DL><HR><A NAME="addSeries(org.jfree.data.time.TimeSeries)"><!-- --></A><H3>addSeries</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.316"><B>addSeries</B></A>(<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 and sends a <A HREF="../../../../org/jfree/data/general/DatasetChangeEvent.html" title="class in org.jfree.data.general"><CODE>DatasetChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="removeSeries(org.jfree.data.time.TimeSeries)"><!-- --></A><H3>removeSeries</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.331"><B>removeSeries</B></A>(<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 and sends a <A HREF="../../../../org/jfree/data/general/DatasetChangeEvent.html" title="class in org.jfree.data.general"><CODE>DatasetChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="removeSeries(int)"><!-- --></A><H3>removeSeries</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.345"><B>removeSeries</B></A>(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 <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.356"><B>removeAllSeries</B></A>()</PRE><DL><DD>Removes all the series from the collection and sends a <A HREF="../../../../org/jfree/data/general/DatasetChangeEvent.html" title="class in org.jfree.data.general"><CODE>DatasetChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getItemCount(int)"><!-- --></A><H3>getItemCount</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.379"><B>getItemCount</B></A>(int series)</PRE><DL><DD>Returns the number of items in the specified series. This method is provided for convenience.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html#getItemCount(int)">getItemCount</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series index (zero-based).<DT><B>Returns:</B><DD>The item count.</DL></DD></DL><HR><A NAME="getXValue(int, int)"><!-- --></A><H3>getXValue</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.391"><B>getXValue</B></A>(int series, int item)</PRE><DL><DD>Returns the x-value (as a double primitive) for an item within a series.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html#getXValue(int, int)">getXValue</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/AbstractXYDataset.html#getXValue(int, int)">getXValue</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/xy/AbstractXYDataset.html" title="class in org.jfree.data.xy">AbstractXYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero-based index).<DD><CODE>item</CODE> - the item (zero-based index).<DT><B>Returns:</B><DD>The x-value.</DL></DD></DL><HR><A NAME="getX(int, int)"><!-- --></A><H3>getX</H3><PRE>public java.lang.Number <A HREF="../../../../src-html/org/jfree/data/time/TimeSeriesCollection.html#line.406"><B>getX</B></A>(int series, int item)</PRE><DL><DD>Returns the x-value for the specified series and item.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html#getX(int, int)">getX</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero-based index).<DD><CODE>item</CODE> - the item (zero-based index).<DT><B>Returns:</B><DD>The value.</DL></DD></DL><HR><A NAME="getX(org.jfree.data.time.RegularTimePeriod)"><!-- --></A><H3>getX</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -