public class FOPGVTGlyphVector
extends java.lang.Object
implements org.apache.batik.gvt.font.GVTGlyphVector
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
associations |
protected java.awt.geom.Rectangle2D[] |
boundingBoxes |
protected FOPGVTFont |
font |
protected int[] |
glyphs |
protected java.awt.geom.AffineTransform[] |
glyphTransforms |
protected boolean[] |
glyphVisibilities |
protected int[][] |
gposAdjustments |
protected java.awt.geom.Rectangle2D |
logicalBounds |
protected java.awt.geom.GeneralPath |
outline |
protected float[] |
positions |
protected TextFragment |
text |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D graphics2d,
java.text.AttributedCharacterIterator aci) |
java.awt.geom.Rectangle2D |
getBounds2D(java.text.AttributedCharacterIterator aci) |
int |
getCharacterCount(int startGlyphIndex,
int endGlyphIndex) |
org.apache.batik.gvt.font.GVTFont |
getFont() |
java.awt.font.FontRenderContext |
getFontRenderContext() |
java.awt.geom.Rectangle2D |
getGeometricBounds() |
java.awt.geom.Rectangle2D |
getGlyphCellBounds(int glyphIndex) |
int |
getGlyphCode(int glyphIndex) |
int[] |
getGlyphCodes(int beginGlyphIndex,
int numEntries,
int[] codeReturn) |
java.awt.font.GlyphJustificationInfo |
getGlyphJustificationInfo(int glyphIndex) |
java.awt.Shape |
getGlyphLogicalBounds(int glyphIndex) |
org.apache.batik.gvt.font.GVTGlyphMetrics |
getGlyphMetrics(int glyphIndex) |
java.awt.Shape |
getGlyphOutline(int glyphIndex) |
java.awt.geom.Point2D |
getGlyphPosition(int glyphIndex) |
int[][] |
getGlyphPositionAdjustments() |
float[] |
getGlyphPositions(int beginGlyphIndex,
int numEntries,
float[] positionReturn) |
java.awt.geom.AffineTransform |
getGlyphTransform(int glyphIndex) |
java.awt.Shape |
getGlyphVisualBounds(int glyphIndex) |
java.awt.geom.Rectangle2D |
getLogicalBounds() |
int |
getNumGlyphs() |
java.awt.Shape |
getOutline() |
java.awt.Shape |
getOutline(float x,
float y) |
boolean |
isGlyphVisible(int glyphIndex) |
boolean |
isReversed() |
void |
maybeReverse(boolean mirror) |
void |
performDefaultLayout() |
void |
setGlyphCode(int glyphIndex,
int glyphCode) |
void |
setGlyphPosition(int glyphIndex,
java.awt.geom.Point2D newPos) |
void |
setGlyphTransform(int glyphIndex,
java.awt.geom.AffineTransform newTX) |
void |
setGlyphVisible(int glyphIndex,
boolean visible) |
protected final TextFragment text
protected final FOPGVTFont font
protected int[] glyphs
protected java.util.List associations
protected int[][] gposAdjustments
protected float[] positions
protected java.awt.geom.Rectangle2D[] boundingBoxes
protected java.awt.geom.GeneralPath outline
protected java.awt.geom.AffineTransform[] glyphTransforms
protected boolean[] glyphVisibilities
protected java.awt.geom.Rectangle2D logicalBounds
public void performDefaultLayout()
performDefaultLayout in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic org.apache.batik.gvt.font.GVTFont getFont()
getFont in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.font.FontRenderContext getFontRenderContext()
getFontRenderContext in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic void setGlyphCode(int glyphIndex,
int glyphCode)
public int getGlyphCode(int glyphIndex)
getGlyphCode in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic int[] getGlyphCodes(int beginGlyphIndex,
int numEntries,
int[] codeReturn)
getGlyphCodes in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.font.GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)
getGlyphJustificationInfo in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.Shape getGlyphLogicalBounds(int glyphIndex)
getGlyphLogicalBounds in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic org.apache.batik.gvt.font.GVTGlyphMetrics getGlyphMetrics(int glyphIndex)
getGlyphMetrics in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.Shape getGlyphOutline(int glyphIndex)
getGlyphOutline in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.geom.Rectangle2D getGlyphCellBounds(int glyphIndex)
getGlyphCellBounds in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic int[][] getGlyphPositionAdjustments()
public java.awt.geom.Point2D getGlyphPosition(int glyphIndex)
getGlyphPosition in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic float[] getGlyphPositions(int beginGlyphIndex,
int numEntries,
float[] positionReturn)
getGlyphPositions in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.geom.AffineTransform getGlyphTransform(int glyphIndex)
getGlyphTransform in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.Shape getGlyphVisualBounds(int glyphIndex)
getGlyphVisualBounds in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.geom.Rectangle2D getLogicalBounds()
getLogicalBounds in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic int getNumGlyphs()
getNumGlyphs in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.Shape getOutline()
getOutline in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.Shape getOutline(float x,
float y)
getOutline in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.geom.Rectangle2D getGeometricBounds()
getGeometricBounds in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic java.awt.geom.Rectangle2D getBounds2D(java.text.AttributedCharacterIterator aci)
getBounds2D in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic void setGlyphPosition(int glyphIndex,
java.awt.geom.Point2D newPos)
setGlyphPosition in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic void setGlyphTransform(int glyphIndex,
java.awt.geom.AffineTransform newTX)
setGlyphTransform in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic void setGlyphVisible(int glyphIndex,
boolean visible)
setGlyphVisible in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic boolean isGlyphVisible(int glyphIndex)
isGlyphVisible in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic int getCharacterCount(int startGlyphIndex,
int endGlyphIndex)
getCharacterCount in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic boolean isReversed()
isReversed in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic void maybeReverse(boolean mirror)
maybeReverse in interface org.apache.batik.gvt.font.GVTGlyphVectorpublic void draw(java.awt.Graphics2D graphics2d,
java.text.AttributedCharacterIterator aci)
draw in interface org.apache.batik.gvt.font.GVTGlyphVectorCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.