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

📄 chartdata.html

📁 java图形报表制作Applet
💻 HTML
📖 第 1 页 / 共 3 页
字号:

<A NAME="getSampleValues(int)"><!-- --></A><H3>
getSampleValues</H3>
<PRE>
public double[] <B>getSampleValues</B>(int&nbsp;serie)</PRE>
<DL>
<DD>Gets the sample values for the specified serie.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).<DT><B>Returns:</B><DD>The values as an array of floating point numbers.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the serie is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="getSeriesCount()"><!-- --></A><H3>
getSeriesCount</H3>
<PRE>
public int <B>getSeriesCount</B>()</PRE>
<DL>
<DD>Gets the number of series.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getSeriesLabel(int)"><!-- --></A><H3>
getSeriesLabel</H3>
<PRE>
public java.lang.String <B>getSeriesLabel</B>(int&nbsp;serie)</PRE>
<DL>
<DD>Gets the specified series label.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).<DT><B>Returns:</B><DD>The sample label, or null if no label was found.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the index is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="getSeriesLabels()"><!-- --></A><H3>
getSeriesLabels</H3>
<PRE>
public java.lang.String[] <B>getSeriesLabels</B>()</PRE>
<DL>
<DD>Gets the series labels.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The labels as an array of strings,          or null if no labels are found.</DL>
</DD>
</DL>
<HR>

<A NAME="hasChangedSince(long)"><!-- --></A><H3>
hasChangedSince</H3>
<PRE>
public boolean <B>hasChangedSince</B>(long&nbsp;time)</PRE>
<DL>
<DD>Checks if the data has been changed since the specified time.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>time</CODE> - The time to check for.<DT><B>Returns:</B><DD>True if the data has changed, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="isSelected(int, int)"><!-- --></A><H3>
isSelected</H3>
<PRE>
public boolean <B>isSelected</B>(int&nbsp;serie,                          int&nbsp;sample)</PRE>
<DL>
<DD>Checks if a sample is selected.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The series index (-1 is whole series).<DD><CODE>sample</CODE> - The sample index (-1 is all samples in series).<DD><CODE>selected</CODE> - True for selected, false for deselected.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - If the serie or sample is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="setSample(int, int, com.objectplanet.chart.ChartSample)"><!-- --></A><H3>
setSample</H3>
<PRE>
public void <B>setSample</B>(int&nbsp;serie,                      int&nbsp;index,                      <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A>&nbsp;sample)</PRE>
<DL>
<DD>Sets the specified sample. If a null sample is given, the sample is cleared.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).<DD><CODE>index</CODE> - The index of the sample (0-based).<DD><CODE>sample</CODE> - The sample to use.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the serie or index is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="setSampleCount(int)"><!-- --></A><H3>
setSampleCount</H3>
<PRE>
public void <B>setSampleCount</B>(int&nbsp;count)</PRE>
<DL>
<DD>Sets the number of samples.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>count</CODE> - The number of samples.</DL>
</DD>
</DL>
<HR>

<A NAME="setSampleLabel(int, java.lang.String)"><!-- --></A><H3>
setSampleLabel</H3>
<PRE>
public void <B>setSampleLabel</B>(int&nbsp;index,                           java.lang.String&nbsp;label)</PRE>
<DL>
<DD>Sets the specified sample label.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the sample (0-based).<DD><CODE>label</CODE> - The label of the sample.</DL>
</DD>
</DL>
<HR>

<A NAME="setSampleLabels(java.lang.String[])"><!-- --></A><H3>
setSampleLabels</H3>
<PRE>
public void <B>setSampleLabels</B>(java.lang.String[]&nbsp;labels)</PRE>
<DL>
<DD>Sets the sample labels.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>labels</CODE> - The labels to use.</DL>
</DD>
</DL>
<HR>

<A NAME="setSamples(int, com.objectplanet.chart.ChartSample[])"><!-- --></A><H3>
setSamples</H3>
<PRE>
public void <B>setSamples</B>(int&nbsp;serie,                       <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A>[]&nbsp;samples)</PRE>
<DL>
<DD>Sets the samples for the specified series. If the number of samples is less than the current sample count, the rest of the samples will be set to null. If the number of samples is larger than the current sample count, the rest of the samples will be discarded.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).<DD><CODE>samples</CODE> - The samples to set.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the serie is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="setSampleValue(int, int, double)"><!-- --></A><H3>
setSampleValue</H3>
<PRE>
public void <B>setSampleValue</B>(int&nbsp;serie,                           int&nbsp;index,                           double&nbsp;value)</PRE>
<DL>
<DD>Sets the specified sample value.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).<DD><CODE>index</CODE> - The index of the sample (0-based).<DD><CODE>value</CODE> - The value to use for the sample.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the serie or index is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="setSampleValues(int, double[])"><!-- --></A><H3>
setSampleValues</H3>
<PRE>
public void <B>setSampleValues</B>(int&nbsp;serie,                            double[]&nbsp;values)</PRE>
<DL>
<DD>Sets the sample values for the specified series. If the number of  values is less than the current sample count, the rest of the samples will be set to null. If the number of values is larger than the current sample count, the rest of the values will be discarded.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).<DD><CODE>values</CODE> - The values to use for the series.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the serie is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="setSelection(int, int, boolean)"><!-- --></A><H3>
setSelection</H3>
<PRE>
public void <B>setSelection</B>(int&nbsp;serie,                         int&nbsp;sample,                         boolean&nbsp;selected)</PRE>
<DL>
<DD>Marks a sample as selected or deselected. If serie is -1, the  specified sample in all series are marked. If sample is -1,  all the samples in the specified series is marked. No listeners are notified by calling this method.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The series index.<DD><CODE>sample</CODE> - The sample index.<DD><CODE>selected</CODE> - True for selected, false for deselected.</DL>
</DD>
</DL>
<HR>

<A NAME="setSeriesCount(int)"><!-- --></A><H3>
setSeriesCount</H3>
<PRE>
public void <B>setSeriesCount</B>(int&nbsp;count)</PRE>
<DL>
<DD>Sets the number of series.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>count</CODE> - The number of series.</DL>
</DD>
</DL>
<HR>

<A NAME="setSeriesLabel(int, java.lang.String)"><!-- --></A><H3>
setSeriesLabel</H3>
<PRE>
public void <B>setSeriesLabel</B>(int&nbsp;serie,                           java.lang.String&nbsp;label)</PRE>
<DL>
<DD>Sets the specified series label.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).<DD><CODE>label</CODE> - The label of the sample.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the index is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="setSeriesLabels(java.lang.String[])"><!-- --></A><H3>
setSeriesLabels</H3>
<PRE>
public void <B>setSeriesLabels</B>(java.lang.String[]&nbsp;labels)</PRE>
<DL>
<DD>Sets the series labels.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>labels</CODE> - The labels to use.</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Returns a string with the number of series and samples.<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"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/objectplanet/chart/ChartApplet.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/objectplanet/chart/ChartDataLoader.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>  &nbsp;
&nbsp;<A HREF="ChartData.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -