📄 standardpiesectionlabelgenerator.html
字号:
</TABLE><A NAME="DEFAULT_SECTION_LABEL_FORMAT"><!-- --></A><H3>DEFAULT_SECTION_LABEL_FORMAT</H3><PRE>public static final java.lang.String <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.75"><B>DEFAULT_SECTION_LABEL_FORMAT</B></A></PRE><DL><DD>The default section label format.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.chart.labels.StandardPieSectionLabelGenerator.DEFAULT_SECTION_LABEL_FORMAT">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="StandardPieSectionLabelGenerator()"><!-- --></A><H3>StandardPieSectionLabelGenerator</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.87"><B>StandardPieSectionLabelGenerator</B></A>()</PRE><DL><DD>Creates a new section label generator using <A HREF="../../../../org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#DEFAULT_SECTION_LABEL_FORMAT"><CODE>DEFAULT_SECTION_LABEL_FORMAT</CODE></A> as the label format string, and platform default number and percentage formatters.<P></DL><HR><A NAME="StandardPieSectionLabelGenerator(java.lang.String)"><!-- --></A><H3>StandardPieSectionLabelGenerator</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.98"><B>StandardPieSectionLabelGenerator</B></A>(java.lang.String labelFormat)</PRE><DL><DD>Creates a new section label generator using the specified label format string, and platform default number and percentage formatters.<P><DL><DT><B>Parameters:</B><DD><CODE>labelFormat</CODE> - the label format (<code>null</code> not permitted).</DL></DL><HR><A NAME="StandardPieSectionLabelGenerator(java.lang.String, java.text.NumberFormat, java.text.NumberFormat)"><!-- --></A><H3>StandardPieSectionLabelGenerator</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.113"><B>StandardPieSectionLabelGenerator</B></A>(java.lang.String labelFormat, java.text.NumberFormat numberFormat, java.text.NumberFormat percentFormat)</PRE><DL><DD>Creates an item label generator using the specified number formatters.<P><DL><DT><B>Parameters:</B><DD><CODE>labelFormat</CODE> - the label format string (<code>null</code> not permitted).<DD><CODE>numberFormat</CODE> - the format object for the values (<code>null</code> not permitted).<DD><CODE>percentFormat</CODE> - the format object for the percentages (<code>null</code> not permitted).</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getAttributedLabel(int)"><!-- --></A><H3>getAttributedLabel</H3><PRE>public java.text.AttributedString <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.130"><B>getAttributedLabel</B></A>(int section)</PRE><DL><DD>Returns the attributed label for a section, or <code>null</code> if none is defined.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>section</CODE> - the section index.<DT><B>Returns:</B><DD>The attributed label.</DL></DD></DL><HR><A NAME="setAttributedLabel(int, java.text.AttributedString)"><!-- --></A><H3>setAttributedLabel</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.140"><B>setAttributedLabel</B></A>(int section, java.text.AttributedString label)</PRE><DL><DD>Sets the attributed label for a section.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>section</CODE> - the section index.<DD><CODE>label</CODE> - the label (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="generateSectionLabel(org.jfree.data.general.PieDataset, java.lang.Comparable)"><!-- --></A><H3>generateSectionLabel</H3><PRE>public java.lang.String <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.152"><B>generateSectionLabel</B></A>(<A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> dataset, java.lang.Comparable key)</PRE><DL><DD>Generates a label for a pie section.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/labels/PieSectionLabelGenerator.html#generateSectionLabel(org.jfree.data.general.PieDataset, java.lang.Comparable)">generateSectionLabel</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/labels/PieSectionLabelGenerator.html" title="interface in org.jfree.chart.labels">PieSectionLabelGenerator</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/labels/AbstractPieItemLabelGenerator.html#generateSectionLabel(org.jfree.data.general.PieDataset, java.lang.Comparable)">generateSectionLabel</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/labels/AbstractPieItemLabelGenerator.html" title="class in org.jfree.chart.labels">AbstractPieItemLabelGenerator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DD><CODE>key</CODE> - the section key (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The label (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="generateAttributedSectionLabel(org.jfree.data.general.PieDataset, java.lang.Comparable)"><!-- --></A><H3>generateAttributedSectionLabel</H3><PRE>public java.text.AttributedString <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.183"><B>generateAttributedSectionLabel</B></A>(<A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> dataset, java.lang.Comparable key)</PRE><DL><DD>Generates an attributed label for the specified series, or <code>null</code> if no attributed label is available (in which case, the string returned by <A HREF="../../../../org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#generateSectionLabel(org.jfree.data.general.PieDataset, java.lang.Comparable)"><CODE>generateSectionLabel(PieDataset, Comparable)</CODE></A> will provide the fallback). Only certain attributes are recognised by the code that ultimately displays the labels: <ul> <li><CODE>TextAttribute.FONT</CODE>: will set the font;</li> <li><CODE>TextAttribute.POSTURE</CODE>: a value of <CODE>TextAttribute.POSTURE_OBLIQUE</CODE> will add <CODE>Font.ITALIC</CODE> to the current font;</li> <li><CODE>TextAttribute.WEIGHT</CODE>: a value of <CODE>TextAttribute.WEIGHT_BOLD</CODE> will add <CODE>Font.BOLD</CODE> to the current font;</li> <li><CODE>TextAttribute.FOREGROUND</CODE>: this will set the <CODE>Paint</CODE> for the current</li> <li><CODE>TextAttribute.SUPERSCRIPT</CODE>: the values <CODE>TextAttribute.SUPERSCRIPT_SUB</CODE> and <CODE>TextAttribute.SUPERSCRIPT_SUPER</CODE> are recognised.</li> </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/labels/PieSectionLabelGenerator.html#generateAttributedSectionLabel(org.jfree.data.general.PieDataset, java.lang.Comparable)">generateAttributedSectionLabel</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/labels/PieSectionLabelGenerator.html" title="interface in org.jfree.chart.labels">PieSectionLabelGenerator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DD><CODE>key</CODE> - the key.<DT><B>Returns:</B><DD>An attributed label (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.195"><B>equals</B></A>(java.lang.Object obj)</PRE><DL><DD>Tests the generator for equality with an arbitrary object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/labels/AbstractPieItemLabelGenerator.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/labels/AbstractPieItemLabelGenerator.html" title="class in org.jfree.chart.labels">AbstractPieItemLabelGenerator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to test against (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <A HREF="../../../../src-html/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html#line.215"><B>clone</B></A>() throws java.lang.CloneNotSupportedException</PRE><DL><DD>Returns an independent copy of the generator.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/labels/AbstractPieItemLabelGenerator.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/labels/AbstractPieItemLabelGenerator.html" title="class in org.jfree.chart.labels">AbstractPieItemLabelGenerator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - should not happen.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StandardPieSectionLabelGenerator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jfree/chart/labels/StandardContourToolTipGenerator.html" title="class in org.jfree.chart.labels"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/chart/labels/StandardPieToolTipGenerator.html" title="class in org.jfree.chart.labels"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jfree/chart/labels/StandardPieSectionLabelGenerator.html" target="_top"><B>FRAMES</B></A> <A HREF="StandardPieSectionLabelGenerator.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -