public abstract class GlyphId extends Object
Represents glyph ids, available in the Font.
Glyph id is a unique number for a glyph, which is font type dependent.
For example:
Type1's id is a glyph name, instance of (GlyphStringId
) class.
TTF's id is an int index, instance of (GlyphUInt32Id
) class.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if two glyph ids are not equal.
|
abstract int |
hashCode()
Returns hashcode of object.
|
static boolean |
op_Equality(GlyphId obj1,
Object obj2)
Returns true if two glyph ids are equal.
|
static boolean |
op_Inequality(GlyphId obj1,
Object obj2)
Returns true if two glyph ids are not equal.
|
GlyphStringId |
toGlyphStringId()
Virtual cast to GlyphStringId.
|
GlyphUInt32Id |
toGlyphUInt32Id()
Virtual cast to GlyphUInt32Id.
|
abstract String |
toString()
Returns string representation the glyph id.
|
public abstract String toString()
Returns string representation the glyph id.
public abstract int hashCode()
Returns hashcode of object.
public static boolean op_Equality(GlyphId obj1, Object obj2)
Returns true if two glyph ids are equal.
obj1
- First glyph identifier to compare.obj2
- Second glyph identifier to compare.public static boolean op_Inequality(GlyphId obj1, Object obj2)
Returns true if two glyph ids are not equal.
obj1
- First glyph identifier to compare.obj2
- Second glyph identifier to compare.public boolean equals(Object obj)
Returns true if two glyph ids are not equal.
public GlyphUInt32Id toGlyphUInt32Id()
Virtual cast to GlyphUInt32Id. GlyphUInt32Id overrides to return instance.
public GlyphStringId toGlyphStringId()
Virtual cast to GlyphStringId. GlyphStringId overrides to return instance.