org.graphstream.ui.graphicGraph
Class StyleGroupSet.ZIndex

java.lang.Object
  extended by org.graphstream.ui.graphicGraph.StyleGroupSet.ZIndex
All Implemented Interfaces:
Iterable<HashSet<StyleGroup>>
Enclosing class:
StyleGroupSet

public class StyleGroupSet.ZIndex
extends Object
implements Iterable<HashSet<StyleGroup>>

All the style groups sorted by their Z index.

This structure is maintained by each time a group is added or removed, or when the style of a group changed.

Author:
Antoine Dutot

Nested Class Summary
 class StyleGroupSet.ZIndex.ZIndexIterator
           
 
Field Summary
 HashMap<String,Integer> reverseZIndex
          Knowing a group, tell if its Z index.
 ArrayList<HashSet<StyleGroup>> zIndex
          Ordered set of groups.
 
Constructor Summary
StyleGroupSet.ZIndex()
          New empty Z index.
 
Method Summary
 void clear()
           
 Iterator<HashSet<StyleGroup>> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

zIndex

public ArrayList<HashSet<StyleGroup>> zIndex
Ordered set of groups.


reverseZIndex

public HashMap<String,Integer> reverseZIndex
Knowing a group, tell if its Z index.

Constructor Detail

StyleGroupSet.ZIndex

public StyleGroupSet.ZIndex()
New empty Z index.

Method Detail

iterator

public Iterator<HashSet<StyleGroup>> iterator()
Specified by:
iterator in interface Iterable<HashSet<StyleGroup>>

clear

public void clear()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.