📄 linechart.html
字号:
<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>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>point</CODE> - The point to check for.<DT><B>Returns:</B><DD>The sample selected, or null if none was selected.</DL>
</DD>
</DL>
<HR>
<A NAME="constructLabel(int, int, boolean, int)"><!-- --></A><H3>
constructLabel</H3>
<PRE>
protected java.lang.String <B>constructLabel</B>(int series, int sample, boolean paintSeriesOn, int type)</PRE>
<DL>
<DD>Constructs the combination of labels.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>series</CODE> - The series index.<DD><CODE>sample</CODE> - The sample index.<DD><CODE>paintSeriesOn</CODE> - True if the series label should be on.<DD><CODE>type</CODE> - Type of the label: STATIC or FLOATING.<DT><B>Returns:</B><DD>The constructed label.</DL>
</DD>
</DL>
<HR>
<A NAME="getGraphBounds()"><!-- --></A><H3>
getGraphBounds</H3>
<PRE>
public java.awt.Rectangle <B>getGraphBounds</B>()</PRE>
<DL>
<DD>Calculates the bounding rectangle of the graph itself, based on which features are on and how they are configured.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#getGraphBounds()">getGraphBounds</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getLegendLabels()"><!-- --></A><H3>
getLegendLabels</H3>
<PRE>
public java.lang.String[] <B>getLegendLabels</B>()</PRE>
<DL>
<DD>Gets the legend labels.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#getLegendLabels()">getLegendLabels</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD>Following copied from class: <CODE>com.objectplanet.chart.Chart</CODE></DD>
<DD><DL>
<DT><B>Returns:</B><DD>An array containing the labels.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/Chart.html#setLegendLabels(java.lang.String[])"><CODE>Chart.setLegendLabels(java.lang.String[])</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getLineWidth(int)"><!-- --></A><H3>
getLineWidth</H3>
<PRE>
public int <B>getLineWidth</B>(int series)</PRE>
<DL>
<DD>Gets the current width of the given series line.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>series</CODE> - The index of the data series.<DT><B>Returns:</B><DD>The width in pixels.</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxValue(int)"><!-- --></A><H3>
getMaxValue</H3>
<PRE>
public double <B>getMaxValue</B>(int serie)</PRE>
<DL>
<DD>Gets the maximum value in the chart. If the series is given, the value returned will be the maximum value in that series. If the series is -1, the value returned will be the maximum in any series. If the series is -2, the value is the highest stacked value.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#getMaxValue(int)">getMaxValue</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>serie</CODE> - The index of the series.</DL>
</DD>
</DL>
<HR>
<A NAME="getSampleHighlightSize(int)"><!-- --></A><H3>
getSampleHighlightSize</H3>
<PRE>
public int <B>getSampleHighlightSize</B>(int series)</PRE>
<DL>
<DD>Gets the sample highlight size.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>series</CODE> - The series to get the size for.<DT><B>Returns:</B><DD>The size in pixels.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the series is invalid.</DL>
</DD>
</DL>
<HR>
<A NAME="getSampleHighlightStyle(int)"><!-- --></A><H3>
getSampleHighlightStyle</H3>
<PRE>
public int <B>getSampleHighlightStyle</B>(int series)</PRE>
<DL>
<DD>Gets the sample highlight style.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>series</CODE> - The series to get the style for.<DT><B>Returns:</B><DD>SAMPLE_HIGHLIGHT_CIRCLE, SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE, SAMPLE_HIGHLIGHT_CIRCLE_FILLED, SAMPLE_HIGHLIGHT_SQUARE, SAMPLE_HIGHLIGHT_SQUARE_OPAQUE, SAMPLE_HIGHLIGHT_SQUARE_FILLED, SAMPLE_HIGHLIGHT_DIAMOND, SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE, SAMPLE_HIGHLIGHT_DIAMOND_FILLED.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the series is invalid.</DL>
</DD>
</DL>
<HR>
<A NAME="getValueLabelStyle()"><!-- --></A><H3>
getValueLabelStyle</H3>
<PRE>
public int <B>getValueLabelStyle</B>()</PRE>
<DL>
<DD>Gets the value label style.<DD><DL>
<DT><B>Returns:</B><DD>OUTSIDE, INSIDE or FLOATING<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/LineChart.html#setValueLabelStyle(int)"><CODE>setValueLabelStyle(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getValuePosition(double)"><!-- --></A><H3>
getValuePosition</H3>
<PRE>
public int <B>getValuePosition</B>(double value)</PRE>
<DL>
<DD>Gets the position in the chart of the specified value.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The value to find the position for.<DT><B>Returns:</B><DD>The pixel position.</DL>
</DD>
</DL>
<HR>
<A NAME="isAutoLabelSpacingOn()"><!-- --></A><H3>
isAutoLabelSpacingOn</H3>
<PRE>
public boolean <B>isAutoLabelSpacingOn</B>()</PRE>
<DL>
<DD>Gets the state of the automatic label spacing.<DD><DL>
<DT><B>Returns:</B><DD>True for on, false for off.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/LineChart.html#setAutoLabelSpacingOn(boolean)"><CODE>setAutoLabelSpacingOn(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="isConnectedLinesOn(int)"><!-- --></A><H3>
isConnectedLinesOn</H3>
<PRE>
public boolean <B>isConnectedLinesOn</B>(int serie)</PRE>
<DL>
<DD>Checks if lines with missing values are connected.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The index of the series to check, -1 for all.<DT><B>Returns:</B><DD>True if connected, false if not.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/LineChart.html#setConnectedLinesOn(int, boolean)"><CODE>setConnectedLinesOn(int, boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="isRightToLeftScrollingOn()"><!-- --></A><H3>
isRightToLeftScrollingOn</H3>
<PRE>
public boolean <B>isRightToLeftScrollingOn<
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -