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.Listassociationsprotected java.awt.geom.Rectangle2D[]boundingBoxesprotected FOPGVTFontfontprotected int[]glyphsprotected java.awt.geom.AffineTransform[]glyphTransformsprotected boolean[]glyphVisibilitiesprotected int[][]gposAdjustmentsprotected java.awt.geom.Rectangle2DlogicalBoundsprotected java.awt.geom.GeneralPathoutlineprotected float[]positionsprotected TextFragmenttext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(java.awt.Graphics2D graphics2d, java.text.AttributedCharacterIterator aci)java.awt.geom.Rectangle2DgetBounds2D(java.text.AttributedCharacterIterator aci)intgetCharacterCount(int startGlyphIndex, int endGlyphIndex)org.apache.batik.gvt.font.GVTFontgetFont()java.awt.font.FontRenderContextgetFontRenderContext()java.awt.geom.Rectangle2DgetGeometricBounds()java.awt.geom.Rectangle2DgetGlyphCellBounds(int glyphIndex)intgetGlyphCode(int glyphIndex)int[]getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)java.awt.font.GlyphJustificationInfogetGlyphJustificationInfo(int glyphIndex)java.awt.ShapegetGlyphLogicalBounds(int glyphIndex)org.apache.batik.gvt.font.GVTGlyphMetricsgetGlyphMetrics(int glyphIndex)java.awt.ShapegetGlyphOutline(int glyphIndex)java.awt.geom.Point2DgetGlyphPosition(int glyphIndex)int[][]getGlyphPositionAdjustments()float[]getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)java.awt.geom.AffineTransformgetGlyphTransform(int glyphIndex)java.awt.ShapegetGlyphVisualBounds(int glyphIndex)java.awt.geom.Rectangle2DgetLogicalBounds()intgetNumGlyphs()java.awt.ShapegetOutline()java.awt.ShapegetOutline(float x, float y)booleanisGlyphVisible(int glyphIndex)booleanisReversed()voidmaybeReverse(boolean mirror)voidperformDefaultLayout()voidsetGlyphCode(int glyphIndex, int glyphCode)voidsetGlyphPosition(int glyphIndex, java.awt.geom.Point2D newPos)voidsetGlyphTransform(int glyphIndex, java.awt.geom.AffineTransform newTX)voidsetGlyphVisible(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:
performDefaultLayoutin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getFont
public org.apache.batik.gvt.font.GVTFont getFont()
- Specified by:
getFontin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getFontRenderContext
public java.awt.font.FontRenderContext getFontRenderContext()
- Specified by:
getFontRenderContextin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphCode
public void setGlyphCode(int glyphIndex, int glyphCode)
-
getGlyphCode
public int getGlyphCode(int glyphIndex)
- Specified by:
getGlyphCodein interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphCodes
public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)- Specified by:
getGlyphCodesin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphJustificationInfo
public java.awt.font.GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)
- Specified by:
getGlyphJustificationInfoin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphLogicalBounds
public java.awt.Shape getGlyphLogicalBounds(int glyphIndex)
- Specified by:
getGlyphLogicalBoundsin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphMetrics
public org.apache.batik.gvt.font.GVTGlyphMetrics getGlyphMetrics(int glyphIndex)
- Specified by:
getGlyphMetricsin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphOutline
public java.awt.Shape getGlyphOutline(int glyphIndex)
- Specified by:
getGlyphOutlinein interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphCellBounds
public java.awt.geom.Rectangle2D getGlyphCellBounds(int glyphIndex)
- Specified by:
getGlyphCellBoundsin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphPositionAdjustments
public int[][] getGlyphPositionAdjustments()
-
getGlyphPosition
public java.awt.geom.Point2D getGlyphPosition(int glyphIndex)
- Specified by:
getGlyphPositionin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphPositions
public float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)- Specified by:
getGlyphPositionsin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphTransform
public java.awt.geom.AffineTransform getGlyphTransform(int glyphIndex)
- Specified by:
getGlyphTransformin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphVisualBounds
public java.awt.Shape getGlyphVisualBounds(int glyphIndex)
- Specified by:
getGlyphVisualBoundsin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getLogicalBounds
public java.awt.geom.Rectangle2D getLogicalBounds()
- Specified by:
getLogicalBoundsin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getNumGlyphs
public int getNumGlyphs()
- Specified by:
getNumGlyphsin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getOutline
public java.awt.Shape getOutline()
- Specified by:
getOutlinein interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getOutline
public java.awt.Shape getOutline(float x, float y)- Specified by:
getOutlinein interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGeometricBounds
public java.awt.geom.Rectangle2D getGeometricBounds()
- Specified by:
getGeometricBoundsin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.text.AttributedCharacterIterator aci)
- Specified by:
getBounds2Din interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphPosition
public void setGlyphPosition(int glyphIndex, java.awt.geom.Point2D newPos)- Specified by:
setGlyphPositionin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphTransform
public void setGlyphTransform(int glyphIndex, java.awt.geom.AffineTransform newTX)- Specified by:
setGlyphTransformin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphVisible
public void setGlyphVisible(int glyphIndex, boolean visible)- Specified by:
setGlyphVisiblein interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
isGlyphVisible
public boolean isGlyphVisible(int glyphIndex)
- Specified by:
isGlyphVisiblein interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getCharacterCount
public int getCharacterCount(int startGlyphIndex, int endGlyphIndex)- Specified by:
getCharacterCountin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
isReversed
public boolean isReversed()
- Specified by:
isReversedin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
maybeReverse
public void maybeReverse(boolean mirror)
- Specified by:
maybeReversein interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
draw
public void draw(java.awt.Graphics2D graphics2d, java.text.AttributedCharacterIterator aci)- Specified by:
drawin interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
-