graphicattribute.html
来自「API資料大全」· HTML 代码 · 共 469 行 · 第 1/2 页
HTML
469 行
<TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="TOP_ALIGNMENT"><!-- --></A><H3>TOP_ALIGNMENT</H3><PRE>public static final int <B>TOP_ALIGNMENT</B></PRE><DL><DD>Aligns top of graphic to top of line.</DL><HR><A NAME="BOTTOM_ALIGNMENT"><!-- --></A><H3>BOTTOM_ALIGNMENT</H3><PRE>public static final int <B>BOTTOM_ALIGNMENT</B></PRE><DL><DD>Aligns bottom of graphic to bottom of line.</DL><HR><A NAME="ROMAN_BASELINE"><!-- --></A><H3>ROMAN_BASELINE</H3><PRE>public static final int <B>ROMAN_BASELINE</B></PRE><DL><DD>Aligns origin of graphic to roman baseline of line.</DL><HR><A NAME="CENTER_BASELINE"><!-- --></A><H3>CENTER_BASELINE</H3><PRE>public static final int <B>CENTER_BASELINE</B></PRE><DL><DD>Aligns origin of graphic to center baseline of line.</DL><HR><A NAME="HANGING_BASELINE"><!-- --></A><H3>HANGING_BASELINE</H3><PRE>public static final int <B>HANGING_BASELINE</B></PRE><DL><DD>Aligns origin of graphic to hanging baseline of line.</DL><!-- ========= 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="GraphicAttribute(int)"><!-- --></A><H3>GraphicAttribute</H3><PRE>protected <B>GraphicAttribute</B>(int alignment)</PRE><DL><DD>Constructs a <code>GraphicAttribute</code>. Subclasses use this to define the alignment of the graphic.</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 abstract float <B>getAscent</B>()</PRE><DL><DD>Returns the ascent of this <code>GraphicAttribute</code>. A graphic can be rendered above its ascent.<DD><DL><DT><B>Returns:</B><DD>the ascent of this <code>GraphicAttribute</code>.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/GraphicAttribute.html#getBounds()"><CODE>getBounds()</CODE></A></DL></DD></DL><HR><A NAME="getDescent()"><!-- --></A><H3>getDescent</H3><PRE>public abstract float <B>getDescent</B>()</PRE><DL><DD>Returns the descent of this <code>GraphicAttribute</code>. A graphic can be rendered below its descent.<DD><DL><DT><B>Returns:</B><DD>the descent of this <code>GraphicAttribute</code>.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/GraphicAttribute.html#getBounds()"><CODE>getBounds()</CODE></A></DL></DD></DL><HR><A NAME="getAdvance()"><!-- --></A><H3>getAdvance</H3><PRE>public abstract float <B>getAdvance</B>()</PRE><DL><DD>Returns the advance of this <code>GraphicAttribute</code>. The <code>GraphicAttribute</code> object's advance is the distance from the point at which the graphic is rendered and the point where the next character or graphic is rendered. A graphic can be rendered beyond its advance<DD><DL><DT><B>Returns:</B><DD>the advance of this <code>GraphicAttribute</code>.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/GraphicAttribute.html#getBounds()"><CODE>getBounds()</CODE></A></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 drawn by this <code>GraphicAttribute</code> relative to the rendering position. A graphic may be rendered beyond its origin, ascent, descent, or advance; but if it is, this method's implementation must indicate where the graphic is rendered. Default bounds is the rectangle (0, -ascent, advance, ascent+descent).<DD><DL><DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that encloses all of the bits rendered by this <code>GraphicAttribute</code>.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, float, float)"><!-- --></A><H3>draw</H3><PRE>public abstract void <B>draw</B>(<A HREF="../../../java/awt/Graphics2D.html">Graphics2D</A> graphics, float x, float y)</PRE><DL><DD>Renders this <code>GraphicAttribute</code> at the specified location.<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, y</CODE> - the user-space coordinates where the graphic is rendered</DL></DD></DL><HR><A NAME="getAlignment()"><!-- --></A><H3>getAlignment</H3><PRE>public final int <B>getAlignment</B>()</PRE><DL><DD>Returns the alignment of this <code>GraphicAttribute</code>. Alignment can be to a particular baseline, or to the absolute top or bottom of a line.<DD><DL><DT><B>Returns:</B><DD>the alignment of this <code>GraphicAttribute</code>.</DL></DD></DL><HR><A NAME="getJustificationInfo()"><!-- --></A><H3>getJustificationInfo</H3><PRE>public <A HREF="../../../java/awt/font/GlyphJustificationInfo.html">GlyphJustificationInfo</A> <B>getJustificationInfo</B>()</PRE><DL><DD>Returns the justification information for this <code>GraphicAttribute</code>. Subclasses can override this method to provide different justification information.<DD><DL><DT><B>Returns:</B><DD>a <A HREF="../../../java/awt/font/GlyphJustificationInfo.html"><CODE>GlyphJustificationInfo</CODE></A> object that contains the justification information for this <code>GraphicAttribute</code>.</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> </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/GraphicAttribute.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../java/awt/font/GlyphVector.html"><B>PREV CLASS</B></A> <A HREF="../../../java/awt/font/ImageGraphicAttribute.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="GraphicAttribute.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <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><!-- =========== 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 + -
显示快捷键?