GlyphId
Inheritance: java.lang.Object
public abstract class GlyphId
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.
Methods
Method | Description |
---|---|
toString() | Returns string representation the glyph id. |
hashCode() | Returns hashcode of object. |
op_Equality(GlyphId obj1, Object obj2) | Returns true if two glyph ids are equal. |
op_Inequality(GlyphId obj1, Object obj2) | Returns true if two glyph ids are not equal. |
equals(Object obj) | Returns true if two glyph ids are not equal. |
toGlyphUInt32Id() | Virtual cast to GlyphUInt32Id. |
toGlyphStringId() | Virtual cast to GlyphStringId. |
toString()
public abstract String toString()
Returns string representation the glyph id.
Returns: java.lang.String - glyph identifier
hashCode()
public abstract int hashCode()
Returns hashcode of object.
Returns: int - Hashcode of object.
op_Equality(GlyphId obj1, Object obj2)
public static boolean op_Equality(GlyphId obj1, Object obj2)
Returns true if two glyph ids are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
obj1 | GlyphId | First glyph identifier to compare. |
obj2 | java.lang.Object | Second glyph identifier to compare. |
Returns: boolean - Comparison result.
op_Inequality(GlyphId obj1, Object obj2)
public static boolean op_Inequality(GlyphId obj1, Object obj2)
Returns true if two glyph ids are not equal.
Parameters:
Parameter | Type | Description |
---|---|---|
obj1 | GlyphId | First glyph identifier to compare. |
obj2 | java.lang.Object | Second glyph identifier to compare. |
Returns: boolean - Comparison result.
equals(Object obj)
public boolean equals(Object obj)
Returns true if two glyph ids are not equal.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | Glyph identifier to compare with. |
Returns: boolean - Comparison result.
toGlyphUInt32Id()
public GlyphUInt32Id toGlyphUInt32Id()
Virtual cast to GlyphUInt32Id. GlyphUInt32Id overrides to return instance.
Returns: GlyphUInt32Id - null
toGlyphStringId()
public GlyphStringId toGlyphStringId()
Virtual cast to GlyphStringId. GlyphStringId overrides to return instance.
Returns: GlyphStringId - null