📄 xytextannotation.html
字号:
<BR> Sets the font for the annotation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/annotations/XYTextAnnotation.html#setPaint(java.awt.Paint)">setPaint</A></B>(java.awt.Paint paint)</CODE><BR> Sets the paint for the annotation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/annotations/XYTextAnnotation.html#setRotationAnchor(org.jfree.ui.TextAnchor)">setRotationAnchor</A></B>(org.jfree.ui.TextAnchor anchor)</CODE><BR> Sets the rotation anchor point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/annotations/XYTextAnnotation.html#setRotationAngle(double)">setRotationAngle</A></B>(double angle)</CODE><BR> Sets the rotation angle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/annotations/XYTextAnnotation.html#setText(java.lang.String)">setText</A></B>(java.lang.String text)</CODE><BR> Sets the text for the annotation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/annotations/XYTextAnnotation.html#setTextAnchor(org.jfree.ui.TextAnchor)">setTextAnchor</A></B>(org.jfree.ui.TextAnchor anchor)</CODE><BR> Sets the text anchor (the point on the text bounding rectangle that is aligned to the (x, y) coordinate of the annotation).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/annotations/XYTextAnnotation.html#setX(double)">setX</A></B>(double x)</CODE><BR> Sets the x coordinate for the text anchor point (measured against the domain axis).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/annotations/XYTextAnnotation.html#setY(double)">setY</A></B>(double y)</CODE><BR> Sets the y coordinate for the text anchor point (measured against the range axis).</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.jfree.chart.annotations.AbstractXYAnnotation"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.jfree.chart.annotations.<A HREF="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html" title="class in org.jfree.chart.annotations">AbstractXYAnnotation</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#addEntity(org.jfree.chart.plot.PlotRenderingInfo, java.awt.Shape, int, java.lang.String, java.lang.String)">addEntity</A>, <A HREF="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#getToolTipText()">getToolTipText</A>, <A HREF="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#getURL()">getURL</A>, <A HREF="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#setToolTipText(java.lang.String)">setToolTipText</A>, <A HREF="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#setURL(java.lang.String)">setURL</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="DEFAULT_FONT"><!-- --></A><H3>DEFAULT_FONT</H3><PRE>public static final java.awt.Font <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.91"><B>DEFAULT_FONT</B></A></PRE><DL><DD>The default font.<P><DL></DL></DL><HR><A NAME="DEFAULT_PAINT"><!-- --></A><H3>DEFAULT_PAINT</H3><PRE>public static final java.awt.Paint <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.95"><B>DEFAULT_PAINT</B></A></PRE><DL><DD>The default paint.<P><DL></DL></DL><HR><A NAME="DEFAULT_TEXT_ANCHOR"><!-- --></A><H3>DEFAULT_TEXT_ANCHOR</H3><PRE>public static final org.jfree.ui.TextAnchor <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.98"><B>DEFAULT_TEXT_ANCHOR</B></A></PRE><DL><DD>The default text anchor.<P><DL></DL></DL><HR><A NAME="DEFAULT_ROTATION_ANCHOR"><!-- --></A><H3>DEFAULT_ROTATION_ANCHOR</H3><PRE>public static final org.jfree.ui.TextAnchor <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.101"><B>DEFAULT_ROTATION_ANCHOR</B></A></PRE><DL><DD>The default rotation anchor.<P><DL></DL></DL><HR><A NAME="DEFAULT_ROTATION_ANGLE"><!-- --></A><H3>DEFAULT_ROTATION_ANGLE</H3><PRE>public static final double <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.104"><B>DEFAULT_ROTATION_ANGLE</B></A></PRE><DL><DD>The default rotation angle.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.chart.annotations.XYTextAnnotation.DEFAULT_ROTATION_ANGLE">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="XYTextAnnotation(java.lang.String, double, double)"><!-- --></A><H3>XYTextAnnotation</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.139"><B>XYTextAnnotation</B></A>(java.lang.String text, double x, double y)</PRE><DL><DD>Creates a new annotation to be displayed at the given coordinates. The coordinates are specified in data space (they will be converted to Java2D space for display).<P><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text (<code>null</code> not permitted).<DD><CODE>x</CODE> - the x-coordinate (in data space).<DD><CODE>y</CODE> - the y-coordinate (in data space).</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="getText()"><!-- --></A><H3>getText</H3><PRE>public java.lang.String <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.158"><B>getText</B></A>()</PRE><DL><DD>Returns the text for the annotation.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The text (never <code>null</code>).</DL></DD></DL><HR><A NAME="setText(java.lang.String)"><!-- --></A><H3>setText</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.167"><B>setText</B></A>(java.lang.String text)</PRE><DL><DD>Sets the text for the annotation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getFont()"><!-- --></A><H3>getFont</H3><PRE>public java.awt.Font <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.176"><B>getFont</B></A>()</PRE><DL><DD>Returns the font for the annotation.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The font.</DL></DD></DL><HR><A NAME="setFont(java.awt.Font)"><!-- --></A><H3>setFont</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.185"><B>setFont</B></A>(java.awt.Font font)</PRE><DL><DD>Sets the font for the annotation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>font</CODE> - the font.</DL></DD></DL><HR><A NAME="getPaint()"><!-- --></A><H3>getPaint</H3><PRE>public java.awt.Paint <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.194"><B>getPaint</B></A>()</PRE><DL><DD>Returns the paint for the annotation.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="setPaint(java.awt.Paint)"><!-- --></A><H3>setPaint</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.203"><B>setPaint</B></A>(java.awt.Paint paint)</PRE><DL><DD>Sets the paint for the annotation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the paint.</DL></DD></DL><HR><A NAME="getTextAnchor()"><!-- --></A><H3>getTextAnchor</H3><PRE>public org.jfree.ui.TextAnchor <A HREF="../../../../src-html/org/jfree/chart/annotations/XYTextAnnotation.html#line.212"><B>getTextAnchor</B></A>()</PRE><DL><DD>Returns the text anchor.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The text anchor.</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -