imagetitle.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 523 行 · 第 1/2 页
HTML
523 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Sep 11 11:26:56 BST 2003 --><TITLE>ImageTitle (JFreeChart Class Library (version 0.9.12))</TITLE><META NAME="keywords" CONTENT="org.jfree.chart.ImageTitle,ImageTitle class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><SCRIPT>function asd(){parent.document.title="ImageTitle (JFreeChart Class Library (version 0.9.12))";}</SCRIPT><BODY BGCOLOR="white" onload="asd();"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.jfree.chart</FONT><BR>Class ImageTitle</H2><PRE>java.lang.Object | +--<A HREF="../../../org/jfree/chart/AbstractTitle.html">org.jfree.chart.AbstractTitle</A> | +--<B>org.jfree.chart.ImageTitle</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.io.Serializable</DD></DL><HR><DL><DT>public class <B>ImageTitle</B><DT>extends <A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></DL><P>A chart title that displays an image. This is useful, for example, if you have an image of your corporate logo and want to use as a footnote or part of a title in a chart you create. <P> ImageTitle needs an image passed to it in the constructor. For ImageTitle to work, you must have already loaded this image from its source (disk or URL). It is recomended you use something like Toolkit.getDefaultToolkit().getImage() to get the image. Then, use MediaTracker or some other message to make sure the image is fully loaded from disk.<P><P><DL><DT><B>Author:</B></DT> <DD>David Berry</DD><DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html" TARGET="org.jfree.chart.ImageTitle">Serialized Form</A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR></TABLE> <A NAME="fields_inherited_from_class_org.jfree.chart.AbstractTitle"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class org.jfree.chart.<A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#BOTTOM">BOTTOM</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#CENTER">CENTER</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#DEFAULT_HORIZONTAL_ALIGNMENT">DEFAULT_HORIZONTAL_ALIGNMENT</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#DEFAULT_POSITION">DEFAULT_POSITION</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#DEFAULT_SPACER">DEFAULT_SPACER</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#DEFAULT_VERTICAL_ALIGNMENT">DEFAULT_VERTICAL_ALIGNMENT</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#EAST">EAST</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#LEFT">LEFT</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#MIDDLE">MIDDLE</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#NORTH">NORTH</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#RIGHT">RIGHT</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#SOUTH">SOUTH</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#TOP">TOP</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#WEST">WEST</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#ImageTitle(java.awt.Image)">ImageTitle</A></B>(java.awt.Image image)</CODE><BR> Creates a new image title.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#ImageTitle(java.awt.Image, int, int, int)">ImageTitle</A></B>(java.awt.Image image, int position, int horizontalAlignment, int verticalAlignment)</CODE><BR> Creates a new image title.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#ImageTitle(java.awt.Image, int, int, int, int, int, org.jfree.chart.Spacer)">ImageTitle</A></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)</CODE><BR> Creates a new image title with the given image scaled to the given width and height in the given location.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/ImageTitle.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">draw</A></B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D titleArea)</CODE><BR> Draws the title on a Java 2D graphics device (such as the screen or a printer).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected org.jfree.ui.Size2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#drawHorizontal(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">drawHorizontal</A></B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D chartArea)</CODE><BR> Draws the title on a Java 2D graphics device (such as the screen or a printer).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected org.jfree.ui.Size2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#drawVertical(java.awt.Graphics2D, java.awt.geom.Rectangle2D)">drawVertical</A></B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D chartArea)</CODE><BR> Draws the title on a Java 2D graphics device (such as the screen or a printer).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Image</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#getImage()">getImage</A></B>()</CODE><BR> Returns the image for the title.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#getPreferredHeight(java.awt.Graphics2D)">getPreferredHeight</A></B>(java.awt.Graphics2D g2)</CODE><BR> Returns the preferred height of the title.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#getPreferredWidth(java.awt.Graphics2D)">getPreferredWidth</A></B>(java.awt.Graphics2D g2)</CODE><BR> Returns the preferred width of the title.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ImageTitle.html#isValidPosition(int)">isValidPosition</A></B>(int position)</CODE><BR> Returns true for all positions, since an image can be displayed anywhere.</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/ImageTitle.html#setImage(java.awt.Image)">setImage</A></B>(java.awt.Image image)</CODE><BR> Sets the image for the title and notifies registered listeners that the title has been modified.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.jfree.chart.AbstractTitle"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.jfree.chart.<A HREF="../../../org/jfree/chart/AbstractTitle.html">AbstractTitle</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/jfree/chart/AbstractTitle.html#addChangeListener(org.jfree.chart.event.TitleChangeListener)">addChangeListener</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#clone()">clone</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getHorizontalAlignment()">getHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getNotify()">getNotify</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getPosition()">getPosition</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getSpacer()">getSpacer</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#getVerticalAlignment()">getVerticalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidHorizontalAlignment(int)">isValidHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#isValidVerticalAlignment(int)">isValidVerticalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#notifyListeners(org.jfree.chart.event.TitleChangeEvent)">notifyListeners</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#removeChangeListener(org.jfree.chart.event.TitleChangeListener)">removeChangeListener</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setHorizontalAlignment(int)">setHorizontalAlignment</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setNotify(boolean)">setNotify</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setPosition(int)">setPosition</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setSpacer(org.jfree.chart.Spacer)">setSpacer</A>, <A HREF="../../../org/jfree/chart/AbstractTitle.html#setVerticalAlignment(int)">setVerticalAlignment</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?