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 Object
      implements org.apache.batik.gvt.font.GVTGlyphVector

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected List` | `associations`
    `protected Rectangle2D[]` | `boundingBoxes`
    `protected FOPGVTFont` | `font`
    `protected int[]` | `glyphs`
    `protected AffineTransform[]` | `glyphTransforms`
    `protected boolean[]` | `glyphVisibilities`
    `protected int[][]` | `gposAdjustments`
    `protected Rectangle2D` | `logicalBounds`
    `protected GeneralPath` | `outline`
    `protected float[]` | `positions`
    `protected TextFragment` | `text`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `draw(Graphics2D graphics2d, AttributedCharacterIterator aci)`
    `Rectangle2D` | `getBounds2D(AttributedCharacterIterator aci)`
    `int` | `getCharacterCount(int startGlyphIndex, int endGlyphIndex)`
    `org.apache.batik.gvt.font.GVTFont` | `getFont()`
    `FontRenderContext` | `getFontRenderContext()`
    `Rectangle2D` | `getGeometricBounds()`
    `Rectangle2D` | `getGlyphCellBounds(int glyphIndex)`
    `int` | `getGlyphCode(int glyphIndex)`
    `int[]` | `getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)`
    `GlyphJustificationInfo` | `getGlyphJustificationInfo(int glyphIndex)`
    `Shape` | `getGlyphLogicalBounds(int glyphIndex)`
    `org.apache.batik.gvt.font.GVTGlyphMetrics` | `getGlyphMetrics(int glyphIndex)`
    `Shape` | `getGlyphOutline(int glyphIndex)`
    `Point2D` | `getGlyphPosition(int glyphIndex)`
    `int[][]` | `getGlyphPositionAdjustments()`
    `float[]` | `getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)`
    `AffineTransform` | `getGlyphTransform(int glyphIndex)`
    `Shape` | `getGlyphVisualBounds(int glyphIndex)`
    `Rectangle2D` | `getLogicalBounds()`
    `int` | `getNumGlyphs()`
    `Shape` | `getOutline()`
    `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, Point2D newPos)`
    `void` | `setGlyphTransform(int glyphIndex, AffineTransform newTX)`
    `void` | `setGlyphVisible(int glyphIndex, boolean visible)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### 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 Detail

    - #### 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`

Copyright © 2023 Apache Software Foundation. All rights reserved.