Class GlyphMetrics


  • public final class GlyphMetrics
    extends java.lang.Object
    Describes the position of a converted glyph.
    Since:
    1.2
    • Constructor Summary

      Constructors 
      Constructor Description
      GlyphMetrics()
      Default constructor.
      GlyphMetrics​(float x, float y, float width, float height, float leftSideBearing, float rightSideBearing)
      Constructs a glyph metrics object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(@Nullable java.lang.Object obj)  
      int hashCode()  
      @NotNull java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • boundingBox

        public Rectangle boundingBox
        The glyph bounding box.
      • leftSideBearing

        public float leftSideBearing
        The glyph left side bearing.
      • rightSideBearing

        public float rightSideBearing
        The glyph right side bearing.
    • Constructor Detail

      • GlyphMetrics

        public GlyphMetrics()
        Default constructor. Construct a glyph metrics object.
      • GlyphMetrics

        public GlyphMetrics​(float x,
                            float y,
                            float width,
                            float height,
                            float leftSideBearing,
                            float rightSideBearing)
        Constructs a glyph metrics object.
        Parameters:
        x - the glyph x coordinate.
        y - the glyph y coordinate.
        width - the glyph width.
        height - the glyph height.
        leftSideBearing - the left side bearing associated with this glyph.
        rightSideBearing - the right side bearing associated with this glyph.
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              @Nullable java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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