📄 linechart.html
字号:
<A NAME="SAMPLE_HIGHLIGHT_CIRCLE"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_CIRCLE</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_CIRCLE</B></PRE>
<DL>
<DD>Use a circle as a sample highlighter on a line.</DL>
<HR>
<A NAME="SAMPLE_HIGHLIGHT_CIRCLE_FILLED"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_CIRCLE_FILLED</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_CIRCLE_FILLED</B></PRE>
<DL>
<DD>Use a filled circle as a sample highlighter on a line.</DL>
<HR>
<A NAME="SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE</B></PRE>
<DL>
<DD>Use an opaque circle as a sample highlighter on a line.</DL>
<HR>
<A NAME="SAMPLE_HIGHLIGHT_DIAMOND"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_DIAMOND</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_DIAMOND</B></PRE>
<DL>
<DD>Use a diamond as a sample highlighter on a line.</DL>
<HR>
<A NAME="SAMPLE_HIGHLIGHT_DIAMOND_FILLED"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_DIAMOND_FILLED</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_DIAMOND_FILLED</B></PRE>
<DL>
<DD>Use a filled diamond as a sample highlighter on a line.</DL>
<HR>
<A NAME="SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE</B></PRE>
<DL>
<DD>Use an opaque diamond as a sample highlighter on a line.</DL>
<HR>
<A NAME="SAMPLE_HIGHLIGHT_SQUARE"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_SQUARE</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_SQUARE</B></PRE>
<DL>
<DD>Use a square as a sample highlighter on a line.</DL>
<HR>
<A NAME="SAMPLE_HIGHLIGHT_SQUARE_FILLED"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_SQUARE_FILLED</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_SQUARE_FILLED</B></PRE>
<DL>
<DD>Use a filled square as a sample highlighter on a line.</DL>
<HR>
<A NAME="SAMPLE_HIGHLIGHT_SQUARE_OPAQUE"><!-- --></A><H3>
SAMPLE_HIGHLIGHT_SQUARE_OPAQUE</H3>
<PRE>
public static final int <B>SAMPLE_HIGHLIGHT_SQUARE_OPAQUE</B></PRE>
<DL>
<DD>Use an opaque square as a sample highlighter on a line.</DL>
<HR>
<A NAME="samplePoints"><!-- --></A><H3>
samplePoints</H3>
<PRE>
protected int[][][] <B>samplePoints</B></PRE>
<DL>
</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="LineChart()"><!-- --></A><H3>
LineChart</H3>
<PRE>
public <B>LineChart</B>()</PRE>
<DL>
<DD>Creates a line chart with one series, 5 samples, and a range of 0-100.</DL>
<HR>
<A NAME="LineChart(int, int, double)"><!-- --></A><H3>
LineChart</H3>
<PRE>
public <B>LineChart</B>(int seriesCount, int sampleCount, double range)</PRE>
<DL>
<DD>Creates a line chart with the specified number of series, the number of samples per serie, and the chart range.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>seriesCount</CODE> - The number of sample series.<DD><CODE>sampleCount</CODE> - The number of samples per series.<DD><CODE>range</CODE> - The upper range of the chart.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - If the seriesCount is less than 1</DL>
</DD>
</DL>
<HR>
<A NAME="LineChart(int, int, double, double)"><!-- --></A><H3>
LineChart</H3>
<PRE>
public <B>LineChart</B>(int seriesCount, int sampleCount, double range, double lowerRange)</PRE>
<DL>
<DD>Creates a line chart with the specified number of series, the number of samples per serie, and the chart range.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>seriesCount</CODE> - The number of sample series.<DD><CODE>sampleCount</CODE> - The number of samples per series.<DD><CODE>range</CODE> - The upper range of the chart.<DD><CODE>lowerRange</CODE> - The lower range of the chart.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - If the seriesCount is less than 1</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="calculateChartData(java.awt.Rectangle, java.awt.Rectangle)"><!-- --></A><H3>
calculateChartData</H3>
<PRE>
protected void <B>calculateChartData</B>(java.awt.Rectangle grid, java.awt.Rectangle dataBounds)</PRE>
<DL>
<DD>Calculates chart data. Needs to be called before renderData().<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#calculateChartData(java.awt.Rectangle, java.awt.Rectangle)">calculateChartData</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>grid</CODE> - The chart grid.<DD><CODE>dataBounds</CODE> - The scrolled data bounds.</DL>
</DD>
</DL>
<HR>
<A NAME="checkDataIntegrity()"><!-- --></A><H3>
checkDataIntegrity</H3>
<PRE>
protected void <B>checkDataIntegrity</B>()</PRE>
<DL>
<DD>Makes sure the linechart specific data has the same number of series and samples as the chart data has.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#checkDataIntegrity()">checkDataIntegrity</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="checkSelection(java.awt.Point)"><!-- --></A><H3>
checkSelection</H3>
<PRE>
public <A HREF="../../../com/objectplanet/chart/ChartSample.html">ChartSample</A> <B>checkSelection</B>(java.awt.Point point)</PRE>
<DL>
<DD>If we select a box in the legend, it returns a ChartSample with the correct series, but the sample is set to -1. If we select a valid point the ChartSample representing this point is returned.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#checkSelection(java.awt.Point)">checkSelection</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -