glyphvector.html

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

HTML
904
字号
   visual representation of the specified glyph   within this <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code><DT><B>Returns:</B><DD>a <code>Shape</code> that is the outline of the glyph		at the specified <code>glyphIndex</code> of this		<code>GlyphVector</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than or equal to the number           of glyphs in this <code>GlyphVector</code></DL></DD></DL><HR><A NAME="getGlyphPosition(int)"><!-- --></A><H3>getGlyphPosition</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getGlyphPosition</B>(int&nbsp;glyphIndex)</PRE><DL><DD>Returns the position of the specified glyph within this   <code>GlyphVector</code>.   This position corresponds to the leading edge of the baseline for   the glyph.   If <code>glyphIndex</code> equals the number of of glyphs in    this <code>GlyphVector</code>, this method gets the position after   the last glyph and this position is used to define the advance of    the entire <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code><DT><B>Returns:</B><DD>a <A HREF="../../../java/awt/geom/Point2D.html"><CODE>Point2D</CODE></A> object that is the position of the glyph		at the specified <code>glyphIndex</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than the number of glyphs           in this <code>GlyphVector</code></DL></DD></DL><HR><A NAME="setGlyphPosition(int, java.awt.geom.Point2D)"><!-- --></A><H3>setGlyphPosition</H3><PRE>public abstract void <B>setGlyphPosition</B>(int&nbsp;glyphIndex,                                      <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;newPos)</PRE><DL><DD>Sets the position of the specified glyph within this   <code>GlyphVector</code>.   This position corresponds to the leading edge of the baseline for   the glyph.   If <code>glyphIndex</code> equals the number of of glyphs in    this <code>GlyphVector</code>, this method sets the position after   the last glyph and this position is used to define the advance of    the entire <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code><DD><CODE>newPos</CODE> - the <code>Point2D</code> at which to position the		glyph at the specified <code>glyphIndex</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than the number of glyphs           in this <code>GlyphVector</code></DL></DD></DL><HR><A NAME="getGlyphTransform(int)"><!-- --></A><H3>getGlyphTransform</H3><PRE>public abstract <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> <B>getGlyphTransform</B>(int&nbsp;glyphIndex)</PRE><DL><DD>Gets the transform of the specified glyph within this   <code>GlyphVector</code>.  The transform is relative to the   glyph position.  If no special transform has been applied,    <code>null</code> can be returned.  Such a transform would    be an identity transform.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code><DT><B>Returns:</B><DD>an <A HREF="../../../java/awt/geom/AffineTransform.html"><CODE>AffineTransform</CODE></A> that is the transform of		the glyph at the specified <code>glyphIndex</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than or equal to the number            of glyphs in this <code>GlyphVector</code></DL></DD></DL><HR><A NAME="setGlyphTransform(int, java.awt.geom.AffineTransform)"><!-- --></A><H3>setGlyphTransform</H3><PRE>public abstract void <B>setGlyphTransform</B>(int&nbsp;glyphIndex,                                       <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A>&nbsp;newTX)</PRE><DL><DD>Sets the transform of the specified glyph within this   <code>GlyphVector</code>.  The transform is relative to the glyph   position.  A <code>null</code> argument for <code>newTX</code>   indicates that no special transform is applied for the specified   glyph.   This method can be used to rotate, mirror, translate and scale the   glyph.  Adding a transform can result in signifant performance changes.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code><DD><CODE>newTx</CODE> - the specified transform that the transform of the		glyph at the specified <code>glyphIndex</code> is set to<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than or equal to the number            of glyphs in this <code>GlyphVector</code></DL></DD></DL><HR><A NAME="getGlyphPositions(int, int, float[])"><!-- --></A><H3>getGlyphPositions</H3><PRE>public abstract float[] <B>getGlyphPositions</B>(int&nbsp;beginGlyphIndex,                                          int&nbsp;numEntries,                                          float[]&nbsp;positionReturn)</PRE><DL><DD>Returns an array of glyph positions for the specified glyphs.   The position of each glyph corresponds to the leading edge of the   baseline for that glyph.  This method is used for convenience and   performance when processing glyph positions.   If no array is passed in, a new array is created.   Even numbered array entries beginning with position zero are the X   coordinates of the glyph numbered beginGlyphIndex + position/2.     Odd numbered array entries beginning with position one are the Y   coordinates of the glyph numbered beginGlyphIndex + (position-1)/2.   If <code>beginGlyphIndex</code> equals the number of of glyphs in    this <code>GlyphVector</code>, this method gets the position after   the last glyph and this position is used to define the advance of    the entire <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>beginGlyphIndex</CODE> - the index at which to begin retrieving        glyph positions<DD><CODE>numEntries</CODE> - the number of glyphs to retrieve<DD><CODE>positionReturn</CODE> - the array that receives the glyph positions     and is then returned.<DT><B>Returns:</B><DD>an array of glyph positions specified by		<code>beginGlyphIndex</code> and <code>numEntries</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>numEntries</code> is           less than 0<DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>beginGlyphIndex</code>           is less than 0<DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if the sum of            <code>beginGlyphIndex</code> and <code>numEntries</code>            is greater than the number of glyphs in this            <code>GlyphVector</code> plus one</DL></DD></DL><HR><A NAME="getGlyphLogicalBounds(int)"><!-- --></A><H3>getGlyphLogicalBounds</H3><PRE>public abstract <A HREF="../../../java/awt/Shape.html">Shape</A> <B>getGlyphLogicalBounds</B>(int&nbsp;glyphIndex)</PRE><DL><DD>Returns the logical bounds of the specified glyph within this   <code>GlyphVector</code>.   These logical bounds have a total of four edges, with two edges   parallel to the baseline under the glyph's transform and the other two   edges are shared with adjacent glyphs if they are present.  This   method is useful for hit-testing of the specified glyph,   positioning of a caret at the leading or trailing edge of a glyph,   and for drawing a highlight region around the specified glyph.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code>   that corresponds to the glyph from which to retrieve its logical   bounds<DT><B>Returns:</B><DD>a <code>Shape</code> that is the logical bounds of the	glyph at the specified <code>glyphIndex</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than or equal to the number            of glyphs in this <code>GlyphVector</code><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphVisualBounds(int)"><CODE>getGlyphVisualBounds(int)</CODE></A></DL></DD></DL><HR><A NAME="getGlyphVisualBounds(int)"><!-- --></A><H3>getGlyphVisualBounds</H3><PRE>public abstract <A HREF="../../../java/awt/Shape.html">Shape</A> <B>getGlyphVisualBounds</B>(int&nbsp;glyphIndex)</PRE><DL><DD>Returns the visual bounds of the specified glyph within the 	<code>GlyphVector</code>.   These visual bounds have a total of four edges, representing the   tightest polygon enclosing non-background pixels in the rendered   representation of the glyph whose edges are parallel to the edges   of the logical bounds.  Useful for hit-testing of the specified glyph.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code>   that corresponds to the glyph from which to retrieve its visual   bounds<DT><B>Returns:</B><DD>a <code>Shape</code> that is the visual bounds of the 	glyph at the specified <code>glyphIndex</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than or equal to the number            of glyphs in this <code>GlyphVector</code><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphLogicalBounds(int)"><CODE>getGlyphLogicalBounds(int)</CODE></A></DL></DD></DL><HR><A NAME="getGlyphMetrics(int)"><!-- --></A><H3>getGlyphMetrics</H3><PRE>public abstract <A HREF="../../../java/awt/font/GlyphMetrics.html">GlyphMetrics</A> <B>getGlyphMetrics</B>(int&nbsp;glyphIndex)</PRE><DL><DD>Returns the metrics of the glyph at the specified index into	this <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code>   that corresponds to the glyph from which to retrieve its metrics<DT><B>Returns:</B><DD>a <A HREF="../../../java/awt/font/GlyphMetrics.html"><CODE>GlyphMetrics</CODE></A> object that represents the	metrics of the glyph at the specified <code>glyphIndex</code> 	into this <code>GlyphVector</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than or equal to the number            of glyphs in this <code>GlyphVector</code></DL></DD></DL><HR><A NAME="getGlyphJustificationInfo(int)"><!-- --></A><H3>getGlyphJustificationInfo</H3><PRE>public abstract <A HREF="../../../java/awt/font/GlyphJustificationInfo.html">GlyphJustificationInfo</A> <B>getGlyphJustificationInfo</B>(int&nbsp;glyphIndex)</PRE><DL><DD>Returns the justification information for the glyph at   the specified index into this <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>glyphIndex</CODE> - the index into this <code>GlyphVector</code>	that corresponds to the glyph from which to retrieve its 	justification properties<DT><B>Returns:</B><DD>a <A HREF="../../../java/awt/font/GlyphJustificationInfo.html"><CODE>GlyphJustificationInfo</CODE></A> object that	represents the justification properties of the glyph at the	specified <code>glyphIndex</code> into this	<code>GlyphVector</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if <code>glyphIndex</code>           is less than 0 or greater than or equal to the number            of glyphs in this <code>GlyphVector</code></DL></DD></DL><HR><A NAME="equals(java.awt.font.GlyphVector)"><!-- --></A><H3>equals</H3><PRE>public abstract boolean <B>equals</B>(<A HREF="../../../java/awt/font/GlyphVector.html">GlyphVector</A>&nbsp;set)</PRE><DL><DD>Tests if the specified <code>GlyphVector</code> exactly	equals this <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>set</CODE> - the specified <code>GlyphVector</code> to test<DT><B>Returns:</B><DD><code>true</code> if the specified	<code>GlyphVector</code> equals this <code>GlyphVector</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/GlyphVector.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/GlyphMetrics.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/font/GraphicAttribute.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="GlyphVector.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;FIELD&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 + -
显示快捷键?