public class StyleGroupSet.ZIndex extends Object implements Iterable<HashSet<StyleGroup>>
This structure is maintained by each time a group is added or removed, or when the style of a group changed.
Modifier and Type | Class and Description |
---|---|
class |
StyleGroupSet.ZIndex.ZIndexIterator |
Modifier and Type | Field and Description |
---|---|
HashMap<String,Integer> |
reverseZIndex
Knowing a group, tell if its Z index.
|
ArrayList<HashSet<StyleGroup>> |
zIndex
Ordered set of groups.
|
Constructor and Description |
---|
ZIndex()
New empty Z index.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected int |
convertZ(int z)
Convert a [-127,127] value into a [0,255] value and check bounds.
|
protected Iterator<HashSet<StyleGroup>> |
getIterator()
Iterator on the set of Z index cells.
|
protected void |
groupAdded(StyleGroup group)
A new group appeared, put it in the z index.
|
protected void |
groupChanged(StyleGroup group)
A group eventually changed, check its location.
|
protected void |
groupRemoved(StyleGroup group)
A group was removed, remove it from the Z index.
|
protected void |
initZIndex() |
Iterator<HashSet<StyleGroup>> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ArrayList<HashSet<StyleGroup>> zIndex
public HashMap<String,Integer> reverseZIndex
public ZIndex()
protected void initZIndex()
protected Iterator<HashSet<StyleGroup>> getIterator()
public Iterator<HashSet<StyleGroup>> iterator()
iterator
in interface Iterable<HashSet<StyleGroup>>
protected void groupAdded(StyleGroup group)
group
- The group to add.protected void groupChanged(StyleGroup group)
group
- The group to check.protected void groupRemoved(StyleGroup group)
group
- The group to remove.public void clear()
protected int convertZ(int z)
z
- The Z value to convert.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses