|
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
org.enhydra.jawe.components.graph.JaWEGraphModel.GraphModelLayerEdit
An implementation of GraphViewChange.
Field Summary | |
static int |
BACK
|
protected java.lang.Object[] |
cells
|
protected java.lang.Object[] |
changed
|
protected java.lang.Object |
changeSource
|
static int |
FRONT
|
protected int |
layer
|
protected int[] |
next
|
protected int[] |
prev
|
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
Constructor Summary | |
JaWEGraphModel.GraphModelLayerEdit(java.lang.Object[] cells,
int layer)
Constructs a GraphModelEdit. |
Method Summary | |
void |
addImplicitEdit(javax.swing.undo.UndoableEdit edit)
Allows a GraphLayoutCache to add and execute and
UndoableEdit in this change. |
void |
execute()
Execute this edit such that the next invocation to this method will invert the last execution. |
java.util.Map |
getAttributes()
Returns null. |
java.lang.Object[] |
getChanged()
Returns the cells that have changed. |
org.jgraph.graph.ConnectionSet |
getConnectionSet()
|
java.lang.Object[] |
getContext()
Returns null. |
java.lang.Object[] |
getInserted()
Returns the cells that have changed. |
protected java.util.List |
getParentList(java.lang.Object cell)
Returns the list that exclusively contains view . |
org.jgraph.graph.ParentMap |
getParentMap()
Returns null. |
java.util.Map |
getPreviousAttributes()
Returns null. |
org.jgraph.graph.ConnectionSet |
getPreviousConnectionSet()
|
org.jgraph.graph.ParentMap |
getPreviousParentMap()
|
java.lang.Object[] |
getRemoved()
Returns the cells that have changed. |
java.lang.Object |
getSource()
Returns the source of this change. |
org.jgraph.graph.CellView[] |
getViews(org.jgraph.graph.GraphLayoutCache view)
Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed. |
void |
putViews(org.jgraph.graph.GraphLayoutCache view,
org.jgraph.graph.CellView[] cellViews)
Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed. |
void |
redo()
Redoes a change. |
void |
undo()
Undoes a change. |
protected void |
updateListeners()
|
protected void |
updateNext()
|
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FRONT
public static final int BACK
protected java.lang.Object changeSource
protected transient java.lang.Object[] cells
protected transient int[] next
protected transient int[] prev
protected int layer
protected java.lang.Object[] changed
Constructor Detail |
public JaWEGraphModel.GraphModelLayerEdit(java.lang.Object[] cells, int layer)
Method Detail |
protected void updateNext()
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[] getInserted()
getInserted
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.lang.Object[] getRemoved()
getRemoved
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.lang.Object[] getContext()
getContext
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.util.Map getAttributes()
getAttributes
in interface org.jgraph.event.GraphLayoutCacheEvent.GraphLayoutCacheChange
public java.util.Map getPreviousAttributes()
getPreviousAttributes
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 addImplicitEdit(javax.swing.undo.UndoableEdit edit)
GraphLayoutCache
to add and execute and
UndoableEdit in this change. This does also work if the
parent edit has already been executed, in which case the
to be added edit will be executed immediately, after
addition.
This is used to handle changes to the view that are
triggered by certain changes of the model. Such implicit
edits may be associated with the view so that they may be
undone and redone correctly, and are stored in the model's
global history together with the parent event as one unit.
public org.jgraph.graph.CellView[] getViews(org.jgraph.graph.GraphLayoutCache view)
getViews
in interface org.jgraph.event.GraphModelEvent.GraphModelChange
public void putViews(org.jgraph.graph.GraphLayoutCache view, org.jgraph.graph.CellView[] cellViews)
putViews
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()
protected void updateListeners()
protected java.util.List getParentList(java.lang.Object cell)
view
.
|
Together Workflow Editor 3.0-1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |