Public Member Functions | |
ParentMap () | |
ParentMap (Object[] children, Object parent) | |
void | addEntry (Object child, Object parent) |
void | addEntries (Object[] children, Object parent) |
int | size () |
Iterator | entries () |
Set | getChangedNodes () |
ParentMap | clone (Map map) |
String | toString () |
Static Public Member Functions | |
static ParentMap | create (GraphModel m, Object[] c, boolean remove, boolean onlyUsePassedInCells) |
Protected Attributes | |
ArrayList | entries = new ArrayList() |
Set | changedNodes = new HashSet() |
Map | childCount = new Hashtable() |
Classes | |
class | Entry |
|
Constructs a |
|
Constructs a |
|
Adds all child parent pairs using addEntry. |
|
Add a new entry for this child, parent pair to the parent map. The child and parent are added to the set of changed nodes. Note: The previous parent is changed on execution of this parent map and must be added by the GraphModel and reflected by the GraphChange.getChanged method. TODO: In general, the GraphModel should be in charge of computing the set of changed cells. |
|
Creates a new parent map based on this parent map, where the child and parents are mapped using |
|
Returns a parent map that represents the insertion or removal of Note: Consequently, cells "move up" one level when their parent is removed. Note: onlyUsePassedInCells can be used to indicate if only cells from the passed-in cell array are allowed parents. This is only used if remove is not true. |
|
Returns an |
|
Returns a |
|
Returns the number of entries. |
|
|
|
Set of changed changedNodes for the parent map. Includes childs and parents. |
|
Maps parents to integers with the future number of childs. |
|
Contents of the parent map. |