APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.X11

public final Class XAtom

extends Object
Class Inheritance
Imports
java.util.HashMap, jdk.internal.misc.Unsafe

Field Summary

Modifier and TypeField and Description
pack-priv long
pack-priv static HashMap<Long, XAtom>
pack-priv long
private static XAtom[]
pack-priv String
pack-priv static HashMap<String, XAtom>
private static Unsafe
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long

Constructor Summary

AccessConstructor and Description
private
XAtom(long
X display to use
display
,
String
name of the XAtom to create.
name
)

This constructor will create and intern a new XAtom that is specified by the supplied name.

public
XAtom(String name, boolean autoIntern)

public
XAtom(long
X display to use.
display
,
long
a predefined XAtom.
atom
)

This constructor will create an instance of XAtom that is specified by the predefined XAtom specified by u latom

private
XAtom(long
X display to use
display
,
String
name of the XAtom to create.
name
,
boolean autoIntern)

This constructor will create the instance, and if autoIntern is true intern a new XAtom that is specified by the supplied name.

public
XAtom()

Creates uninitialized instance of

Method Summary

Modifier and TypeMethod and Description
pack-priv static String
asString(long atom)

pack-priv void
checkWindow(long window)

public void
DeleteProperty(long window)

Deletes property specified by this item on the window.

public void
DeleteProperty(XBaseWindow window)

Deletes property specified by this item on the window.

public boolean
equals(Object o)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

pack-priv static XAtom
get(long atom)

public static XAtom
get(String name)

public long
get32Property(long window, long property_type)

pack-priv long
pack-priv static long
getAtom(long ptr)

public boolean
getAtomData(long window, long data_ptr, int length)

Gets uninterpreted set of data from property and stores them in data_ptr.

public boolean
getAtomData(long window, long type, long data_ptr, int length)

Gets uninterpreted set of data from property and stores them in data_ptr.

pack-priv XAtom[]
getAtomListProperty(long window)

pack-priv XAtom[]
pack-priv XAtomList
pack-priv XAtomList
pack-priv static int
public byte[]
getByteArrayProperty(long window, long property_type)

public long
getCard32Property(XBaseWindow window)

Returns value of property of type CARDINAL/32 of this window

public String
public String

Returns:

string with the property.
getProperty
(long
window id to use
window
)

Gets the window property for the specified window

public long
getWindowProperty(long window)

Gets property on the window.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public void
intern(boolean onlyIfExists)

Interns the XAtom

public boolean
pack-priv static XAtom
lookup(long atom)

pack-priv static XAtom
lookup(String name)

pack-priv void
putAtom(long ptr)

pack-priv static void
pack-priv void
public void
setAtomData(long window, long data_ptr, int length)

Sets uninterpreted set of data into property from data_ptr.

public void
setAtomData(long window, long type, long data_ptr, int length)

Sets uninterpreted set of data into property from data_ptr.

public void
setAtomData(long window, long property_type, byte[] data)

public void
setAtomData8(long window, long type, long data_ptr, int length)

Sets uninterpreted set of data into property from data_ptr.

pack-priv void
setAtomListProperty(long window, XAtom[] atoms)

Sets property value of type ATOM list to the list of atoms.

pack-priv void
setAtomListProperty(long window, XAtomList atoms)

Sets property value of type ATOM list to the list of atoms specified by XAtomList

public void
setAtomListProperty(XBaseWindow window, XAtom[] atoms)

Sets property value of type ATOM list to the list of atoms.

public void
setAtomListProperty(XBaseWindow window, XAtomList atoms)

Sets property value of type ATOM list to the list of atoms specified by XAtomList

public void
setCard32Property(long window, long value)

Sets property of type CARDINAL on the window

public void
setCard32Property(XBaseWindow window, long value)

Sets property of type CARDINAL/32 on the window

public void
setProperty(long
window id to use
window
,
String
value to set to.
str
)

Sets the window property for the specified window

public void
setProperty8(long window, String str)

Sets STRING/8 type property.

public void
setPropertyUTF8(long window, String str)

Sets UTF8_STRING type property.

public void
setValues(long display, String name, long atom)

public void
setWindowProperty(long window, long window_value)

Sets property on the window to the value window_value Property is assumed to be of type WINDOW/32

public void
pack-priv static long
toData(XAtom[] atoms)

Allocated memory to hold the list of native atom data and returns unsafe pointer to it Caller should free the memory by himself.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

atomback to summary
pack-priv long atom
atomToAtomback to summary
pack-priv static HashMap<Long, XAtom> atomToAtom
displayback to summary
pack-priv long display
emptyListback to summary
private static XAtom[] emptyList
nameback to summary
pack-priv String name
nameToAtomback to summary
pack-priv static HashMap<String, XAtom> nameToAtom
unsafeback to summary
private static Unsafe unsafe
XA_ARCback to summary
public static final long XA_ARC
XA_ATOMback to summary
public static final long XA_ATOM
XA_BITMAPback to summary
public static final long XA_BITMAP
XA_CAP_HEIGHTback to summary
public static final long XA_CAP_HEIGHT
XA_CARDINALback to summary
public static final long XA_CARDINAL
XA_COLORMAPback to summary
public static final long XA_COLORMAP
XA_CURSORback to summary
public static final long XA_CURSOR
XA_CUT_BUFFER0back to summary
public static final long XA_CUT_BUFFER0
XA_CUT_BUFFER1back to summary
public static final long XA_CUT_BUFFER1
XA_CUT_BUFFER2back to summary
public static final long XA_CUT_BUFFER2
XA_CUT_BUFFER3back to summary
public static final long XA_CUT_BUFFER3
XA_CUT_BUFFER4back to summary
public static final long XA_CUT_BUFFER4
XA_CUT_BUFFER5back to summary
public static final long XA_CUT_BUFFER5
XA_CUT_BUFFER6back to summary
public static final long XA_CUT_BUFFER6
XA_CUT_BUFFER7back to summary
public static final long XA_CUT_BUFFER7
XA_DRAWABLEback to summary
public static final long XA_DRAWABLE
XA_END_SPACEback to summary
public static final long XA_END_SPACE
XA_FAMILY_NAMEback to summary
public static final long XA_FAMILY_NAME
XA_FONTback to summary
public static final long XA_FONT
XA_FONT_NAMEback to summary
public static final long XA_FONT_NAME
XA_FULL_NAMEback to summary
public static final long XA_FULL_NAME
XA_INTEGERback to summary
public static final long XA_INTEGER
XA_ITALIC_ANGLEback to summary
public static final long XA_ITALIC_ANGLE
XA_LAST_PREDEFINEDback to summary
public static final long XA_LAST_PREDEFINED
XA_MAX_SPACEback to summary
public static final long XA_MAX_SPACE
XA_MIN_SPACEback to summary
public static final long XA_MIN_SPACE
XA_NORM_SPACEback to summary
public static final long XA_NORM_SPACE
XA_NOTICEback to summary
public static final long XA_NOTICE
XA_PIXMAPback to summary
public static final long XA_PIXMAP
XA_POINTback to summary
public static final long XA_POINT
XA_POINT_SIZEback to summary
public static final long XA_POINT_SIZE
XA_PRIMARYback to summary
public static final long XA_PRIMARY
XA_QUAD_WIDTHback to summary
public static final long XA_QUAD_WIDTH
XA_RECTANGLEback to summary
public static final long XA_RECTANGLE
XA_RESOLUTIONback to summary
public static final long XA_RESOLUTION
XA_RESOURCE_MANAGERback to summary
public static final long XA_RESOURCE_MANAGER
XA_RGB_BEST_MAPback to summary
public static final long XA_RGB_BEST_MAP
XA_RGB_BLUE_MAPback to summary
public static final long XA_RGB_BLUE_MAP
XA_RGB_COLOR_MAPback to summary
public static final long XA_RGB_COLOR_MAP
XA_RGB_DEFAULT_MAPback to summary
public static final long XA_RGB_DEFAULT_MAP
XA_RGB_GRAY_MAPback to summary
public static final long XA_RGB_GRAY_MAP
XA_RGB_GREEN_MAPback to summary
public static final long XA_RGB_GREEN_MAP
XA_RGB_RED_MAPback to summary
public static final long XA_RGB_RED_MAP
XA_SECONDARYback to summary
public static final long XA_SECONDARY
XA_STRIKEOUT_ASCENTback to summary
public static final long XA_STRIKEOUT_ASCENT
XA_STRIKEOUT_DESCENTback to summary
public static final long XA_STRIKEOUT_DESCENT
XA_STRINGback to summary
public static final long XA_STRING
XA_SUBSCRIPT_Xback to summary
public static final long XA_SUBSCRIPT_X
XA_SUBSCRIPT_Yback to summary
public static final long XA_SUBSCRIPT_Y
XA_SUPERSCRIPT_Xback to summary
public static final long XA_SUPERSCRIPT_X
XA_SUPERSCRIPT_Yback to summary
public static final long XA_SUPERSCRIPT_Y
XA_UNDERLINE_POSITIONback to summary
public static final long XA_UNDERLINE_POSITION
XA_UNDERLINE_THICKNESSback to summary
public static final long XA_UNDERLINE_THICKNESS
XA_VISUALIDback to summary
public static final long XA_VISUALID
XA_WEIGHTback to summary
public static final long XA_WEIGHT
XA_WINDOWback to summary
public static final long XA_WINDOW
XA_WM_CLASSback to summary
public static final long XA_WM_CLASS
XA_WM_CLIENT_MACHINEback to summary
public static final long XA_WM_CLIENT_MACHINE
XA_WM_COMMANDback to summary
public static final long XA_WM_COMMAND
XA_WM_HINTSback to summary
public static final long XA_WM_HINTS
XA_WM_ICON_NAMEback to summary
public static final long XA_WM_ICON_NAME
XA_WM_ICON_SIZEback to summary
public static final long XA_WM_ICON_SIZE
XA_WM_NAMEback to summary
public static final long XA_WM_NAME
XA_WM_NORMAL_HINTSback to summary
public static final long XA_WM_NORMAL_HINTS
XA_WM_SIZE_HINTSback to summary
public static final long XA_WM_SIZE_HINTS
XA_WM_TRANSIENT_FORback to summary
public static final long XA_WM_TRANSIENT_FOR
XA_WM_ZOOM_HINTSback to summary
public static final long XA_WM_ZOOM_HINTS
XA_X_HEIGHTback to summary
public static final long XA_X_HEIGHT

Constructor Detail

XAtomback to summary
private XAtom(long display, String name)

This constructor will create and intern a new XAtom that is specified by the supplied name.

Parameters
display:long

X display to use

name:String

name of the XAtom to create.

Since
1.5
XAtomback to summary
public XAtom(String name, boolean autoIntern)
XAtomback to summary
public XAtom(long display, long atom)

This constructor will create an instance of XAtom that is specified by the predefined XAtom specified by u latom

Parameters
display:long

X display to use.

atom:long

a predefined XAtom.

Since
1.5
XAtomback to summary
private XAtom(long display, String name, boolean autoIntern)

This constructor will create the instance, and if autoIntern is true intern a new XAtom that is specified by the supplied name.

Parameters
display:long

X display to use

name:String

name of the XAtom to create.

Since
1.5
XAtomback to summary
public XAtom()

Creates uninitialized instance of

Method Detail

asStringback to summary
pack-priv static String asString(long atom)
checkWindowback to summary
pack-priv void checkWindow(long window)
DeletePropertyback to summary
public void DeleteProperty(long window)

Deletes property specified by this item on the window.

DeletePropertyback to summary
public void DeleteProperty(XBaseWindow window)

Deletes property specified by this item on the window.

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
getback to summary
pack-priv static XAtom get(long atom)
getback to summary
public static XAtom get(String name)
get32Propertyback to summary
public long get32Property(long window, long property_type)
getAtomback to summary
pack-priv long getAtom()
getAtomback to summary
pack-priv static long getAtom(long ptr)
getAtomDataback to summary
public boolean getAtomData(long window, long data_ptr, int length)

Gets uninterpreted set of data from property and stores them in data_ptr. Property type is the same as current atom, property is current atom. Property format is 32. Property 'delete' is false. Returns boolean if requested type, format, length match returned values and returned data pointer is not null.

getAtomDataback to summary
public boolean getAtomData(long window, long type, long data_ptr, int length)

Gets uninterpreted set of data from property and stores them in data_ptr. Property type is type, property is current atom. Property format is 32. Property 'delete' is false. Returns boolean if requested type, format, length match returned values and returned data pointer is not null.

