📄 chartsample.html
字号:
protected java.lang.Double <B>value</B></PRE>
<DL>
<DD>The value of the sample.</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="ChartSample(int)"><!-- --></A><H3>
ChartSample</H3>
<PRE>
public <B>ChartSample</B>(int index)</PRE>
<DL>
<DD>Creates a new empty sample with the given index.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the sample (should be position in the chart).</DL>
</DD>
</DL>
<HR>
<A NAME="ChartSample(int, double)"><!-- --></A><H3>
ChartSample</H3>
<PRE>
public <B>ChartSample</B>(int index, double value)</PRE>
<DL>
<DD>Creates a new sample with the given index and value.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the sample (should be position in the chart).<DD><CODE>value</CODE> - The value of the sample.</DL>
</DD>
</DL>
<HR>
<A NAME="ChartSample(int, double, java.lang.String, java.lang.Object)"><!-- --></A><H3>
ChartSample</H3>
<PRE>
public <B>ChartSample</B>(int index, double value, java.lang.String label, java.lang.Object key)</PRE>
<DL>
<DD>Creates a new sample with the given values.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the sample (should be position in the chart).<DD><CODE>value</CODE> - The value of the sample.<DD><CODE>label</CODE> - The label of the sample.<DD><CODE>key</CODE> - The key of the sample.</DL>
</DD>
</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="clearValue()"><!-- --></A><H3>
clearValue</H3>
<PRE>
public void <B>clearValue</B>()</PRE>
<DL>
<DD>Clears the value of the sample. After this call it will not show up in the chart. You must do a repaint.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getFloatValue()"><!-- --></A><H3>
getFloatValue</H3>
<PRE>
public double <B>getFloatValue</B>()</PRE>
<DL>
<DD>Gets the value as a floating point. If the sample does not have a value, the value returned is Double.NaN (Not a Number).<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getIndex()"><!-- --></A><H3>
getIndex</H3>
<PRE>
public int <B>getIndex</B>()</PRE>
<DL>
<DD>Gets the index of the sample. This is the position of the sample in the chart. The index will change if the sample changes position in the chart.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getKey()"><!-- --></A><H3>
getKey</H3>
<PRE>
public java.lang.Object <B>getKey</B>()</PRE>
<DL>
<DD>Gets the key of the sample. The key is used to look up the sample in the chart again if it changed place in the chart.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The key, or null if there is no key for this sample.</DL>
</DD>
</DL>
<HR>
<A NAME="getLabel()"><!-- --></A><H3>
getLabel</H3>
<PRE>
public java.lang.String <B>getLabel</B>()</PRE>
<DL>
<DD>Gets the label of the sample.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getSeries()"><!-- --></A><H3>
getSeries</H3>
<PRE>
public int <B>getSeries</B>()</PRE>
<DL>
<DD>Gets the series index of the sample.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getValue()"><!-- --></A><H3>
getValue</H3>
<PRE>
public long <B>getValue</B>()</PRE>
<DL>
<DD>Gets the value of the sample.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="hasValue()"><!-- --></A><H3>
hasValue</H3>
<PRE>
public boolean <B>hasValue</B>()</PRE>
<DL>
<DD>Returns true if a value has been set for this sample.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isSelected()"><!-- --></A><H3>
isSelected</H3>
<PRE>
public boolean <B>isSelected</B>()</PRE>
<DL>
<DD>Checks if the sample is selected.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>True for selected, false otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="set(double, java.lang.String, java.lang.Object)"><!-- --></A><H3>
set</H3>
<PRE>
public void <B>set</B>(double value, java.lang.String label, java.lang.Object key)</PRE>
<DL>
<DD>Sets the chart sample's value, label, and the key. The key is used to look up the sample in the chart again if it changed place in the chart.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The value of the sample.<DD><CODE>label</CODE> - The label of the sample.<DD><CODE>key</CODE> - The key of the sample.</DL>
</DD>
</DL>
<HR>
<A NAME="setLabel(java.lang.String)"><!-- --></A><H3>
setLabel</H3>
<PRE>
public void <B>setLabel</B>(java.lang.String label)</PRE>
<DL>
<DD>Sets the label of the sample.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>label</CODE> - The label to set.</DL>
</DD>
</DL>
<HR>
<A NAME="setLabelColor(java.awt.Color)"><!-- --></A><H3>
setLabelColor</H3>
<PRE>
public void <B>setLabelColor</B>(java.awt.Color color)</PRE>
<DL>
<DD>Sets the label color. This is the color of the label in the legend. The default label color is black.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>color</CODE> - The color to use.</DL>
</DD>
</DL>
<HR>
<A NAME="setSelection(boolean)"><!-- --></A><H3>
setSelection</H3>
<PRE>
public boolean <B>setSelection</B>(boolean state)</PRE>
<DL>
<DD>Selects or de-selects the sample.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - True for selected, false otherwise.<DT><B>Returns:</B><DD>The new state of the sample.</DL>
</DD>
</DL>
<HR>
<A NAME="setValue(double)"><!-- --></A><H3>
setValue</H3>
<PRE>
public void <B>setValue</B>(double value)</PRE>
<DL>
<DD>Sets the value of the sample.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The value to set.</DL>
</DD>
</DL>
<HR>
<A NAME="toggleSelection()"><!-- --></A><H3>
toggleSelection</H3>
<PRE>
public boolean <B>toggleSelection</B>()</PRE>
<DL>
<DD>Toggles the selection of the sample.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The new state of the sample.</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Returns the label and value as a string.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</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="../../../com/objectplanet/chart/ChartData.html"><B>PREV CLASS</B></A>
<A HREF="../../../com/objectplanet/chart/ChartServlet.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="ChartSample.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -