📄 piechart.html
字号:
<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>Checks if a pie segment or legend label was selected.<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 clicked on.<DT><B>Returns:</B><DD>The pie segment selected, or null if no segment was selected.</DL>
</DD>
</DL>
<HR>
<A NAME="constructLabel(int, int, int, boolean, java.lang.String)"><!-- --></A><H3>
constructLabel</H3>
<PRE>
protected java.lang.String <B>constructLabel</B>(int series, int sample, int style, boolean paintSeriesOn, java.lang.String percentLabel)</PRE>
<DL>
<DD>Constructs the combination of labels.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#constructLabel(int, int, int, boolean, java.lang.String)">constructLabel</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>series</CODE> - The series index.<DD><CODE>sample</CODE> - The sample index.<DD><CODE>style</CODE> - The style of the label: INSIDE, OUTSIDE, FLOATING or POINTING.<DD><CODE>paintSeriesOn</CODE> - True if the series label should be on.<DT><B>Returns:</B><DD>The constructed label.</DL>
</DD>
</DL>
<HR>
<A NAME="getAngle()"><!-- --></A><H3>
getAngle</H3>
<PRE>
public int <B>getAngle</B>()</PRE>
<DL>
<DD>Gets the angle of the pie chart.<DD><DL>
<DT><B>Returns:</B><DD>The angle in degrees (0-90).</DL>
</DD>
</DL>
<HR>
<A NAME="getDepth()"><!-- --></A><H3>
getDepth</H3>
<PRE>
public float <B>getDepth</B>()</PRE>
<DL>
<DD>Gets the depth of the pie.<DD><DL>
<DT><B>Returns:</B><DD>a float in the range 0.0-1.0.</DL>
</DD>
</DL>
<HR>
<A NAME="getDetachedDistance()"><!-- --></A><H3>
getDetachedDistance</H3>
<PRE>
public double <B>getDetachedDistance</B>()</PRE>
<DL>
<DD>Gets the default detach distance.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/PieChart.html#setDetachedDistance(double)"><CODE>setDetachedDistance(double)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getDetachedSlice(int, int)"><!-- --></A><H3>
getDetachedSlice</H3>
<PRE>
public double <B>getDetachedSlice</B>(int serie, int index)</PRE>
<DL>
<DD>Gets the distance a pie slice is detached from the given pie.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>serie</CODE> - The series index of the slice.<DD><CODE>index</CODE> - The sample index of the slice.<DT><B>Returns:</B><DD>The distance as a factor of the pie size, 0 if not detached.</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="getInsideLabelColor(int)"><!-- --></A><H3>
getInsideLabelColor</H3>
<PRE>
public java.awt.Color <B>getInsideLabelColor</B>(int index)</PRE>
<DL>
<DD>Gets the color of the inside labels of the specified pie. Use -1 as parameter to get default inside label color.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the pie (0-based).<DT><B>Returns:</B><DD>The color, or null if no color is set.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the pie index is invalid.</DL>
</DD>
</DL>
<HR>
<A NAME="getOutsideLabelColor(int)"><!-- --></A><H3>
getOutsideLabelColor</H3>
<PRE>
public java.awt.Color <B>getOutsideLabelColor</B>(int index)</PRE>
<DL>
<DD>Gets the color of the outside labels of the specified pie. Use -1 as parameter to get default outside label color.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the pie (0-based).<DT><B>Returns:</B><DD>The color, or null if no color is set.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the pie index is invalid.</DL>
</DD>
</DL>
<HR>
<A NAME="getPercentDecimalCount()"><!-- --></A><H3>
getPercentDecimalCount</H3>
<PRE>
public int <B>getPercentDecimalCount</B>()</PRE>
<DL>
<DD>Gets the number of decimals used with the percent values.</DL>
<HR>
<A NAME="getPercentLabelStyle()"><!-- --></A><H3>
getPercentLabelStyle</H3>
<PRE>
public int <B>getPercentLabelStyle</B>()</PRE>
<DL>
<DD>Gets the style of the percent labels.<DD><DL>
<DT><B>Returns:</B><DD>FLOATING or INSIDE.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/PieChart.html#setPercentLabelStyle(int)"><CODE>setPercentLabelStyle(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getPercentValue(int, int)"><!-- --></A><H3>
getPercentValue</H3>
<PRE>
public double <B>getPercentValue</B>(int serie, int index)</PRE>
<DL>
<DD>Gets the value of the given pie segment as a percentage value (out of 100).<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 pie segment (0-based).<DT><B>Returns:</B><DD>The number of percent the specified segment occupies.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - If the index or series is invalid.</DL>
</DD>
</DL>
<HR>
<A NAME="getPointingLabelColor(int)"><!-- --></A><H3>
getPointingLabelColor</H3>
<PRE>
public java.awt.Color <B>getPointingLabelColor</B>(int index)</PRE>
<DL>
<DD>Gets the color of the pointing labels of the specified pie. Use -1 as parameter to get default pointing label color.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the pie (0-based).<DT><B>Returns:</B><DD>The color, or null if no color is set.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the pie index is invalid.</DL>
</DD>
</DL>
<HR>
<A NAME="getSampleCenter(int, int)"><!-- --></A><H3>
getSampleCenter</H3>
<PRE>
protected java.awt.Point <B>getSampleCenter</B>(int sample, int serie)</PRE>
<DL>
<DD>Calculates the center point of the sample.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#getSampleCenter(int, int)">getSampleCenter</A></CODE> in
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -