gnu.x11.extension.render
Class Glyph

java.lang.Object
  extended by gnu.x11.extension.render.Glyph

public final class Glyph
extends java.lang.Object

Represents one glyph in the X Render Extension. This can be used to cache glyphs in a HashMap or similar data structure. Glyph instances cannot be created directly. They must be create by adding glyphs to a GlyphSet. It is important to store the created glyph instances somewhere, otherwise they get garbage collected and the X server frees the resources for that glyph.


Method Summary
 boolean equals(java.lang.Object o)
          Compares this object with another object.
protected  void finalize()
          Frees this glyph instance if it hasn't already been freed explicitly.
 int get_id()
          Returns the ID of this glyph.
 int hashCode()
          Computes a hashcode.
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get_id

public int get_id()
Returns the ID of this glyph.

Returns:
the ID of this glyph

equals

public boolean equals(java.lang.Object o)
Compares this object with another object. This object is only equal to the other object if the other object is also a Glyph instance and if both have the same ID and the same parent glyph set.

Overrides:
equals in class java.lang.Object
Parameters:
o - the other object
Returns:
true when both objects are equal, false otherwise

hashCode

public int hashCode()
Computes a hashcode.

Overrides:
hashCode in class java.lang.Object

finalize

protected void finalize()
Frees this glyph instance if it hasn't already been freed explicitly.

Overrides:
finalize in class java.lang.Object