⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timeseries.html

📁 JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.data.time.TimeSeries.DEFAULT_RANGE_DESCRIPTION">Constant Field Values</A></DL></DL><HR><A NAME="timePeriodClass"><!-- --></A><H3>timePeriodClass</H3><PRE>protected java.lang.Class <B>timePeriodClass</B></PRE><DL><DD>The type of period for the data.<P><DL></DL></DL><HR><A NAME="data"><!-- --></A><H3>data</H3><PRE>protected java.util.List <B>data</B></PRE><DL><DD>The list of data items in the series.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TimeSeries(java.lang.String)"><!-- --></A><H3>TimeSeries</H3><PRE>public <B>TimeSeries</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Creates a new (empty) time series.  By default, a daily time series is created.   Use one of the other constructors if you require a different time period.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - the series name (<code>null</code> not permitted).</DL><HR><A NAME="TimeSeries(java.lang.String, java.lang.Class)"><!-- --></A><H3>TimeSeries</H3><PRE>public <B>TimeSeries</B>(java.lang.String&nbsp;name,                  java.lang.Class&nbsp;timePeriodClass)</PRE><DL><DD>Creates a new  (empty) time series.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - the series name (<code>null</code> not permitted).<DD><CODE>timePeriodClass</CODE> - the type of time period (<code>null</code> not permitted).</DL><HR><A NAME="TimeSeries(java.lang.String, java.lang.String, java.lang.String, java.lang.Class)"><!-- --></A><H3>TimeSeries</H3><PRE>public <B>TimeSeries</B>(java.lang.String&nbsp;name,                  java.lang.String&nbsp;domain,                  java.lang.String&nbsp;range,                  java.lang.Class&nbsp;timePeriodClass)</PRE><DL><DD>Creates a new time series that contains no data. <P> Descriptions can be specified for the domain and range.  One situation where this is helpful is when generating a chart for the time series - axis labels can be taken from the domain and range description.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the series (<code>null</code> not permitted).<DD><CODE>domain</CODE> - the domain description (<code>null</code> permitted).<DD><CODE>range</CODE> - the range description (<code>null</code> permitted).<DD><CODE>timePeriodClass</CODE> - the type of time period (<code>null</code> not permitted).</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="getDomainDescription()"><!-- --></A><H3>getDomainDescription</H3><PRE>public java.lang.String <B>getDomainDescription</B>()</PRE><DL><DD>Returns the domain description.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The domain description (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setDomainDescription(java.lang.String)"><!-- --></A><H3>setDomainDescription</H3><PRE>public void <B>setDomainDescription</B>(java.lang.String&nbsp;description)</PRE><DL><DD>Sets the domain description. <P> A property change event is fired, and an undoable edit is posted.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>description</CODE> - the description (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getRangeDescription()"><!-- --></A><H3>getRangeDescription</H3><PRE>public java.lang.String <B>getRangeDescription</B>()</PRE><DL><DD>Returns the range description.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The range description (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setRangeDescription(java.lang.String)"><!-- --></A><H3>setRangeDescription</H3><PRE>public void <B>setRangeDescription</B>(java.lang.String&nbsp;description)</PRE><DL><DD>Sets the range description and fires a property change event for the 'Range'  property.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>description</CODE> - the description (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getItemCount()"><!-- --></A><H3>getItemCount</H3><PRE>public int <B>getItemCount</B>()</PRE><DL><DD>Returns the number of items in the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The item count.</DL></DD></DL><HR><A NAME="getItems()"><!-- --></A><H3>getItems</H3><PRE>public java.util.List <B>getItems</B>()</PRE><DL><DD>Returns the list of data items for the series (the list contains <A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time"><CODE>TimeSeriesDataItem</CODE></A> objects and is unmodifiable).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The list of data items.</DL></DD></DL><HR><A NAME="getMaximumItemCount()"><!-- --></A><H3>getMaximumItemCount</H3><PRE>public int <B>getMaximumItemCount</B>()</PRE><DL><DD>Returns the maximum number of items that will be retained in the series. <P> The default value is <code>Integer.MAX_VALUE</code>).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The maximum item count.</DL></DD></DL><HR><A NAME="setMaximumItemCount(int)"><!-- --></A><H3>setMaximumItemCount</H3><PRE>public void <B>setMaximumItemCount</B>(int&nbsp;maximum)</PRE><DL><DD>Sets the maximum number of items that will be retained in the series. <P> If you add a new item to the series such that the number of items will exceed the maximum item count, then the FIRST element in the series is automatically removed, ensuring that the maximum item count is not exceeded.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maximum</CODE> - the maximum.</DL></DD></DL><HR><A NAME="getHistoryCount()"><!-- --></A><H3>getHistoryCount</H3><PRE>public int <B>getHistoryCount</B>()</PRE><DL><DD>Returns the history count for the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The history count.</DL></DD></DL><HR><A NAME="setHistoryCount(int)"><!-- --></A><H3>setHistoryCount</H3><PRE>public void <B>setHistoryCount</B>(int&nbsp;periods)</PRE><DL><DD>Sets the number of time units in the 'history' for the series. <P> This provides one mechanism for automatically dropping old data from the time series. For example, if a series contains daily data, you might set the history count to 30. Then, when you add a new data item, all data items more than 30 days older than the latest value are automatically dropped from the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>periods</CODE> - the number of time periods.</DL></DD></DL><HR><A NAME="getTimePeriodClass()"><!-- --></A><H3>getTimePeriodClass</H3><PRE>public java.lang.Class <B>getTimePeriodClass</B>()</PRE><DL><DD>Returns the time period class for this series. <p> Only one time period class can be used within a single series (enforced). If you add a data item with a <A HREF="../../../../org/jfree/data/time/Year.html" title="class in org.jfree.data.time"><CODE>Year</CODE></A> for the time period, then all subsequent data items must also have a <A HREF="../../../../org/jfree/data/time/Year.html" title="class in org.jfree.data.time"><CODE>Year</CODE></A> for the time period.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The time period class (never <code>null</code>).</DL></DD></DL><HR><A NAME="getDataItem(int)"><!-- --></A><H3>getDataItem</H3><PRE>public <A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html" title="class in org.jfree.data.time">TimeSeriesDataItem</A> <B>getDataItem</B>(int&nbsp;index)</PRE><DL><DD>Returns a data item for the series.

⌨️ 快捷键说明

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