Class GlyphLayout.GlyphRun

  • All Implemented Interfaces:
    Pool.Poolable
    Enclosing class:
    GlyphLayout

    public static class GlyphLayout.GlyphRun
    extends java.lang.Object
    implements Pool.Poolable
    Stores glyphs and positions for a line of text.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      Array<BitmapFont.Glyph> glyphs  
      float width  
      float x  
      FloatArray xAdvances
      Contains glyphs.size+1 entries:
      The first entry is the X offset relative to the drawing position.
      Subsequent entries are the X advance relative to previous glyph position.
      The last entry is the width of the last glyph.
      float y  
    • Constructor Summary

      Constructors 
      Constructor Description
      GlyphRun()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void reset()
      Resets the object for reuse.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • xAdvances

        public FloatArray xAdvances
        Contains glyphs.size+1 entries:
        The first entry is the X offset relative to the drawing position.
        Subsequent entries are the X advance relative to previous glyph position.
        The last entry is the width of the last glyph.
      • x

        public float x
      • y

        public float y
      • width

        public float width
    • Constructor Detail

      • GlyphRun

        public GlyphRun()
    • Method Detail

      • reset

        public void reset()
        Description copied from interface: Pool.Poolable
        Resets the object for reuse. Object references should be nulled and fields may be set to default values.
        Specified by:
        reset in interface Pool.Poolable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object