glyphvector.html

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

HTML
904
字号
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getNumGlyphs()">getNumGlyphs</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of glyphs in this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;<A HREF="../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getOutline()">getOutline</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>Shape</code> whose interior corresponds to the   visual representation of this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;<A HREF="../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getOutline(float, float)">getOutline</A></B>(float&nbsp;x,           float&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>Shape</code> whose interior corresponds to the   visual representation of this <code>GlyphVector</code>, offset   to x,&nbsp;y.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getVisualBounds()">getVisualBounds</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the visual bounds of this <code>GlyphVector</code>   The visual bounds is the tightest rectangle enclosing all   non-background pixels in the rendered representation of this   <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#performDefaultLayout()">performDefaultLayout</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assigns default positions to each glyph in this    <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#setGlyphPosition(int, java.awt.geom.Point2D)">setGlyphPosition</A></B>(int&nbsp;glyphIndex,                 <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;newPos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the position of the specified glyph within this   <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#setGlyphTransform(int, java.awt.geom.AffineTransform)">setGlyphTransform</A></B>(int&nbsp;glyphIndex,                  <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A>&nbsp;newTX)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the transform of the specified glyph within this   <code>GlyphVector</code>.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><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>&nbsp;<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="GlyphVector()"><!-- --></A><H3>GlyphVector</H3><PRE>public <B>GlyphVector</B>()</PRE><DL></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="getFont()"><!-- --></A><H3>getFont</H3><PRE>public abstract <A HREF="../../../java/awt/Font.html">Font</A> <B>getFont</B>()</PRE><DL><DD>Returns the <code>Font</code> associated with this    <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Font.html"><CODE>Font</CODE></A></DL></DD></DL><HR><A NAME="getFontRenderContext()"><!-- --></A><H3>getFontRenderContext</H3><PRE>public abstract <A HREF="../../../java/awt/font/FontRenderContext.html">FontRenderContext</A> <B>getFontRenderContext</B>()</PRE><DL><DD>Returns the <A HREF="../../../java/awt/font/FontRenderContext.html"><CODE>FontRenderContext</CODE></A> associated with this   <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>FontRenderContext</code> used to create this   <code>GlyphVector</code>.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/FontRenderContext.html"><CODE>FontRenderContext</CODE></A>, <A HREF="../../../java/awt/Font.html"><CODE>Font</CODE></A></DL></DD></DL><HR><A NAME="performDefaultLayout()"><!-- --></A><H3>performDefaultLayout</H3><PRE>public abstract void <B>performDefaultLayout</B>()</PRE><DL><DD>Assigns default positions to each glyph in this    <code>GlyphVector</code>.  No shaping, reordering, or contextual   substitution is performed.<DD><DL></DL></DD></DL><HR><A NAME="getNumGlyphs()"><!-- --></A><H3>getNumGlyphs</H3><PRE>public abstract int <B>getNumGlyphs</B>()</PRE><DL><DD>Returns the number of glyphs in this <code>GlyphVector</code>.   This information is used to create arrays that are to be   filled with results of other information retrieval   operations.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>number of glyphs in this <code>GlyphVector</code>.</DL></DD></DL><HR><A NAME="getGlyphCode(int)"><!-- --></A><H3>getGlyphCode</H3><PRE>public abstract int <B>getGlyphCode</B>(int&nbsp;glyphIndex)</PRE><DL><DD>Returns the glyphcode of the specified glyph.   This return value is meaningless to anything other   than a <code>Font</code> object and can be used to ask the    <code>Font</code> object about the existence of ligatures and   other context sensitive information.<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 the    glyphcode.<DT><B>Returns:</B><DD>the glyphcode of the glyph corresponding the 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="getGlyphCodes(int, int, int[])"><!-- --></A><H3>getGlyphCodes</H3><PRE>public abstract int[] <B>getGlyphCodes</B>(int&nbsp;beginGlyphIndex,                                    int&nbsp;numEntries,                                    int[]&nbsp;codeReturn)</PRE><DL><DD>Returns an array of glyphcodes for the specified glyphs.   The contents of this return value are meaningless to anything other   than a <code>Font</code> and can be used to ask the    <code>Font</code> about the existence of ligatures and other   context sensitive information.  This method is used   for convenience and performance when processing glyphcodes.   If no array is passed in, an array is created.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>beginGlyphIndex</CODE> - the index into this   <code>GlyphVector</code> at which to start retrieving glyphcodes   for the corresponding glyphs<DD><CODE>numEntries</CODE> - the number of glyphs to retrieve<DD><CODE>codeReturn</CODE> - the array that receives the glyphcodes and is		then returned<DT><B>Returns:</B><DD>an array of glyphcodes for the specified glyphs.<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></DL></DD></DL><HR><A NAME="getLogicalBounds()"><!-- --></A><H3>getLogicalBounds</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getLogicalBounds</B>()</PRE><DL><DD>Returns the logical bounds of this <code>GlyphVector</code>.   This method is used when positioning this <code>GlyphVector</code>    in relation to visually adjacent <code>GlyphVector</code> objects.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <A HREF="../../../java/awt/geom/Rectangle2D.html"><CODE>Rectangle2D</CODE></A> that is the logical bounds of this   <code>GlyphVector</code>.</DL></DD></DL><HR><A NAME="getVisualBounds()"><!-- --></A><H3>getVisualBounds</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getVisualBounds</B>()</PRE><DL><DD>Returns the visual bounds of this <code>GlyphVector</code>   The visual bounds is the tightest rectangle enclosing all   non-background pixels in the rendered representation of this   <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that is the tightest bounds   of this <code>GlyphVector</code>.</DL></DD></DL><HR><A NAME="getOutline()"><!-- --></A><H3>getOutline</H3><PRE>public abstract <A HREF="../../../java/awt/Shape.html">Shape</A> <B>getOutline</B>()</PRE><DL><DD>Returns a <code>Shape</code> whose interior corresponds to the   visual representation of this <code>GlyphVector</code>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Shape</code> that is the outline of this   <code>GlyphVector</code>.</DL></DD></DL><HR><A NAME="getOutline(float, float)"><!-- --></A><H3>getOutline</H3><PRE>public abstract <A HREF="../../../java/awt/Shape.html">Shape</A> <B>getOutline</B>(float&nbsp;x,                                 float&nbsp;y)</PRE><DL><DD>Returns a <code>Shape</code> whose interior corresponds to the   visual representation of this <code>GlyphVector</code>, offset   to x,&nbsp;y.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x,&nbsp;y</CODE> - the coordinates of the location of the outline		<code>Shape</code><DT><B>Returns:</B><DD>a <code>Shape</code> that is the outline of this           <code>GlyphVector</code>, offset to the specified 		coordinates.</DL></DD></DL><HR><A NAME="getGlyphOutline(int)"><!-- --></A><H3>getGlyphOutline</H3><PRE>public abstract <A HREF="../../../java/awt/Shape.html">Shape</A> <B>getGlyphOutline</B>(int&nbsp;glyphIndex)</PRE><DL><DD>Returns a <code>Shape</code> whose interior corresponds to the

⌨️ 快捷键说明

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