📄 timetablexydataset.html
字号:
<A NAME="getDomainIsPointsInTime()"><!-- --></A><H3>getDomainIsPointsInTime</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.155"><B>getDomainIsPointsInTime</B></A>()</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 <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.166"><B>setDomainIsPointsInTime</B></A>(boolean flag)</PRE><DL><DD>Sets a flag that controls whether the domain is treated as 'points in time', or time periods. 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>flag</CODE> - the new value of 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/TimeTableXYDataset.html#line.177"><B>getXPosition</B></A>()</PRE><DL><DD>Returns the position within each time period that is used for the X value.<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/TimeTableXYDataset.html#line.187"><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, then 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>anchor</CODE> - the anchor position (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="add(org.jfree.data.time.TimePeriod, double, java.lang.String)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.204"><B>add</B></A>(<A HREF="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</A> period, double y, java.lang.String seriesName)</PRE><DL><DD>Adds a new data item to the dataset 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>period</CODE> - the time period.<DD><CODE>y</CODE> - the value for this period.<DD><CODE>seriesName</CODE> - the name of the series to add the value.</DL></DD></DL><HR><A NAME="add(org.jfree.data.time.TimePeriod, java.lang.Number, java.lang.String, boolean)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.217"><B>add</B></A>(<A HREF="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</A> period, java.lang.Number y, java.lang.String seriesName, boolean notify)</PRE><DL><DD>Adds a new data item to the dataset.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the time period (<code>null</code> not permitted).<DD><CODE>y</CODE> - the value for this period (<code>null</code> permitted).<DD><CODE>seriesName</CODE> - the name of the series to add the value (<code>null</code> not permitted).<DD><CODE>notify</CODE> - whether dataset listener are notified or not.</DL></DD></DL><HR><A NAME="remove(org.jfree.data.time.TimePeriod, java.lang.String)"><!-- --></A><H3>remove</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.233"><B>remove</B></A>(<A HREF="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</A> period, java.lang.String seriesName)</PRE><DL><DD>Removes an existing data item from the dataset.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the (existing!) time period of the value to remove (<code>null</code> not permitted).<DD><CODE>seriesName</CODE> - the (existing!) series name to remove the value (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="remove(org.jfree.data.time.TimePeriod, java.lang.String, boolean)"><!-- --></A><H3>remove</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.246"><B>remove</B></A>(<A HREF="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</A> period, java.lang.String seriesName, boolean notify)</PRE><DL><DD>Removes an existing data item from the dataset.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>period</CODE> - the (existing!) time period of the value to remove (<code>null</code> not permitted).<DD><CODE>seriesName</CODE> - the (existing!) series name to remove the value (<code>null</code> not permitted).<DD><CODE>notify</CODE> - whether dataset listener are notified or not.</DL></DD></DL><HR><A NAME="getTimePeriod(int)"><!-- --></A><H3>getTimePeriod</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</A> <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.261"><B>getTimePeriod</B></A>(int item)</PRE><DL><DD>Returns the time period for the specified item. Bear in mind that all series share the same set of time periods.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>item</CODE> - the item index (0 <= i <= <A HREF="../../../../org/jfree/data/time/TimeTableXYDataset.html#getItemCount()"><CODE>getItemCount()</CODE></A>).<DT><B>Returns:</B><DD>The time period.</DL></DD></DL><HR><A NAME="getItemCount()"><!-- --></A><H3>getItemCount</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.270"><B>getItemCount</B></A>()</PRE><DL><DD>Returns the number of items in ALL series.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/TableXYDataset.html#getItemCount()">getItemCount</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/xy/TableXYDataset.html" title="interface in org.jfree.data.xy">TableXYDataset</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The item count.</DL></DD></DL><HR><A NAME="getItemCount(int)"><!-- --></A><H3>getItemCount</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.283"><B>getItemCount</B></A>(int series)</PRE><DL><DD>Returns the number of items in a series. This is the same value that is returned by <A HREF="../../../../org/jfree/data/time/TimeTableXYDataset.html#getItemCount()"><CODE>getItemCount()</CODE></A> since all series share the same x-values (time periods).<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 (zero-based index, ignored).<DT><B>Returns:</B><DD>The number of items within the series.</DL></DD></DL><HR><A NAME="getSeriesCount()"><!-- --></A><H3>getSeriesCount</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.292"><B>getSeriesCount</B></A>()</PRE><DL><DD>Returns the number of series in the dataset.<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="getSeriesKey(int)"><!-- --></A><H3>getSeriesKey</H3><PRE>public java.lang.Comparable <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.303"><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 series (zero-based index).<DT><B>Returns:</B><DD>The key for the series.</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/TimeTableXYDataset.html#line.317"><B>getX</B></A>(int series, int item)</PRE><DL><DD>Returns the x-value for an item within a series. The x-values may or may not be returned in ascending order, that is up to the class implementing the interface.<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 x-value.</DL></DD></DL><HR><A NAME="getXValue(int, int)"><!-- --></A><H3>getXValue</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/data/time/TimeTableXYDataset.html#line.329"><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 index (zero-based).<DD><CODE>item</CODE> - the item index (zero-based).<DT><B>Returns:</B><DD>The value.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -