| |
|
| java.lang.Object sun.awt.X11.XAtomList
XAtomList | class XAtomList (Code) | | Helper class to ease the work with the lists of atoms.
|
Constructor Summary | |
public | XAtomList() Creates empty list. | public | XAtomList(long data, int count) Creates instance of XAtomList and initializes it with
the contents pointer by data . | public | XAtomList(XAtom[] atoms) Creates instance of XAtomList and initializes it with
the arrays of atoms. |
Method Summary | |
public void | add(XAtom atom) Add atom to the list. | public void | addAll(XAtomList atoms) | public boolean | contains(XAtom atom) | public XAtom[] | getAtoms() Returns contents of the list as array of atoms. | public long | getAtomsData() Returns contents of the list as pointer to native data
The size of the native data is size of the list multiplied by
size of the Atom type on the platform. | public Iterator<XAtom> | iterator() Returns iterator for items. | public void | remove(XAtom atom) Removes atom from the list. | public int | size() | public XAtomList | subset(int mask, Map<Integer, XAtom> mapping) Returns a subset of a list which is intersection of this set and set build by mapping mask in
mapping . | public String | toString() |
XAtomList | public XAtomList()(Code) | | Creates empty list.
|
XAtomList | public XAtomList(long data, int count)(Code) | | Creates instance of XAtomList and initializes it with
the contents pointer by data .
Uses default display to initialize atoms.
|
XAtomList | public XAtomList(XAtom[] atoms)(Code) | | Creates instance of XAtomList and initializes it with
the arrays of atoms. Array can contain null atoms.
|
add | public void add(XAtom atom)(Code) | | Add atom to the list. Does nothing if list already contains this atom.
|
addAll | public void addAll(XAtomList atoms)(Code) | | Merges without duplicates all the atoms from another list
|
contains | public boolean contains(XAtom atom)(Code) | | Returns true if this list contains the atom atom
|
getAtoms | public XAtom[] getAtoms()(Code) | | Returns contents of the list as array of atoms.
|
getAtomsData | public long getAtomsData()(Code) | | Returns contents of the list as pointer to native data
The size of the native data is size of the list multiplied by
size of the Atom type on the platform. Caller is responsible for
freeing the data by Unsafe.freeMemory when it is no longer needed.
|
remove | public void remove(XAtom atom)(Code) | | Removes atom from the list. Does nothing if arrays doesn't conaint this atom.
|
size | public int size()(Code) | | Returns size of the list
|
subset | public XAtomList subset(int mask, Map<Integer, XAtom> mapping)(Code) | | Returns a subset of a list which is intersection of this set and set build by mapping mask in
mapping .
|
|
|
|