📄 piechart.html
字号:
<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="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="getSampleLabelStyle()"><!-- --></A><H3>
getSampleLabelStyle</H3>
<PRE>
public int <B>getSampleLabelStyle</B>()</PRE>
<DL>
<DD>Gets the style of the sample labels.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#getSampleLabelStyle()">getSampleLabelStyle</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>FLOATING or INSIDE.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/PieChart.html#setSampleLabelStyle(int)"><CODE>setSampleLabelStyle(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getSelectionStyle()"><!-- --></A><H3>
getSelectionStyle</H3>
<PRE>
public int <B>getSelectionStyle</B>()</PRE>
<DL>
<DD>Gets the current selection style.<DD><DL>
<DT><B>Returns:</B><DD>SELECTION_STYLE_CIRCLE, SELECTION_STYLE_TRIANGLE, SELECTION_STYLE_DETACHED.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/PieChart.html#setSelectionStyle(int)"><CODE>setSelectionStyle(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getSeriesLabelStyle()"><!-- --></A><H3>
getSeriesLabelStyle</H3>
<PRE>
public int <B>getSeriesLabelStyle</B>()</PRE>
<DL>
<DD>Gets the style of the series labels.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#getSeriesLabelStyle()">getSeriesLabelStyle</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>FLOATING or INSIDE.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/PieChart.html#setSeriesLabelStyle(int)"><CODE>setSeriesLabelStyle(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getSliceSeperatorColor()"><!-- --></A><H3>
getSliceSeperatorColor</H3>
<PRE>
public java.awt.Color <B>getSliceSeperatorColor</B>()</PRE>
<DL>
<DD>Gets the current pie slice seperator line color.<DD><DL>
<DT><B>Returns:</B><DD>The color, or null if no color is set.</DL>
</DD>
</DL>
<HR>
<A NAME="getValueLabelStyle()"><!-- --></A><H3>
getValueLabelStyle</H3>
<PRE>
public int <B>getValueLabelStyle</B>()</PRE>
<DL>
<DD>Gets the style of the value labels.<DD><DL>
<DT><B>Returns:</B><DD>FLOATING or INSIDE.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/PieChart.html#setValueLabelStyle(int)"><CODE>setValueLabelStyle(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="isPercentLabelsOn()"><!-- --></A><H3>
isPercentLabelsOn</H3>
<PRE>
public boolean <B>isPercentLabelsOn</B>()</PRE>
<DL>
<DD>Checks if the percent labels are turned on.<DD><DL>
<DT><B>Returns:</B><DD>True if on, false if off.</DL>
</DD>
</DL>
<HR>
<A NAME="isPieLabelsOn()"><!-- --></A><H3>
isPieLabelsOn</H3>
<PRE>
public boolean <B>isPieLabelsOn</B>()</PRE>
<DL>
<DD>Checks if the pie lablels are turned on.<DD><DL>
<DT><B>Returns:</B><DD>True for on, false for off.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/PieChart.html#setPieLabelsOn(boolean)"><CODE>setPieLabelsOn(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="isSampleLabelsOn()"><!-- --></A><H3>
isSampleLabelsOn</H3>
<PRE>
public boolean <B>isSampleLabelsOn</B>()</PRE>
<DL>
<DD>Checks if the sample label is turned on.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#isSampleLabelsOn()">isSampleLabelsOn</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>True if on, false if off.</DL>
</DD>
</DL>
<HR>
<A NAME="isSeriesLabelsOn()"><!-- --></A><H3>
isSeriesLabelsOn</H3>
<PRE>
public boolean <B>isSeriesLabelsOn</B>()</PRE>
<DL>
<DD>Checks if the series label is turned on.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/objectplanet/chart/Chart.html#isSeriesLabelsOn()">isSeriesLabelsOn</A></CODE> in class <CODE><A HREF="../../../com/objectplanet/chart/Chart.html">Chart</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>True if on, false if off.</DL>
</DD>
</DL>
<HR>
<A NAME="isSliceSeperatorOn()"><!-- --></A><H3>
isSliceSeperatorOn</H3>
<PRE>
public boolean <B>isSliceSeperatorOn</B>()</PRE>
<DL>
<DD>Checks if the pie slice seperators are on.<DD><DL>
<DT><B>Returns:</B><DD>True for on, false for off.<DT><B>See Also: </B><DD><A HREF="../../../com/objectplanet/chart/PieChart.html#setSliceSeperatorOn(boolean)"><CODE>setSliceSeperatorOn(boolean)</CODE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -