dynamictimeseriescollection.html

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

HTML
1,446
字号
                                   int&nbsp;nMoments,                                   <A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A>&nbsp;timeSample)</PRE><DL><DD>Creates a new dataset.<P><DT><B>Parameters:</B><DD><CODE>nSeries</CODE> - the number of series.<DD><CODE>nMoments</CODE> - the number of items per series.<DD><CODE>timeSample</CODE> - a time period sample.</DL><HR><A NAME="DynamicTimeSeriesCollection(int, int, org.jfree.data.time.RegularTimePeriod, java.util.TimeZone)"><!-- --></A><H3>DynamicTimeSeriesCollection</H3><PRE>public <B>DynamicTimeSeriesCollection</B>(int&nbsp;nSeries,                                   int&nbsp;nMoments,                                   <A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A>&nbsp;timeSample,                                   java.util.TimeZone&nbsp;zone)</PRE><DL><DD>Creates a new dataset.<P><DT><B>Parameters:</B><DD><CODE>nSeries</CODE> - the number of series.<DD><CODE>nMoments</CODE> - the number of items per series.<DD><CODE>timeSample</CODE> - a time period sample.<DD><CODE>zone</CODE> - the time zone.</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="setTimeBase(org.jfree.data.time.RegularTimePeriod)"><!-- --></A><H3>setTimeBase</H3><PRE>public long <B>setTimeBase</B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A>&nbsp;start)</PRE><DL><DD>Fill the pointsInTime with times using TimePeriod.next(): Will silently return if the time array was already populated. Also computes the data cached for later use by methods implementing the DomainInfo interface:<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - the start.<DT><B>Returns:</B><DD>??.</DL></DD></DL><HR><A NAME="findDomainLimits()"><!-- --></A><H3>findDomainLimits</H3><PRE>protected void <B>findDomainLimits</B>()</PRE><DL><DD>Finds the domain limits. <p> Note: this doesn't need to be synchronized because it's called from within another method that already is.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPosition()"><!-- --></A><H3>getPosition</H3><PRE>public int <B>getPosition</B>()</PRE><DL><DD>Returns the x position type (START, MIDDLE or END).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The x position type.</DL></DD></DL><HR><A NAME="setPosition(int)"><!-- --></A><H3>setPosition</H3><PRE>public void <B>setPosition</B>(int&nbsp;position)</PRE><DL><DD>Sets the x position type (START, MIDDLE or END).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - The x position type.</DL></DD></DL><HR><A NAME="addSeries(float[], int, java.lang.String)"><!-- --></A><H3>addSeries</H3><PRE>public void <B>addSeries</B>(float[]&nbsp;values,                      int&nbsp;seriesNumber,                      java.lang.String&nbsp;seriesName)</PRE><DL><DD>Adds a series to the dataset.  Only the y-values are supplied, the x-values are specified elsewhere.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>values</CODE> - the y-values.<DD><CODE>seriesNumber</CODE> - the series index (zero-based).<DD><CODE>seriesName</CODE> - the seriesName. Use this as-is during setup only, or add the synchronized keyword around the copy loop.</DL></DD></DL><HR><A NAME="setSeriesName(int, java.lang.String)"><!-- --></A><H3>setSeriesName</H3><PRE>public void <B>setSeriesName</B>(int&nbsp;seriesNumber,                          java.lang.String&nbsp;newName)</PRE><DL><DD>Sets the name of a series. <p> If planning to add values individually.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>seriesNumber</CODE> - the series.<DD><CODE>newName</CODE> - the new name.</DL></DD></DL><HR><A NAME="addValue(int, int, float)"><!-- --></A><H3>addValue</H3><PRE>public void <B>addValue</B>(int&nbsp;seriesNumber,                     int&nbsp;index,                     float&nbsp;value)</PRE><DL><DD>Adds a value to a series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>seriesNumber</CODE> - the series index.<DD><CODE>index</CODE> - ??.<DD><CODE>value</CODE> - the value.</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="getItemCount(int)"><!-- --></A><H3>getItemCount</H3><PRE>public int <B>getItemCount</B>(int&nbsp;series)</PRE><DL><DD>Returns the number of items in a series. <p> For this implementation, all series have the same number of items.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/XYDataset.html#getItemCount(int)">getItemCount</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/XYDataset.html">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="translateGet(int)"><!-- --></A><H3>translateGet</H3><PRE>protected int <B>translateGet</B>(int&nbsp;toFetch)</PRE><DL><DD>Re-map an index, for use in retrieving data.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>toFetch</CODE> - the index.<DT><B>Returns:</B><DD>The translated index.</DL></DD></DL><HR><A NAME="offsetFromNewest(int)"><!-- --></A><H3>offsetFromNewest</H3><PRE>public int <B>offsetFromNewest</B>(int&nbsp;delta)</PRE><DL><DD>Returns the actual index to a time offset by "delta" from newestAt.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>delta</CODE> - the delta.<DT><B>Returns:</B><DD>The offset.</DL></DD></DL><HR><A NAME="offsetFromOldest(int)"><!-- --></A><H3>offsetFromOldest</H3><PRE>public int <B>offsetFromOldest</B>(int&nbsp;delta)</PRE><DL><DD>??<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>delta</CODE> - ??<DT><B>Returns:</B><DD>The offset.</DL></DD></DL><HR><A NAME="wrapOffset(int)"><!-- --></A><H3>wrapOffset</H3><PRE>protected int <B>wrapOffset</B>(int&nbsp;protoIndex)</PRE><DL><DD>??<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>protoIndex</CODE> - the index.<DT><B>Returns:</B><DD>The offset.</DL></DD></DL><HR><A NAME="advanceTime()"><!-- --></A><H3>advanceTime</H3><PRE>public <A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A> <B>advanceTime</B>()</PRE><DL><DD>Adjust the array offset as needed when a new time-period is added: Increments the indices "oldestAt" and "newestAt", mod(array length), zeroes the series values at newestAt, returns the new TimePeriod.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The new time period.</DL></DD></DL><HR><A NAME="invalidateRangeInfo()"><!-- --></A><H3>invalidateRangeInfo</H3><PRE>public void <B>invalidateRangeInfo</B>()</PRE><DL><DD>Invalidates the range info.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="findMaxValue()"><!-- --></A><H3>findMaxValue</H3><PRE>protected float <B>findMaxValue</B>()</PRE><DL><DD>Returns the maximum value.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The maximum value.</DL></DD></DL><HR><A NAME="getOldestIndex()"><!-- --></A><H3>getOldestIndex</H3><PRE>public int <B>getOldestIndex</B>()</PRE><DL><DD>Returns the index of the oldest data item.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The index.</DL></DD></DL><HR><A NAME="getNewestIndex()"><!-- --></A><H3>getNewestIndex</H3><PRE>public int <B>getNewestIndex</B>()</PRE><DL><DD>Returns the index of the newest data item.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The index.</DL></DD></DL><HR><A NAME="appendData(float[])"><!-- --></A><H3>appendData</H3><PRE>public void <B>appendData</B>(float[]&nbsp;newData)</PRE><DL><DD>Appends new data.<P><DD><DL></DL></DD><DD><DL>

⌨️ 快捷键说明

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