|
Together Workflow Editor 3.0-1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
org.enhydra.jawe.components.graph.JaWEGraphModel.GraphModelEdit
An implementation of GraphModelChange that can be added to the model event.
Field Summary | |
protected java.util.Map |
attributes
|
protected java.util.Map |
cellViews
|
protected java.lang.Object[] |
changed
|
protected org.jgraph.graph.ConnectionSet |
connectionSet
|
protected java.lang.Object[] |
context
|
protected java.lang.Object[] |
insert
|
protected java.lang.Object[] |
inserted
|
protected java.lang.String |
name
|
protected org.jgraph.graph.ParentMap |
parentMap
|
protected java.util.Map |
previousAttributes
|
protected org.jgraph.graph.ConnectionSet |
previousConnectionSet
|
protected org.jgraph.graph.ParentMap |
previousParentMap
|
protected java.lang.Object[] |
remove
|
protected java.lang.Object[] |
removed
|
Fields inherited from class javax.swing.undo.CompoundEdit |
edits |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
Constructor Summary | |
JaWEGraphModel.GraphModelEdit(java.lang.Object[] inserted,
java.lang.Object[] removed,
java.util.Map attributes,
org.jgraph.graph.ConnectionSet connectionSet,
org.jgraph.graph.ParentMap parentMap,
java.lang.String name)
Constructs an edit record. |
Method Summary | |
protected void |
changeChildCount(java.util.Map childCount,
java.lang.Object parent,
int change)
|
void |
execute()
Execute this edit such that the next invocation to this method will invert the last execution. |
java.lang.Object[] |
filterParents(java.util.Map childCount,
int children)
|
java.util.Map |
getAttributes()
Returns a map of (object, view attributes). |
java.lang.Object[] |
getChanged()
Returns the cells that have changed. |
org.jgraph.graph.ConnectionSet |
getConnectionSet()
Returns the connectionSet. |
java.lang.Object[] |
getContext()
Returns the objects that have not changed explicitly, but implicitly because one of their dependent cells has changed. |
java.lang.Object[] |
getInserted()
Returns the cells that were inserted. |
org.jgraph.graph.ParentMap |
getParentMap()
Returns the parentMap. |
java.lang.String |
getPresentationName()
Returns getPresentationName from the
last UndoableEdit added to
edits . |
java.util.Map |
getPreviousAttributes()
Returns a map that contains (object, map) pairs of the attributes that have been stored in the model. |
org.jgraph.graph.ConnectionSet |
getPreviousConnectionSet()
|
org.jgraph.graph.ParentMap |
getPreviousParentMap()
|
java.lang.Object[] |
getRemoved()
Returns the cells that were inserted. |
java.lang.Object |
getSource()
Returns the source of this change. |
org.jgraph.graph.CellView[] |
getViews(org.jgraph.graph.GraphLayoutCache view)
|
protected void |
handleEmptyGroups(java.lang.Object[] groups)
Adds the groups that become empty to the cells that will be removed. |
boolean |
isSignificant()
|
void |
putViews(org.jgraph.graph.GraphLayoutCache view,
org.jgraph.graph.CellView[] views)
|
void |
redo()
Redoes a change. |
java.lang.String |
toString()
|
void |
undo()
Undoes a change. |
Methods inherited from class javax.swing.undo.CompoundEdit |
addEdit, canRedo, canUndo, die, end, getRedoPresentationName, getUndoPresentationName, isInProgress, lastEdit |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
replaceEdit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected java.lang.Object[] insert
protected java.lang.Object[] changed
protected java.lang.Object[] remove
protected java.lang.Object[] context
protected java.lang.Object[] inserted
protected java.lang.Object[] removed
protected java.util.Map attributes
protected java.util.Map previousAttributes
protected org.jgraph.graph.ParentMap parentMap
protected org.jgraph.graph.ParentMap previousParentMap
protected org.jgraph.graph.ConnectionSet connectionSet
protected org.jgraph.graph.ConnectionSet previousConnectionSet
protected java.util.Map cellViews
Constructor Detail |
public JaWEGraphModel.GraphModelEdit(java.lang.Object[] inserted, java.lang.Object[] removed, java.util.Map attributes, org.jgraph.graph.ConnectionSet connectionSet, org.jgraph.graph.ParentMap parentMap, java.lang.String name)
inserted
- a set of roots that were insertedremoved
- a set of elements that were removedattributes
- connectionSet
- parentMap
- name
- Method Detail |
public java.lang.Object[] filterParents(java.util.Map childCount, int children)
protected void changeChildCount(java.util.Map childCount, java.lang.Object parent, int change)
protected void handleEmptyGroups(java.lang.Object[] groups)
public boolean isSignificant()
isSignificant
in interface javax.swing.undo.UndoableEdit
public java.lang.String getPresentationName()
getPresentationName
from the
last UndoableEdit
added to
edits
. If edits
is empty,
calls super.
getPresentationName
in interface javax.swing.undo.UndoableEdit
public java.lang.Object getSource()
getSource
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.lang.Object[] getChanged()
getChanged
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.lang.Object[] getContext()
getContext
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.lang.Object[] getInserted()
getInserted
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.lang.Object[] getRemoved()
getRemoved
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.util.Map getPreviousAttributes()
getPreviousAttributes
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.util.Map getAttributes()
getAttributes
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public org.jgraph.graph.ConnectionSet getConnectionSet()
getConnectionSet
in interface org.jgraph.event.GraphModelEvent.GraphModelChange
public org.jgraph.graph.ConnectionSet getPreviousConnectionSet()
getPreviousConnectionSet
in interface org.jgraph.event.GraphModelEvent.GraphModelChange
public org.jgraph.graph.ParentMap getParentMap()
getParentMap
in interface org.jgraph.event.GraphModelEvent.GraphModelChange
public org.jgraph.graph.ParentMap getPreviousParentMap()
getPreviousParentMap
in interface org.jgraph.event.GraphModelEvent.GraphModelChange
public void redo() throws javax.swing.undo.CannotRedoException
redo
in interface javax.swing.undo.UndoableEdit
javax.swing.undo.CannotRedoException
- if the change cannot be redonepublic void undo() throws javax.swing.undo.CannotUndoException
undo
in interface javax.swing.undo.UndoableEdit
javax.swing.undo.CannotUndoException
- if the change cannot be undonepublic void execute()
public void putViews(org.jgraph.graph.GraphLayoutCache view, org.jgraph.graph.CellView[] views)
putViews
in interface org.jgraph.event.GraphModelEvent.GraphModelChange
public org.jgraph.graph.CellView[] getViews(org.jgraph.graph.GraphLayoutCache view)
getViews
in interface org.jgraph.event.GraphModelEvent.GraphModelChange
public java.lang.String toString()
|
Together Workflow Editor 3.0-1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |