gnu.x11
Class Resource

java.lang.Object
  extended by gnu.x11.Resource
Direct Known Subclasses:
Colormap, Cursor, Drawable, Fontable, GL, GLXPixmap, GlyphSet, Picture, Print.Context

public abstract class Resource
extends java.lang.Object

X ID resource.


Field Summary
 Display display
           
 int id
           
 
Constructor Summary
Resource(Display display)
          Create.
Resource(Display display, int id)
          Intern.
Resource(int id)
          Predefined.
 
Method Summary
 int id()
          Returns the resource ID of this resource.
 void unintern()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

public Display display

id

public int id
Constructor Detail

Resource

public Resource(int id)
Predefined.


Resource

public Resource(Display display)
Create.


Resource

public Resource(Display display,
                int id)
Intern.

Method Detail

unintern

public void unintern()

id

public int id()
Returns the resource ID of this resource.

Returns:
the resource ID of this resource