timeseriesdataitem.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 433 行 · 第 1/2 页
HTML
433 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Sep 11 11:26:55 BST 2003 --><TITLE>TimeSeriesDataItem (JFreeChart Class Library (version 0.9.12))</TITLE><META NAME="keywords" CONTENT="org.jfree.data.time.TimeSeriesDataItem,TimeSeriesDataItem class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"></HEAD><SCRIPT>function asd(){parent.document.title="TimeSeriesDataItem (JFreeChart Class Library (version 0.9.12))";}</SCRIPT><BODY BGCOLOR="white" onload="asd();"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jfree/data/time/TimeSeriesCollection.html"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/data/time/Week.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="TimeSeriesDataItem.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.jfree.data.time</FONT><BR>Class TimeSeriesDataItem</H2><PRE>java.lang.Object | +--<B>org.jfree.data.time.TimeSeriesDataItem</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.lang.Comparable, java.io.Serializable</DD></DL><HR><DL><DT>public class <B>TimeSeriesDataItem</B><DT>extends java.lang.Object<DT>implements java.lang.Cloneable, java.lang.Comparable, java.io.Serializable</DL><P>Represents one data item in a time series. <P> The time period can be any of the following: <ul> <li><A HREF="../../../../org/jfree/data/time/Year.html"><CODE>Year</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/Quarter.html"><CODE>Quarter</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/Month.html"><CODE>Month</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/Week.html"><CODE>Week</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/Day.html"><CODE>Day</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/Hour.html"><CODE>Hour</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/Minute.html"><CODE>Minute</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/Second.html"><CODE>Second</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/Millisecond.html"><CODE>Millisecond</CODE></A></li> <li><A HREF="../../../../org/jfree/data/time/FixedMillisecond.html"><CODE>FixedMillisecond</CODE></A></li> </ul> The time period is an immutable property of the data item. Data items will often be sorted within a list, and allowing the time period to be changed could destroy the sort order. <P> Implements the <code>Comparable</code> interface so that standard Java sorting can be used to keep the data items in order.<P><P><DL><DT><B>Author:</B></DT> <DD>David Gilbert</DD><DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html" TARGET="org.jfree.data.time.TimeSeriesDataItem">Serialized Form</A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html#TimeSeriesDataItem(org.jfree.data.time.RegularTimePeriod, double)">TimeSeriesDataItem</A></B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A> period, double value)</CODE><BR> Constructs a new data pair.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html#TimeSeriesDataItem(org.jfree.data.time.RegularTimePeriod, java.lang.Number)">TimeSeriesDataItem</A></B>(<A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A> period, java.lang.Number value)</CODE><BR> Constructs a new data pair.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html#clone()">clone</A></B>()</CODE><BR> Clones the data pair.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html#compareTo(java.lang.Object)">compareTo</A></B>(java.lang.Object o1)</CODE><BR> Returns an integer indicating the order of this data pair object relative to another object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object target)</CODE><BR> Tests this object for equality with the target object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/jfree/data/time/RegularTimePeriod.html">RegularTimePeriod</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html#getPeriod()">getPeriod</A></B>()</CODE><BR> Returns the time period.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html#getValue()">getValue</A></B>()</CODE><BR> Returns the value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/time/TimeSeriesDataItem.html#setValue(java.lang.Number)">setValue</A></B>(java.lang.Number value)</CODE><BR> Sets the value for this data pair.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?