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

📄 chartdata.html

📁 java图形报表制作Applet
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/ChartData.html#setSampleValue(int, int, double)">setSampleValue</A></B>(int&nbsp;serie,               int&nbsp;index,               double&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the specified sample value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/ChartData.html#setSampleValues(int, double[])">setSampleValues</A></B>(int&nbsp;serie,                double[]&nbsp;values)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the sample values for the specified series. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/ChartData.html#setSelection(int, int, boolean)">setSelection</A></B>(int&nbsp;serie,             int&nbsp;sample,             boolean&nbsp;selected)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marks a sample as selected or deselected. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/ChartData.html#setSeriesCount(int)">setSeriesCount</A></B>(int&nbsp;count)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of series.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/ChartData.html#setSeriesLabel(int, java.lang.String)">setSeriesLabel</A></B>(int&nbsp;serie,               java.lang.String&nbsp;label)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the specified series label.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/ChartData.html#setSeriesLabels(java.lang.String[])">setSeriesLabels</A></B>(java.lang.String[]&nbsp;labels)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the series labels.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/objectplanet/chart/ChartData.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string with the number of series and samples.</TD>
</TR>
</TABLE>
&nbsp;<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">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= 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="ChartData(int, int)"><!-- --></A><H3>
ChartData</H3>
<PRE>
public <B>ChartData</B>(int&nbsp;seriesCount,                 int&nbsp;sampleCount)</PRE>
<DL>
<DD>Creates a new empty chart data with the specified number of series and samples.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>seriesCount</CODE> - The number of series to use.<DD><CODE>sampleCount</CODE> - The number of sampels to use.</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="appendSample(int, com.objectplanet.chart.ChartSample, boolean)"><!-- --></A><H3>
appendSample</H3>
<PRE>
public int <B>appendSample</B>(int&nbsp;serie,                        <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A>&nbsp;sample,                        boolean&nbsp;makeSpace)</PRE>
<DL>
<DD>Appends a sample to the given series. If the number of samples is  less than the sample count, the new sample is added after the last sample. If the number of samples in the series is the same as the sample count (series is full), the addition will depend on the makeSpace parameter. <p> If the makeSpace parameter is set to false, all the current samples  will shift to the left, and the new sample will be added at the end. <p> If the makeSpace parameter is set to true, the sample count will be increased by one, and the sample will be added at the end.  <p> The sample labels are also moved to the left with the samples.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The series to append the sample to.<DD><CODE>sample</CODE> - The sample to append.<DD><CODE>makeSpace</CODE> - True to make space for the new parameter.<DT><B>Returns:</B><DD>The index of the position where the sample was inserted.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - If the serie is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="appendSampleLabel(java.lang.String, boolean)"><!-- --></A><H3>
appendSampleLabel</H3>
<PRE>
public int <B>appendSampleLabel</B>(java.lang.String&nbsp;label,                             boolean&nbsp;makeSpace)</PRE>
<DL>
<DD>Appends a sample labels If makeSpace is set to false, and all the sample labels are filled up, they will be scrolled to the left, with the left most label deleted. If makeSpace is set to true, the number of sample labels will be incremented by one.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>label</CODE> - The label to append.<DD><CODE>makeSpace</CODE> - True to make space for the new parameter.<DT><B>Returns:</B><DD>The index of the position where the sample was inserted.</DL>
</DD>
</DL>
<HR>

<A NAME="appendSampleValue(int, double, boolean)"><!-- --></A><H3>
appendSampleValue</H3>
<PRE>
public int <B>appendSampleValue</B>(int&nbsp;serie,                             double&nbsp;value,                             boolean&nbsp;makeSpace)</PRE>
<DL>
<DD>Appends a value to the given series. If the number of samples is less than the sample count, a new sample is added after the last one. If the number of samples in the series is the same as the sample count (series is full), the addition will depend on the makeSpace parameter. <p> If the makeSpace parameter is set to false, all the current values  will shift one sample to the left (the sample itself will not move, only the value) and the new value will be set in the last sample. <p> If the makeSpace parameter is set to true, the sample count will be increased by one, and a new sample will be added at the end.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The series to append the sample to.<DD><CODE>value</CODE> - The value to append.<DD><CODE>makeSpace</CODE> - True to make space for the new parameter.<DT><B>Returns:</B><DD>The index of the position where the sample was inserted.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - If the serie is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="getMaxValue(int)"><!-- --></A><H3>
getMaxValue</H3>
<PRE>
public double <B>getMaxValue</B>(int&nbsp;serie)</PRE>
<DL>
<DD>Gets the largest value in the specified data series. If the specified series (i.e -1) does not exist, the value returned will be the maximum value of the whole chart.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).</DL>
</DD>
</DL>
<HR>

<A NAME="getMinValue(int)"><!-- --></A><H3>
getMinValue</H3>
<PRE>
public double <B>getMinValue</B>(int&nbsp;serie)</PRE>
<DL>
<DD>Gets the smallest value in the specified data series. If the specified series (i.e -1) does not exist, the value returned will be the minimum value of the whole chart.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the serie (0-based).</DL>
</DD>
</DL>
<HR>

<A NAME="getSample(int, int)"><!-- --></A><H3>
getSample</H3>
<PRE>
public <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A> <B>getSample</B>(int&nbsp;serie,                             int&nbsp;index)</PRE>
<DL>
<DD>Gets the specified sample.<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).<DT><B>Returns:</B><DD>The sample, or null if no sample was found.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the serie or index is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="getSample(java.lang.Object)"><!-- --></A><H3>
getSample</H3>
<PRE>
public <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A> <B>getSample</B>(java.lang.Object&nbsp;key)</PRE>
<DL>
<DD>Gets the sample with the specified key. Every sample can have a key assosiated with them, so they can be gotten with this key instead of the index position. The default key is a string of type series.index, where series is the series number, and the index, is the sample index.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The key of the sample to find.<DT><B>Returns:</B><DD>The sample, or null if no sample was found.</DL>
</DD>
</DL>
<HR>

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

<A NAME="getSampleLabel(int)"><!-- --></A><H3>
getSampleLabel</H3>
<PRE>
public java.lang.String <B>getSampleLabel</B>(int&nbsp;index)</PRE>
<DL>
<DD>Gets 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).<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="getSampleLabels()"><!-- --></A><H3>
getSampleLabels</H3>
<PRE>
public java.lang.String[] <B>getSampleLabels</B>()</PRE>
<DL>
<DD>Gets the sample labels. The array returned is the original labels, so don't change anything in the array if you don't know what you are doing.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The labels as an array of strings.</DL>
</DD>
</DL>
<HR>

<A NAME="getSamples(int)"><!-- --></A><H3>
getSamples</H3>
<PRE>
public <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A>[] <B>getSamples</B>(int&nbsp;serie)</PRE>
<DL>
<DD>Gets the samples 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 samples as an array of ChartSample objects.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the serie is invalid.</DL>
</DD>
</DL>
<HR>

<A NAME="getSampleValue(int, int)"><!-- --></A><H3>
getSampleValue</H3>
<PRE>
public double <B>getSampleValue</B>(int&nbsp;serie,                             int&nbsp;index)</PRE>
<DL>
<DD>Gets 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).<DT><B>Returns:</B><DD>The sample value, or Double.NaN if no sample is set.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the serie or index is invalid.</DL>
</DD>
</DL>
<HR>

⌨️ 快捷键说明

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