imagetitle.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 523 行 · 第 1/2 页
HTML
523 行
<TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ImageTitle(java.awt.Image)"><!-- --></A><H3>ImageTitle</H3><PRE>public <B>ImageTitle</B>(java.awt.Image image)</PRE><DL><DD>Creates a new image title.<P><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image.</DL><HR><A NAME="ImageTitle(java.awt.Image, int, int, int)"><!-- --></A><H3>ImageTitle</H3><PRE>public <B>ImageTitle</B>(java.awt.Image image, int position, int horizontalAlignment, int verticalAlignment)</PRE><DL><DD>Creates a new image title.<P><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image.<DD><CODE>position</CODE> - the title position (<code>LEFT</code>, <code>RIGHT</code>, <code>TOP</code> or <code>BOTTOM</code>).<DD><CODE>horizontalAlignment</CODE> - the horizontal alignment of the title (<code>LEFT</code>, <code>CENTER</code> or <code>RIGHT</code>).<DD><CODE>verticalAlignment</CODE> - the vertical alignment of the title (<code>TOP</code>, <code>MIDDLE</code> or <code>BOTTOM</code>).</DL><HR><A NAME="ImageTitle(java.awt.Image, int, int, int, int, int, org.jfree.chart.Spacer)"><!-- --></A><H3>ImageTitle</H3><PRE>public <B>ImageTitle</B>(java.awt.Image image, int height, int width, int position, int horizontalAlignment, int verticalAlignment, <A HREF="../../../org/jfree/chart/Spacer.html">Spacer</A> spacer)</PRE><DL><DD>Creates a new image title with the given image scaled to the given width and height in the given location.<P><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image.<DD><CODE>height</CODE> - the height used to draw the image.<DD><CODE>width</CODE> - the width used to draw the image.<DD><CODE>position</CODE> - the title position (<code>LEFT</code>, <code>RIGHT</code>, <code>TOP</code> or <code>BOTTOM</code>).<DD><CODE>horizontalAlignment</CODE> - the horizontal alignment of the title (<code>LEFT</code>, <code>CENTER</code> or <code>RIGHT</code>).<DD><CODE>verticalAlignment</CODE> - the vertical alignment of the title (<code>TOP</code>, <code>MIDDLE</code> or <code>BOTTOM</code>).<DD><CODE>spacer</CODE> - the amount of space to leave around the outside of the title.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getImage()"><!-- --></A><H3>getImage</H3><PRE>public java.awt.Image <B>getImage</B>()</PRE><DL><DD>Returns the image for the title.<P><DD><DL><DT><B>Returns:</B><DD>the image for the title.</DL></DD></DL><HR><A NAME="setImage(java.awt.Image)"><!-- --></A><H3>setImage</H3><PRE>public void <B>setImage</B>(java.awt.Image image)</PRE><DL><DD>Sets the image for the title and notifies registered listeners that the title has been modified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the new image.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D titleArea)</PRE><DL><DD>Draws the title on a Java 2D graphics device (such as the screen or a printer).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">draw</A></CODE> in class <CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>titleArea</CODE> - the area within which the title (and plot) should be drawn.</DL></DD></DL><HR><A NAME="isValidPosition(int)"><!-- --></A><H3>isValidPosition</H3><PRE>public boolean <B>isValidPosition</B>(int position)</PRE><DL><DD>Returns true for all positions, since an image can be displayed anywhere.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidPosition(int)">isValidPosition</A></CODE> in class <CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - the title position (LEFT, RIGHT, TOP, BOTTOM).<DT><B>Returns:</B><DD><code>true</code> if the position is LEFT, RIGHT, TOP or BOTTOM.</DL></DD></DL><HR><A NAME="getPreferredWidth(java.awt.Graphics2D)"><!-- --></A><H3>getPreferredWidth</H3><PRE>public double <B>getPreferredWidth</B>(java.awt.Graphics2D g2)</PRE><DL><DD>Returns the preferred width of the title.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#getPreferredWidth(java.awt.Graphics2D)">getPreferredWidth</A></CODE> in class <CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DT><B>Returns:</B><DD>the preferred width of the title.</DL></DD></DL><HR><A NAME="getPreferredHeight(java.awt.Graphics2D)"><!-- --></A><H3>getPreferredHeight</H3><PRE>public double <B>getPreferredHeight</B>(java.awt.Graphics2D g2)</PRE><DL><DD>Returns the preferred height of the title.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#getPreferredHeight(java.awt.Graphics2D)">getPreferredHeight</A></CODE> in class <CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DT><B>Returns:</B><DD>the preferred height of the title.</DL></DD></DL><HR><A NAME="drawHorizontal(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawHorizontal</H3><PRE>protected org.jfree.ui.Size2D <B>drawHorizontal</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D chartArea)</PRE><DL><DD>Draws the title on a Java 2D graphics device (such as the screen or a printer).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>chartArea</CODE> - the area within which the title (and plot) should be drawn.<DT><B>Returns:</B><DD>the area used by the title.</DL></DD></DL><HR><A NAME="drawVertical(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawVertical</H3><PRE>protected org.jfree.ui.Size2D <B>drawVertical</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D chartArea)</PRE><DL><DD>Draws the title on a Java 2D graphics device (such as the screen or a printer).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>chartArea</CODE> - the area within which the title (and plot) should be drawn.<DT><B>Returns:</B><DD>the area used by the title.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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="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-all.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/DrawableLegendItem.html"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/chart/IntervalMarker.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ImageTitle.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.jfree.chart.AbstractTitle">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: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?