Class GlyphGroupInfo

java.lang.Object
org.apache.batik.gvt.flow.GlyphGroupInfo

public class GlyphGroupInfo extends Object
One line Class Desc Complete Class Desc
Version:
$Id: GlyphGroupInfo.java 1808001 2017-09-11 09:51:29Z ssteiner $
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) float
     
    (package private) int
     
    (package private) int
     
    (package private) GVTGlyphVector
     
    (package private) boolean[]
     
    (package private) boolean
     
    (package private) float
     
    (package private) int
     
    (package private) int
     
    (package private) int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GlyphGroupInfo(GVTGlyphVector gv, int start, int end, boolean[] glyphHide, boolean glyphGroupHideLast, float[] glyphPos, float[] advAdj, float[] lastAdvAdj, boolean[] space)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    returns the advance to use when this glyphGroup is not the last glyph group in a span.
    int
    get the end glyph index for this glyph group.
    int
    get the number of glyphs that count when it's not the last in the line (basically end-start+1-sum(hide) ).
    Get the GlyphVector for this GlyphGroup.
    boolean[]
     
    boolean
    return true if 'end' glyph should be hidden in cases where this is not the last glyph group in a span
    float
    returns the advance to use when this glyphGroup is the last glyph group in a span.
    int
    get the number of glyphs that 'cout' when it is the last in the line.
    int
     
    int
    get the start glyph index for this glyph group.
    void
    setRange(int range)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • start

      int start
    • end

      int end
    • glyphCount

      int glyphCount
    • lastGlyphCount

      int lastGlyphCount
    • hideLast

      boolean hideLast
    • advance

      float advance
    • lastAdvance

      float lastAdvance
    • range

      int range
    • gv

    • hide

      boolean[] hide
  • Constructor Details

    • GlyphGroupInfo

      public GlyphGroupInfo(GVTGlyphVector gv, int start, int end, boolean[] glyphHide, boolean glyphGroupHideLast, float[] glyphPos, float[] advAdj, float[] lastAdvAdj, boolean[] space)
  • Method Details

    • getGlyphVector

      public GVTGlyphVector getGlyphVector()
      Get the GlyphVector for this GlyphGroup.
    • getStart

      public int getStart()
      get the start glyph index for this glyph group.
    • getEnd

      public int getEnd()
      get the end glyph index for this glyph group.
    • getGlyphCount

      public int getGlyphCount()
      get the number of glyphs that count when it's not the last in the line (basically end-start+1-sum(hide) ).
    • getLastGlyphCount

      public int getLastGlyphCount()
      get the number of glyphs that 'cout' when it is the last in the line. This is glyphCount minus any trailing spaces, and minus the last glyph if hideLast is true.
    • getHide

      public boolean[] getHide()
    • getHideLast

      public boolean getHideLast()
      return true if 'end' glyph should be hidden in cases where this is not the last glyph group in a span
    • getAdvance

      public float getAdvance()
      returns the advance to use when this glyphGroup is not the last glyph group in a span.
    • getLastAdvance

      public float getLastAdvance()
      returns the advance to use when this glyphGroup is the last glyph group in a span. This generally includes the width of the last glyph if 'HideLast' is true. Also in Japanese some glyphs should not be counted for line width (they may go outside the flow area).
    • setRange

      public void setRange(int range)
    • getRange

      public int getRange()