Package org.apache.fop.svg.font
Class FOPGVTGlyphVector
- java.lang.Object
-
- org.apache.fop.svg.font.FOPGVTGlyphVector
-
- All Implemented Interfaces:
org.apache.batik.gvt.font.GVTGlyphVector
public class FOPGVTGlyphVector extends java.lang.Object implements org.apache.batik.gvt.font.GVTGlyphVector
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
text
protected final TextFragment text
-
font
protected final FOPGVTFont font
-
glyphs
protected int[] glyphs
-
associations
protected java.util.List associations
-
gposAdjustments
protected int[][] gposAdjustments
-
positions
protected float[] positions
-
boundingBoxes
protected java.awt.geom.Rectangle2D[] boundingBoxes
-
outline
protected java.awt.geom.GeneralPath outline
-
glyphTransforms
protected java.awt.geom.AffineTransform[] glyphTransforms
-
glyphVisibilities
protected boolean[] glyphVisibilities
-
logicalBounds
protected java.awt.geom.Rectangle2D logicalBounds
-
-
Method Detail
-
performDefaultLayout
public void performDefaultLayout()
- Specified by:
performDefaultLayout
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getFont
public org.apache.batik.gvt.font.GVTFont getFont()
- Specified by:
getFont
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getFontRenderContext
public java.awt.font.FontRenderContext getFontRenderContext()
- Specified by:
getFontRenderContext
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphCode
public void setGlyphCode(int glyphIndex, int glyphCode)
-
getGlyphCode
public int getGlyphCode(int glyphIndex)
- Specified by:
getGlyphCode
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphCodes
public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)
- Specified by:
getGlyphCodes
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphJustificationInfo
public java.awt.font.GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)
- Specified by:
getGlyphJustificationInfo
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphLogicalBounds
public java.awt.Shape getGlyphLogicalBounds(int glyphIndex)
- Specified by:
getGlyphLogicalBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphMetrics
public org.apache.batik.gvt.font.GVTGlyphMetrics getGlyphMetrics(int glyphIndex)
- Specified by:
getGlyphMetrics
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphOutline
public java.awt.Shape getGlyphOutline(int glyphIndex)
- Specified by:
getGlyphOutline
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphCellBounds
public java.awt.geom.Rectangle2D getGlyphCellBounds(int glyphIndex)
- Specified by:
getGlyphCellBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphPositionAdjustments
public int[][] getGlyphPositionAdjustments()
-
getGlyphPosition
public java.awt.geom.Point2D getGlyphPosition(int glyphIndex)
- Specified by:
getGlyphPosition
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphPositions
public float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)
- Specified by:
getGlyphPositions
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphTransform
public java.awt.geom.AffineTransform getGlyphTransform(int glyphIndex)
- Specified by:
getGlyphTransform
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphVisualBounds
public java.awt.Shape getGlyphVisualBounds(int glyphIndex)
- Specified by:
getGlyphVisualBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getLogicalBounds
public java.awt.geom.Rectangle2D getLogicalBounds()
- Specified by:
getLogicalBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getNumGlyphs
public int getNumGlyphs()
- Specified by:
getNumGlyphs
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getOutline
public java.awt.Shape getOutline()
- Specified by:
getOutline
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getOutline
public java.awt.Shape getOutline(float x, float y)
- Specified by:
getOutline
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGeometricBounds
public java.awt.geom.Rectangle2D getGeometricBounds()
- Specified by:
getGeometricBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.text.AttributedCharacterIterator aci)
- Specified by:
getBounds2D
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphPosition
public void setGlyphPosition(int glyphIndex, java.awt.geom.Point2D newPos)
- Specified by:
setGlyphPosition
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphTransform
public void setGlyphTransform(int glyphIndex, java.awt.geom.AffineTransform newTX)
- Specified by:
setGlyphTransform
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphVisible
public void setGlyphVisible(int glyphIndex, boolean visible)
- Specified by:
setGlyphVisible
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
isGlyphVisible
public boolean isGlyphVisible(int glyphIndex)
- Specified by:
isGlyphVisible
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getCharacterCount
public int getCharacterCount(int startGlyphIndex, int endGlyphIndex)
- Specified by:
getCharacterCount
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
isReversed
public boolean isReversed()
- Specified by:
isReversed
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
maybeReverse
public void maybeReverse(boolean mirror)
- Specified by:
maybeReverse
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
draw
public void draw(java.awt.Graphics2D graphics2d, java.text.AttributedCharacterIterator aci)
- Specified by:
draw
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
-