gnu.x11.extension.render
Class GlyphSet
java.lang.Object
gnu.x11.Resource
gnu.x11.extension.render.GlyphSet
public class GlyphSet
- extends Resource
GlyphSet in RENDER.
Method Summary |
Glyph[] |
add_glyphs(GlyphRequest[] glyph_reqs)
Adds glyphs to this glyph set. |
protected void |
finalize()
Called when the GlyphSet object is finalized. |
void |
free_glyphs(Glyph[] glyphs)
Frees the specified glyphs in this glyphset. |
void |
free()
Frees the glyph set in the X server. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlyphSet
public GlyphSet(Render render,
PictFormat format)
- See Also:
- XRenderCreateGlyphSet
GlyphSet
public GlyphSet(GlyphSet src)
- See Also:
-
XRenderReferenceGlyphSet
free
public void free()
- Frees the glyph set in the X server. If this is only a reference as
created by
GlyphSet(GlyphSet)
, this will only free this reference
but not the original glyph set.
This method is also called by finalize()
when this object gets
garbage collected, so it isn't strictly necessary to call this explicitly.
However, if it can be determined when this object will no longer be used
it is recommended to explicitly call this method, so the garbage collector
won't be bothered with possible network lags.
- See Also:
- XRenderFreeGlyphSet
finalize
protected void finalize()
- Called when the GlyphSet object is finalized. In this case we free this
GlyphSet (if it hasn't already been freed).
- Overrides:
finalize
in class java.lang.Object
add_glyphs
public Glyph[] add_glyphs(GlyphRequest[] glyph_reqs)
- Adds glyphs to this glyph set. This makes these glyphs available
for rendering.
- Parameters:
glyph_reqs
-
- Returns:
free_glyphs
public void free_glyphs(Glyph[] glyphs)
- Frees the specified glyphs in this glyphset. The releases any allocated
X server resources for these glyphs.
Glyph instances get automatically freed when the garbage collector
determines that there no more reference to such an instance. However,
it is preferable to explicitly free glyphs so that the garbage collector
isn't burdened with network activity and locking.
- Parameters:
glyphs
- the glyphs to be freed