Package com.myscript.iink.text
Class GlyphMetrics
- java.lang.Object
-
- com.myscript.iink.text.GlyphMetrics
-
public final class GlyphMetrics extends java.lang.ObjectDescribes the position of a converted glyph.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description RectangleboundingBoxThe glyph bounding box.floatleftSideBearingThe glyph left side bearing.floatrightSideBearingThe 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 booleanequals(@Nullable java.lang.Object obj)inthashCode()@NotNull java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-