glyphvector.html
来自「API資料大全」· HTML 代码 · 共 904 行 · 第 1/3 页
HTML
904 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:33:32 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class GlyphVector</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 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="class-use/GlyphVector.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/GlyphMetrics.html"><B>PREV CLASS</B></A> <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> <A HREF="GlyphVector.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <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">java.awt.font</FONT><BR>Class GlyphVector</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A> | +--<B>java.awt.font.GlyphVector</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../java/lang/Cloneable.html">Cloneable</A></DD></DL><HR><DL><DT>public abstract class <B>GlyphVector</B><DT>extends <A HREF="../../../java/lang/Object.html">Object</A><DT>implements <A HREF="../../../java/lang/Cloneable.html">Cloneable</A></DL><P>A <code>GlyphVector</code> object is a collection of glyphs containing geometric information for the placement of each glyph in a transformed coordinate space which corresponds to the device on which the <code>GlyphVector</code> is ultimately displayed. <p> The <code>GlyphVector</code> does not attempt any interpretation of the sequence of glyphs it contains. Relationships between adjacent glyphs in sequence are solely used to determine the placement of the glyphs in the visual coordinate space. <p> Instances of <code>GlyphVector</code> are created by a <A HREF="../../../java/awt/Font.html"><CODE>Font</CODE></A>. <p> In a text processing application that can cache intermediate representations of text, creation and subsequent caching of a <code>GlyphVector</code> for use during rendering is the fastest method to present the visual representation of characters to a user. <p> A <code>GlyphVector</code> is associated with exactly one <code>Font</code>, and can provide data useful only in relation to this <code>Font</code>. In addition, metrics obtained from a <code>GlyphVector</code> are not generally geometrically scaleable since the pixelization and spacing are dependent on grid-fitting algorithms within a <code>Font</code>. To facilitate accurate measurement of a <code>GlyphVector</code> and its component glyphs, you must specify a scaling transform, anti-alias mode, and fractional metrics mode when creating the <code>GlyphVector</code>. These characteristics can be derived from the destination device. <p> For each glyph in the <code>GlyphVector</code>, you can obtain: <ul> <li>the position of the glyph <li>the transform associated with the glyph <li>the metrics of the glyph in the context of the <code>GlyphVector</code>. The metrics of the glyph may be different under different transforms, application specified rendering hints, and the specific instance of the glyph within the <code>GlyphVector</code>. </ul> <p> Altering the data used to create the <code>GlyphVector</code> does not alter the state of the <code>GlyphVector</code>. <p> Methods are provided to create new <code>GlyphVector</code> objects which are the result of editing operations on the <code>GlyphVector</code>, such as glyph insertion and deletion. These methods are most appropriate for applications that are forming combinations such as ligatures from existing glyphs or are breaking such combinations into their component parts for visual presentation. <p> Methods are provided to create new <code>GlyphVector</code> objects that are the result of specifying new positions for the glyphs within the <code>GlyphVector</code>. These methods are most appropriate for applications that are performing justification operations for the presentation of the glyphs. <p> Methods are provided to return both the visual and logical bounds of the entire <code>GlyphVector</code> or of individual glyphs within the <code>GlyphVector</code>. <p> Methods are provided to return a <A HREF="../../../java/awt/Shape.html"><CODE>Shape</CODE></A> for the <code>GlyphVector</code>, and for individual glyphs within the <code>GlyphVector</code>.<P><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/Font.html"><CODE>Font</CODE></A>, <A HREF="../../../java/awt/font/GlyphMetrics.html"><CODE>GlyphMetrics</CODE></A>, <A HREF="../../../java/awt/font/TextLayout.html"><CODE>TextLayout</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== 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="../../../java/awt/font/GlyphVector.html#GlyphVector()">GlyphVector</A></B>()</CODE><BR> </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>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#equals(java.awt.font.GlyphVector)">equals</A></B>(<A HREF="../../../java/awt/font/GlyphVector.html">GlyphVector</A> set)</CODE><BR> Tests if the specified <code>GlyphVector</code> exactly equals this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getFont()">getFont</A></B>()</CODE><BR> Returns the <code>Font</code> associated with this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/font/FontRenderContext.html">FontRenderContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getFontRenderContext()">getFontRenderContext</A></B>()</CODE><BR> Returns the <A HREF="../../../java/awt/font/FontRenderContext.html"><CODE>FontRenderContext</CODE></A> associated with this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphCode(int)">getGlyphCode</A></B>(int glyphIndex)</CODE><BR> Returns the glyphcode of the specified glyph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphCodes(int, int, int[])">getGlyphCodes</A></B>(int beginGlyphIndex, int numEntries, int[] codeReturn)</CODE><BR> Returns an array of glyphcodes for the specified glyphs.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/font/GlyphJustificationInfo.html">GlyphJustificationInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphJustificationInfo(int)">getGlyphJustificationInfo</A></B>(int glyphIndex)</CODE><BR> Returns the justification information for the glyph at the specified index into this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphLogicalBounds(int)">getGlyphLogicalBounds</A></B>(int glyphIndex)</CODE><BR> Returns the logical bounds 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 <A HREF="../../../java/awt/font/GlyphMetrics.html">GlyphMetrics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphMetrics(int)">getGlyphMetrics</A></B>(int glyphIndex)</CODE><BR> Returns the metrics of the glyph at the specified index into this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphOutline(int)">getGlyphOutline</A></B>(int glyphIndex)</CODE><BR> Returns a <code>Shape</code> whose interior corresponds to the visual representation 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 <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphPosition(int)">getGlyphPosition</A></B>(int glyphIndex)</CODE><BR> Returns 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 float[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphPositions(int, int, float[])">getGlyphPositions</A></B>(int beginGlyphIndex, int numEntries, float[] positionReturn)</CODE><BR> Returns an array of glyph positions for the specified glyphs.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphTransform(int)">getGlyphTransform</A></B>(int glyphIndex)</CODE><BR> Gets the transform 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 <A HREF="../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getGlyphVisualBounds(int)">getGlyphVisualBounds</A></B>(int glyphIndex)</CODE><BR> Returns the visual bounds of the specified glyph within the <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/font/GlyphVector.html#getLogicalBounds()">getLogicalBounds</A></B>()</CODE><BR> Returns the logical bounds of this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?