imagegraphicattribute.html

来自「API資料大全」· HTML 代码 · 共 462 行 · 第 1/2 页

HTML
462
字号
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ImageGraphicAttribute(java.awt.Image, int)"><!-- --></A><H3>ImageGraphicAttribute</H3><PRE>public <B>ImageGraphicAttribute</B>(<A HREF="../../../java/awt/Image.html">Image</A>&nbsp;image,                             int&nbsp;alignment)</PRE><DL><DD>Constucts an <code>ImageGraphicAttribute</code> from the specified <A HREF="../../../java/awt/Image.html"><CODE>Image</CODE></A>.  The origin is at (0,&nbsp;0).<DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the <code>Image</code> rendered by this <code>ImageGraphicAttribute</code>. This object keeps a reference to <code>image</code>.<DD><CODE>alignment</CODE> - one of the alignments from this <code>ImageGraphicAttribute</code></DL></DD></DL><HR><A NAME="ImageGraphicAttribute(java.awt.Image, int, float, float)"><!-- --></A><H3>ImageGraphicAttribute</H3><PRE>public <B>ImageGraphicAttribute</B>(<A HREF="../../../java/awt/Image.html">Image</A>&nbsp;image,                             int&nbsp;alignment,                             float&nbsp;originX,                             float&nbsp;originY)</PRE><DL><DD>Constructs an <code>ImageGraphicAttribute</code> from the specified <code>Image</code>. The point (<code>originX</code>,&nbsp;<code>originY</code>) in the  <code>Image</code> appears at the origin of the  <code>ImageGraphicAttribute</code> within the text.<DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the <code>Image</code> rendered by this <code>ImageGraphicAttribute</code>. This object keeps a reference to <code>image</code>.<DD><CODE>alignment</CODE> - one of the alignments from this  <code>ImageGraphicAttribute</code><DD><CODE>originX,&nbsp;originY</CODE> - the coordinates of the point within the <code>Image</code> that appears at the origin of the <code>ImageGraphicAttribute</code> in the text line.</DL></DD></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="getAscent()"><!-- --></A><H3>getAscent</H3><PRE>public float <B>getAscent</B>()</PRE><DL><DD>Returns the ascent of this <code>ImageGraphicAttribute</code>.  The ascent of an <code>ImageGraphicAttribute</code> is the distance from the top of the image to the origin.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/font/GraphicAttribute.html#getAscent()">getAscent</A></CODE> in class <CODE><A HREF="../../../java/awt/font/GraphicAttribute.html">GraphicAttribute</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ascent of this <code>ImageGraphicAttribute</code>.</DL></DD></DL><HR><A NAME="getDescent()"><!-- --></A><H3>getDescent</H3><PRE>public float <B>getDescent</B>()</PRE><DL><DD>Returns the descent of this <code>ImageGraphicAttribute</code.. The descent of an <code>ImageGraphicAttribute</code> is the distance from the origin to the bottom of the image.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/font/GraphicAttribute.html#getDescent()">getDescent</A></CODE> in class <CODE><A HREF="../../../java/awt/font/GraphicAttribute.html">GraphicAttribute</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the descent of this <code>ImageGraphicAttribute</code>.</DL></DD></DL><HR><A NAME="getAdvance()"><!-- --></A><H3>getAdvance</H3><PRE>public float <B>getAdvance</B>()</PRE><DL><DD>Returns the advance of this <code>ImageGraphicAttribute</code>. The advance of an <code>ImageGraphicAttribute</code> is the distance from the origin to the right edge of the image.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/font/GraphicAttribute.html#getAdvance()">getAdvance</A></CODE> in class <CODE><A HREF="../../../java/awt/font/GraphicAttribute.html">GraphicAttribute</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the advance of this <code>ImageGraphicAttribute</code>.</DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getBounds</B>()</PRE><DL><DD>Returns a <A HREF="../../../java/awt/geom/Rectangle2D.html"><CODE>Rectangle2D</CODE></A> that encloses all of the bits rendered by this <code>ImageGraphicAttribute</code>, relative to the rendering position.  A graphic can be rendered beyond its origin, ascent, descent, or advance;  but if it is, this method's implementation must indicate where the graphic is rendered.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/font/GraphicAttribute.html#getBounds()">getBounds</A></CODE> in class <CODE><A HREF="../../../java/awt/font/GraphicAttribute.html">GraphicAttribute</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that encloses all of the bits rendered by this <code>ImageGraphicAttribute</code>.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, float, float)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(<A HREF="../../../java/awt/Graphics2D.html">Graphics2D</A>&nbsp;graphics,                 float&nbsp;x,                 float&nbsp;y)</PRE><DL><DD>Renders the graphic at the specified location.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/font/GraphicAttribute.html#draw(java.awt.Graphics2D, float, float)">draw</A></CODE> in class <CODE><A HREF="../../../java/awt/font/GraphicAttribute.html">GraphicAttribute</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>graphics</CODE> - the <A HREF="../../../java/awt/Graphics2D.html"><CODE>Graphics2D</CODE></A> into which to render the graphic<DD><CODE>x</CODE> - the user-space coordinates where the graphic is rendered</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hashcode for this <code>ImageGraphicAttribute</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a hash code value for this object.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;rhs)</PRE><DL><DD>Compares this <code>ImageGraphicAttribute</code> to the specified <A HREF="../../../java/lang/Object.html"><CODE>Object</CODE></A>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rhs</CODE> - the <code>Object</code> to compare for equality<DT><B>Returns:</B><DD><code>true</code> if this  <code>ImageGraphicAttribute</code> equals <code>rhs</code>; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="equals(java.awt.font.ImageGraphicAttribute)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/awt/font/ImageGraphicAttribute.html">ImageGraphicAttribute</A>&nbsp;rhs)</PRE><DL><DD>Compares this <code>ImageGraphicAttribute</code> to the specified <code>ImageGraphicAttribute</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>rhs</CODE> - the <code>ImageGraphicAttribute</code> to compare for equality<DT><B>Returns:</B><DD><code>true</code> if this <code>ImageGraphicAttribute</code> equals <code>rhs</code>; <code>false</code> otherwise.</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=2 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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ImageGraphicAttribute.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/awt/font/GraphicAttribute.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/font/LineBreakMeasurer.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>  &nbsp;&nbsp;<A HREF="ImageGraphicAttribute.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.awt.font.GraphicAttribute">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?