| java.lang.Object java.awt.font.GlyphVector org.apache.harmony.awt.gl.font.CommonGlyphVector
CommonGlyphVector | public class CommonGlyphVector extends GlyphVector (Code) | | GlyphVector implementation
|
Constructor Summary | |
public | CommonGlyphVector(char[] chars, FontRenderContext frc, Font fnt, int flags) Creates new CommonGlyphVector object from the specified parameters. | public | CommonGlyphVector(char[] chars, FontRenderContext frc, Font fnt) Creates new CommonGlyphVector object from the specified parameters. | public | CommonGlyphVector(String str, FontRenderContext frc, Font fnt) Creates new CommonGlyphVector object from the specified parameters. | public | CommonGlyphVector(String str, FontRenderContext frc, Font fnt, int flags) Creates new CommonGlyphVector object from the specified parameters. |
Method Summary | |
public boolean | equals(GlyphVector glyphVector) Checks whether given GlyphVector equals to this GlyphVector. | public char | getChar(int index) Returns char with the specified index. | public Font | getFont() | public FontRenderContext | getFontRenderContext() Returns the FontRenderContext parameter of this GlyphVector. | public char | getGlyphChar(int glyphIndex) Returns a character value of the specified glyph. | public int | getGlyphCharIndex(int glyphIndex) Returns character index of the specified glyph. | public int[] | getGlyphCharIndices(int beginGlyphIndex, int numEntries, int[] codeReturn) Returns an array of numEntries character indices for the specified glyphs. | public int | getGlyphCode(int glyphIndex) Returns glyph code of the specified glyph. | public int[] | getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn) Returns an array of glyphcodes for the specified glyphs. | public GlyphJustificationInfo | getGlyphJustificationInfo(int glyphIndex) Returns a justification information for the glyph with specified glyph
index. | public Shape | getGlyphLogicalBounds(int glyphIndex) Returns the logical bounds of the specified glyph within this CommonGlyphVector. | public GlyphMetrics | getGlyphMetrics(int glyphIndex) Returns the metrics of the specified glyph. | public Shape | getGlyphOutline(int glyphIndex) Returns a Shape that encloses specified glyph. | public Rectangle | getGlyphPixelBounds(int glyphIndex, FontRenderContext frc, float x, float y) Returnes the pixel bounds of the specified glyph within GlyphVector
rendered at the specified x,y location. | public Point2D | getGlyphPosition(int glyphIndex) | public float[] | getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn) Returns an array of numEntries glyphs positions from beginGlyphIndex
glyph in Glyph Vector. | public AffineTransform | getGlyphTransform(int glyphIndex) Returns the affine transform of the specified glyph. | public Shape | getGlyphVisualBounds(int glyphIndex) Returns the visual bounds of the specified glyph. | public int | getLayoutFlags() Returns flags describing the state of the GlyphVector. | public Rectangle2D | getLogicalBounds() | public int | getNumGlyphs() | public Shape | getOutline(float x, float y) Returns a Shape that is the outline representation of this GlyphVector
rendered at the specified x,y coordinates. | public Shape | getOutline() Returns a Shape that is the outline representation of this GlyphVector. | public Rectangle | getPixelBounds(FontRenderContext frc, float x, float y) Returnes the pixel bounds of this GlyphVector rendered at the
specified x,y location with the given FontRenderContext. | public Rectangle2D | getVisualBounds() Returns the visual bounds of this GlyphVector. | public void | performDefaultLayout() Assigns default positions to each glyph in this GlyphVector. | void | setDefaultPositions() Set array of logical positions of the glyphs to
default with their default advances and height. | public void | setGlyphPosition(int glyphIndex, Point2D newPos) Sets new position to the specified glyph. | public void | setGlyphPositions(int beginGlyphIndex, int numEntries, float[] setPositions) Set numEntries elements of the visualPositions array from beginGlyphIndex
of numEntries glyphs positions from beginGlyphIndex glyph in Glyph Vector. | public void | setGlyphPositions(float[] setPositions) Set elements of the visualPositions array. | public void | setGlyphTransform(int glyphIndex, AffineTransform trans) Sets new transform to the specified glyph. |
charVector | public char[] charVector(Code) | | |
defaultPositions | float[] defaultPositions(Code) | | |
layoutFlags | protected int layoutFlags(Code) | | |
logicalPositions | float[] logicalPositions(Code) | | |
visualPositions | public float[] visualPositions(Code) | | |
CommonGlyphVector | public CommonGlyphVector(char[] chars, FontRenderContext frc, Font fnt, int flags)(Code) | | Creates new CommonGlyphVector object from the specified parameters.
Parameters: chars - an array of chars Parameters: frc - FontRenderContext object Parameters: fnt - Font object Parameters: flags - layout flags |
CommonGlyphVector | public CommonGlyphVector(char[] chars, FontRenderContext frc, Font fnt)(Code) | | Creates new CommonGlyphVector object from the specified parameters.
Layout flags set to default.
Parameters: chars - an array of chars Parameters: frc - FontRenderContext object Parameters: fnt - Font object |
CommonGlyphVector | public CommonGlyphVector(String str, FontRenderContext frc, Font fnt)(Code) | | Creates new CommonGlyphVector object from the specified parameters.
Layout flags set to default.
Parameters: str - specified string Parameters: frc - FontRenderContext object Parameters: fnt - Font object |
CommonGlyphVector | public CommonGlyphVector(String str, FontRenderContext frc, Font fnt, int flags)(Code) | | Creates new CommonGlyphVector object from the specified parameters.
Parameters: str - specified string Parameters: frc - FontRenderContext object Parameters: fnt - Font object Parameters: flags - layout flags |
equals | public boolean equals(GlyphVector glyphVector)(Code) | | Checks whether given GlyphVector equals to this GlyphVector.
Parameters: glyphVector - GlyphVector object to compare |
getChar | public char getChar(int index)(Code) | | Returns char with the specified index.
Parameters: index - specified index of the char |
getFont | public Font getFont()(Code) | | Returns the Font parameter of this GlyphVector
|
getFontRenderContext | public FontRenderContext getFontRenderContext()(Code) | | Returns the FontRenderContext parameter of this GlyphVector.
|
getGlyphChar | public char getGlyphChar(int glyphIndex)(Code) | | Returns a character value of the specified glyph.
Parameters: glyphIndex - specified index of the glyph |
getGlyphCharIndex | public int getGlyphCharIndex(int glyphIndex)(Code) | | Returns character index of the specified glyph.
Parameters: glyphIndex - specified index of the glyph |
getGlyphCharIndices | public int[] getGlyphCharIndices(int beginGlyphIndex, int numEntries, int[] codeReturn)(Code) | | Returns an array of numEntries character indices for the specified glyphs.
Parameters: beginGlyphIndex - the start index Parameters: numEntries - the number of glyph codes to get Parameters: codeReturn - the array that receives glyph codes' values an array that receives glyph char indices |
getGlyphCode | public int getGlyphCode(int glyphIndex)(Code) | | Returns glyph code of the specified glyph.
Parameters: glyphIndex - specified index of the glyph |
getGlyphCodes | public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)(Code) | | Returns an array of glyphcodes for the specified glyphs.
Parameters: beginGlyphIndex - the start index Parameters: numEntries - the number of glyph codes to get Parameters: codeReturn - the array that receives glyph codes' values an array that receives glyph codes' values |
getGlyphJustificationInfo | public GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)(Code) | | Returns a justification information for the glyph with specified glyph
index.
Parameters: glyphIndex - index of a glyph which GlyphJustificationInfo is to be received a GlyphJustificationInfo object that contains glyph justification properties of the specified glyph |
getGlyphLogicalBounds | public Shape getGlyphLogicalBounds(int glyphIndex)(Code) | | Returns the logical bounds of the specified glyph within this CommonGlyphVector.
Parameters: glyphIndex - index of the glyph to get it's logical bounds logical bounds of the specified glyph |
getGlyphMetrics | public GlyphMetrics getGlyphMetrics(int glyphIndex)(Code) | | Returns the metrics of the specified glyph.
Parameters: glyphIndex - specified index of the glyph |
getGlyphOutline | public Shape getGlyphOutline(int glyphIndex)(Code) | | Returns a Shape that encloses specified glyph.
Parameters: glyphIndex - specified index of the glyph |
getGlyphPixelBounds | public Rectangle getGlyphPixelBounds(int glyphIndex, FontRenderContext frc, float x, float y)(Code) | | Returnes the pixel bounds of the specified glyph within GlyphVector
rendered at the specified x,y location.
Parameters: glyphIndex - index of the glyph Parameters: frc - a FontRenderContext that is used Parameters: x - specified x coordinate value Parameters: y - specified y coordinate value a Rectangle that bounds pixels of the specified glyph |
getGlyphPosition | public Point2D getGlyphPosition(int glyphIndex)(Code) | | Returns the position of the specified glyph relative to the origin of
this GlyphVector
a Point2D that the origin of the glyph with specified index |
getGlyphPositions | public float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)(Code) | | Returns an array of numEntries glyphs positions from beginGlyphIndex
glyph in Glyph Vector.
Parameters: beginGlyphIndex - the start index Parameters: numEntries - the number of glyph codes to get Parameters: positionReturn - the array that receives glyphs' positions an array of floats that receives glyph char indices |
getGlyphTransform | public AffineTransform getGlyphTransform(int glyphIndex)(Code) | | Returns the affine transform of the specified glyph.
Parameters: glyphIndex - specified index of the glyph an AffineTransform of the glyph with specified index |
getGlyphVisualBounds | public Shape getGlyphVisualBounds(int glyphIndex)(Code) | | Returns the visual bounds of the specified glyph.
Parameters: glyphIndex - specified index of the glyph |
getLayoutFlags | public int getLayoutFlags()(Code) | | Returns flags describing the state of the GlyphVector.
|
getLogicalBounds | public Rectangle2D getLogicalBounds()(Code) | | Returns the logical bounds of this GlyphVector
|
getNumGlyphs | public int getNumGlyphs()(Code) | | Returns the number of glyphs in this Glyph Vector
|
getOutline | public Shape getOutline(float x, float y)(Code) | | Returns a Shape that is the outline representation of this GlyphVector
rendered at the specified x,y coordinates.
Parameters: x - specified x coordinate value Parameters: y - specified y coordinate value a Shape object that is the outline of this GlyphVectorat the specified coordinates. |
getOutline | public Shape getOutline()(Code) | | Returns a Shape that is the outline representation of this GlyphVector.
a Shape object that is the outline of this GlyphVector |
getPixelBounds | public Rectangle getPixelBounds(FontRenderContext frc, float x, float y)(Code) | | Returnes the pixel bounds of this GlyphVector rendered at the
specified x,y location with the given FontRenderContext.
Parameters: frc - a FontRenderContext that is used Parameters: x - specified x coordinate value Parameters: y - specified y coordinate value a Rectangle that bounds pixels of this GlyphVector |
getVisualBounds | public Rectangle2D getVisualBounds()(Code) | | Returns the visual bounds of this GlyphVector.
The visual bounds is the bounds of the total outline of
this GlyphVector.
a Rectangle2D that id the visual bounds of this GlyphVector |
performDefaultLayout | public void performDefaultLayout()(Code) | | Assigns default positions to each glyph in this GlyphVector.
|
setDefaultPositions | void setDefaultPositions()(Code) | | Set array of logical positions of the glyphs to
default with their default advances and height.
|
setGlyphPosition | public void setGlyphPosition(int glyphIndex, Point2D newPos)(Code) | | Sets new position to the specified glyph.
|
setGlyphPositions | public void setGlyphPositions(int beginGlyphIndex, int numEntries, float[] setPositions)(Code) | | Set numEntries elements of the visualPositions array from beginGlyphIndex
of numEntries glyphs positions from beginGlyphIndex glyph in Glyph Vector.
Parameters: beginGlyphIndex - the start index Parameters: numEntries - the number of glyph codes to get Parameters: setPositions - the array of positions to set |
setGlyphPositions | public void setGlyphPositions(float[] setPositions)(Code) | | Set elements of the visualPositions array.
Parameters: setPositions - the array of positions to set |
setGlyphTransform | public void setGlyphTransform(int glyphIndex, AffineTransform trans)(Code) | | Sets new transform to the specified glyph.
Parameters: glyphIndex - specified index of the glyph Parameters: trans - AffineTransform of the glyph with specified index |
Methods inherited from java.awt.font.GlyphVector | abstract public boolean equals(GlyphVector set)(Code)(Java Doc) abstract public Font getFont()(Code)(Java Doc) abstract public FontRenderContext getFontRenderContext()(Code)(Java Doc) public int getGlyphCharIndex(int glyphIndex)(Code)(Java Doc) public int[] getGlyphCharIndices(int beginGlyphIndex, int numEntries, int[] codeReturn)(Code)(Java Doc) abstract public int getGlyphCode(int glyphIndex)(Code)(Java Doc) abstract public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)(Code)(Java Doc) abstract public GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)(Code)(Java Doc) abstract public Shape getGlyphLogicalBounds(int glyphIndex)(Code)(Java Doc) abstract public GlyphMetrics getGlyphMetrics(int glyphIndex)(Code)(Java Doc) abstract public Shape getGlyphOutline(int glyphIndex)(Code)(Java Doc) public Shape getGlyphOutline(int glyphIndex, float x, float y)(Code)(Java Doc) public Rectangle getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)(Code)(Java Doc) abstract public Point2D getGlyphPosition(int glyphIndex)(Code)(Java Doc) abstract public float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)(Code)(Java Doc) abstract public AffineTransform getGlyphTransform(int glyphIndex)(Code)(Java Doc) abstract public Shape getGlyphVisualBounds(int glyphIndex)(Code)(Java Doc) public int getLayoutFlags()(Code)(Java Doc) abstract public Rectangle2D getLogicalBounds()(Code)(Java Doc) abstract public int getNumGlyphs()(Code)(Java Doc) abstract public Shape getOutline()(Code)(Java Doc) abstract public Shape getOutline(float x, float y)(Code)(Java Doc) public Rectangle getPixelBounds(FontRenderContext renderFRC, float x, float y)(Code)(Java Doc) abstract public Rectangle2D getVisualBounds()(Code)(Java Doc) abstract public void performDefaultLayout()(Code)(Java Doc) abstract public void setGlyphPosition(int glyphIndex, Point2D newPos)(Code)(Java Doc) abstract public void setGlyphTransform(int glyphIndex, AffineTransform newTX)(Code)(Java Doc)
|
|
|