getAtomListPropertyback to summary
pack-priv XAtom[] getAtomListProperty(long window)
getAtomListPropertyback to summary
pack-priv XAtom[] getAtomListProperty(XBaseWindow window)
getAtomListPropertyListback to summary
pack-priv XAtomList getAtomListPropertyList(long window)
getAtomListPropertyListback to summary
pack-priv XAtomList getAtomListPropertyList(XBaseWindow window)
getAtomSizeback to summary
pack-priv static int getAtomSize()
getByteArrayPropertyback to summary
public byte[] getByteArrayProperty(long window, long property_type)
getCard32Propertyback to summary
public long getCard32Property(XBaseWindow window)

Returns value of property of type CARDINAL/32 of this window

getNameback to summary
public String getName()
getPropertyback to summary
public String getProperty(long window)

Gets the window property for the specified window

Parameters
window:long

window id to use

Returns:String

string with the property.

Since
1.5
getWindowPropertyback to summary
public long getWindowProperty(long window)

Gets property on the window. Property is assumed to be of type WINDOW/32.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
internback to summary
public void intern(boolean onlyIfExists)

Interns the XAtom

isInternedback to summary
public boolean isInterned()
lookupback to summary
pack-priv static XAtom lookup(long atom)
lookupback to summary
pack-priv static XAtom lookup(String name)
putAtomback to summary
pack-priv void putAtom(long ptr)
registerback to summary
pack-priv static void register(XAtom at)
registerback to summary
pack-priv void register()
setAtomDataback to summary
public void setAtomData(long window, long data_ptr, int length)

Sets uninterpreted set of data into property from data_ptr. Property type is the same as current atom, property is current atom. Property format is 32. Mode is PropModeReplace. length is a number of items pointer by data_ptr.

setAtomDataback to summary
public void setAtomData(long window, long type, long data_ptr, int length)

Sets uninterpreted set of data into property from data_ptr. Property type is type, property is current atom. Property format is 32. Mode is PropModeReplace. length is a number of items pointer by data_ptr.

setAtomDataback to summary
public void setAtomData(long window, long property_type, byte[] data)
setAtomData8back to summary
public void setAtomData8(long window, long type, long data_ptr, int length)

Sets uninterpreted set of data into property from data_ptr. Property type is type, property is current atom. Property format is 8. Mode is PropModeReplace. length is a number of bytes pointer by data_ptr.

setAtomListPropertyback to summary
pack-priv void setAtomListProperty(long window, XAtom[] atoms)

Sets property value of type ATOM list to the list of atoms.

setAtomListPropertyback to summary
pack-priv void setAtomListProperty(long window, XAtomList atoms)

Sets property value of type ATOM list to the list of atoms specified by XAtomList

setAtomListPropertyback to summary
public void setAtomListProperty(XBaseWindow window, XAtom[] atoms)

Sets property value of type ATOM list to the list of atoms.

setAtomListPropertyback to summary
public void setAtomListProperty(XBaseWindow window, XAtomList atoms)

Sets property value of type ATOM list to the list of atoms specified by XAtomList

setCard32Propertyback to summary
public void setCard32Property(long window, long value)

Sets property of type CARDINAL on the window

setCard32Propertyback to summary
public void setCard32Property(XBaseWindow window, long value)

Sets property of type CARDINAL/32 on the window

setPropertyback to summary
public void setProperty(long window, String str)

Sets the window property for the specified window

Parameters
window:long

window id to use

str:String

value to set to.

Since
1.5
setProperty8back to summary
public void setProperty8(long window, String str)

Sets STRING/8 type property. Explicitly converts str to Latin-1 byte sequence.

setPropertyUTF8back to summary
public void setPropertyUTF8(long window, String str)

Sets UTF8_STRING type property. Explicitly converts str to UTF-8 byte sequence.

setValuesback to summary
public void setValues(long display, String name, long atom)
setWindowPropertyback to summary
public void setWindowProperty(long window, long window_value)

Sets property on the window to the value window_value Property is assumed to be of type WINDOW/32

setWindowPropertyback to summary
public void setWindowProperty(XBaseWindow window, XBaseWindow window_value)
toDataback to summary
pack-priv static long toData(XAtom[] atoms)

Allocated memory to hold the list of native atom data and returns unsafe pointer to it Caller should free the memory by himself.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override