Class FOPGVTGlyphVector

java.lang.Object
org.apache.fop.svg.font.FOPGVTGlyphVector
All Implemented Interfaces:
org.apache.batik.gvt.font.GVTGlyphVector

public class FOPGVTGlyphVector extends Object implements org.apache.batik.gvt.font.GVTGlyphVector
  • Field Details

    • text

      protected final TextFragment text
    • font

      protected final FOPGVTFont font
    • glyphs

      protected int[] glyphs
    • associations

      protected List associations
    • gposAdjustments

      protected int[][] gposAdjustments
    • positions

      protected float[] positions
    • boundingBoxes

      protected Rectangle2D[] boundingBoxes
    • outline

      protected GeneralPath outline
    • glyphTransforms

      protected AffineTransform[] glyphTransforms
    • glyphVisibilities

      protected boolean[] glyphVisibilities
    • logicalBounds

      protected Rectangle2D logicalBounds
  • Method Details

    • performDefaultLayout

      public void performDefaultLayout()
      Specified by:
      performDefaultLayout in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getFont

      public org.apache.batik.gvt.font.GVTFont getFont()
      Specified by:
      getFont in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getFontRenderContext

      public FontRenderContext getFontRenderContext()
      Specified by:
      getFontRenderContext in interface org.apache.batik.gvt.font.GVTGlyphVector
    • setGlyphCode

      public void setGlyphCode(int glyphIndex, int glyphCode)
    • getGlyphCode

      public int getGlyphCode(int glyphIndex)
      Specified by:
      getGlyphCode in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphCodes

      public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)
      Specified by:
      getGlyphCodes in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphJustificationInfo

      public GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)
      Specified by:
      getGlyphJustificationInfo in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphLogicalBounds

      public Shape getGlyphLogicalBounds(int glyphIndex)
      Specified by:
      getGlyphLogicalBounds in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphMetrics

      public org.apache.batik.gvt.font.GVTGlyphMetrics getGlyphMetrics(int glyphIndex)
      Specified by:
      getGlyphMetrics in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphOutline

      public Shape getGlyphOutline(int glyphIndex)
      Specified by:
      getGlyphOutline in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphCellBounds

      public Rectangle2D getGlyphCellBounds(int glyphIndex)
      Specified by:
      getGlyphCellBounds in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphPositionAdjustments

      public int[][] getGlyphPositionAdjustments()
    • getGlyphPosition

      public Point2D getGlyphPosition(int glyphIndex)
      Specified by:
      getGlyphPosition in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphPositions

      public float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)
      Specified by:
      getGlyphPositions in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphTransform

      public AffineTransform getGlyphTransform(int glyphIndex)
      Specified by:
      getGlyphTransform in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGlyphVisualBounds

      public Shape getGlyphVisualBounds(int glyphIndex)
      Specified by:
      getGlyphVisualBounds in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getLogicalBounds

      public Rectangle2D getLogicalBounds()
      Specified by:
      getLogicalBounds in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getNumGlyphs

      public int getNumGlyphs()
      Specified by:
      getNumGlyphs in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getOutline

      public Shape getOutline()
      Specified by:
      getOutline in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getOutline

      public Shape getOutline(float x, float y)
      Specified by:
      getOutline in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getGeometricBounds

      public Rectangle2D getGeometricBounds()
      Specified by:
      getGeometricBounds in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getBounds2D

      public Rectangle2D getBounds2D(AttributedCharacterIterator aci)
      Specified by:
      getBounds2D in interface org.apache.batik.gvt.font.GVTGlyphVector
    • setGlyphPosition

      public void setGlyphPosition(int glyphIndex, Point2D newPos)
      Specified by:
      setGlyphPosition in interface org.apache.batik.gvt.font.GVTGlyphVector
    • setGlyphTransform

      public void setGlyphTransform(int glyphIndex, AffineTransform newTX)
      Specified by:
      setGlyphTransform in interface org.apache.batik.gvt.font.GVTGlyphVector
    • setGlyphVisible

      public void setGlyphVisible(int glyphIndex, boolean visible)
      Specified by:
      setGlyphVisible in interface org.apache.batik.gvt.font.GVTGlyphVector
    • isGlyphVisible

      public boolean isGlyphVisible(int glyphIndex)
      Specified by:
      isGlyphVisible in interface org.apache.batik.gvt.font.GVTGlyphVector
    • getCharacterCount

      public int getCharacterCount(int startGlyphIndex, int endGlyphIndex)
      Specified by:
      getCharacterCount in interface org.apache.batik.gvt.font.GVTGlyphVector
    • isReversed

      public boolean isReversed()
      Specified by:
      isReversed in interface org.apache.batik.gvt.font.GVTGlyphVector
    • maybeReverse

      public void maybeReverse(boolean mirror)
      Specified by:
      maybeReverse in interface org.apache.batik.gvt.font.GVTGlyphVector
    • draw

      public void draw(Graphics2D graphics2d, AttributedCharacterIterator aci)
      Specified by:
      draw in interface org.apache.batik.gvt.font.GVTGlyphVector