Package com.myscript.iink.text
Class GlyphMetrics
- java.lang.Object
-
- com.myscript.iink.text.GlyphMetrics
-
public final class GlyphMetrics extends java.lang.Object
Describes the position of a converted glyph.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description Rectangle
boundingBox
The glyph bounding box.float
leftSideBearing
The glyph left side bearing.float
rightSideBearing
The glyph right side bearing.
-
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()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-