public class BPDGraphModel.GraphModelEdit extends CompoundEdit implements org.jgraph.event.GraphModelEvent.GraphModelChange, org.jgraph.event.GraphModelEvent.ExecutableGraphChange
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map |
attributes |
protected Map |
cellViews |
protected Object[] |
changed |
protected org.jgraph.graph.ConnectionSet |
connectionSet |
protected Object[] |
context |
protected Object[] |
insert |
protected Object[] |
inserted |
protected String |
name |
protected org.jgraph.graph.ParentMap |
parentMap |
protected Map |
previousAttributes |
protected org.jgraph.graph.ConnectionSet |
previousConnectionSet |
protected org.jgraph.graph.ParentMap |
previousParentMap |
protected Object[] |
remove |
protected Object[] |
removed |
editsRedoName, UndoName| 构造器和说明 |
|---|
GraphModelEdit(Object[] inserted,
Object[] removed,
Map attributes,
org.jgraph.graph.ConnectionSet connectionSet,
org.jgraph.graph.ParentMap parentMap,
String name)
Constructs an edit record.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
changeChildCount(Map childCount,
Object parent,
int change) |
void |
execute()
Execute this edit such that the next invocation to this
method will invert the last execution.
|
Object[] |
filterParents(Map childCount,
int children) |
Map |
getAttributes()
Returns a map of (object, view attributes).
|
Object[] |
getChanged()
Returns the cells that have changed.
|
org.jgraph.graph.ConnectionSet |
getConnectionSet()
Returns the connectionSet.
|
Object[] |
getContext()
Returns the objects that have not changed explicitly, but
implicitly because one of their dependent cells has changed.
|
Object[] |
getInserted()
Returns the cells that were inserted.
|
org.jgraph.graph.ParentMap |
getParentMap()
Returns the parentMap.
|
String |
getPresentationName()
Returns
getPresentationName from the
last UndoableEdit added to
edits. |
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() |
Object[] |
getRemoved()
Returns the cells that were inserted.
|
Object |
getSource()
Returns the source of this change.
|
org.jgraph.graph.CellView[] |
getViews(org.jgraph.graph.GraphLayoutCache view) |
protected void |
handleEmptyGroups(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.
|
String |
toString() |
void |
undo()
Undoes a change.
|
addEdit, canRedo, canUndo, die, end, getRedoPresentationName, getUndoPresentationName, isInProgress, lastEditreplaceEditprotected String name
protected Object[] insert
protected Object[] changed
protected Object[] remove
protected Object[] context
protected Object[] inserted
protected Object[] removed
protected Map attributes
protected 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 Map cellViews
public GraphModelEdit(Object[] inserted, Object[] removed, Map attributes, org.jgraph.graph.ConnectionSet connectionSet, org.jgraph.graph.ParentMap parentMap, String name)
inserted - a set of roots that were insertedremoved - a set of elements that were removedattributes - connectionSet - parentMap - name - protected void handleEmptyGroups(Object[] groups)
public boolean isSignificant()
isSignificant 在接口中 UndoableEditisSignificant 在类中 CompoundEditpublic String getPresentationName()
getPresentationName from the
last UndoableEdit added to
edits. If edits is empty,
calls super.getPresentationName 在接口中 UndoableEditgetPresentationName 在类中 CompoundEditpublic Object getSource()
getSource 在接口中 org.jgraph.event.GraphModelEvent.GraphViewChangepublic Object[] getChanged()
getChanged 在接口中 org.jgraph.event.GraphModelEvent.GraphViewChangepublic Object[] getContext()
getContext 在接口中 org.jgraph.event.GraphModelEvent.GraphViewChangepublic Object[] getInserted()
getInserted 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic Object[] getRemoved()
getRemoved 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic Map getPreviousAttributes()
getPreviousAttributes 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic Map getAttributes()
getAttributes 在接口中 org.jgraph.event.GraphModelEvent.GraphViewChangepublic org.jgraph.graph.ConnectionSet getConnectionSet()
public org.jgraph.graph.ConnectionSet getPreviousConnectionSet()
getPreviousConnectionSet 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic org.jgraph.graph.ParentMap getParentMap()
public org.jgraph.graph.ParentMap getPreviousParentMap()
getPreviousParentMap 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic void redo()
throws CannotRedoException
redo 在接口中 UndoableEditredo 在类中 CompoundEditCannotRedoException - if the change cannot be redonepublic void undo()
throws CannotUndoException
undo 在接口中 UndoableEditundo 在类中 CompoundEditCannotUndoException - if the change cannot be undonepublic void execute()
execute 在接口中 org.jgraph.event.GraphModelEvent.ExecutableGraphChangepublic void putViews(org.jgraph.graph.GraphLayoutCache view,
org.jgraph.graph.CellView[] views)
putViews 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic org.jgraph.graph.CellView[] getViews(org.jgraph.graph.GraphLayoutCache view)
getViews 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic String toString()
toString 在类中 CompoundEditCopyright © 2023 onecode. All rights reserved.