public class BPDGraphModel.GraphModelLayerEdit
extends org.jgraph.graph.GraphLayoutCache.GraphViewLayerEdit
implements org.jgraph.event.GraphModelEvent.GraphModelChange
| 限定符和类型 | 字段和说明 |
|---|---|
protected Object[] |
parents |
BACK, cells, changeSource, FRONT, layer, next, prevRedoName, UndoName| 构造器和说明 |
|---|
GraphModelLayerEdit(Object[] cells,
int layer)
Constructs a GraphModelEdit.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addImplicitEdit(UndoableEdit edit)
Allows a
GraphLayoutCache to add and execute and
UndoableEdit in this change. |
void |
execute() |
Object[] |
getChanged()
Returns the cells that have changed.
|
Object[] |
getInserted()
Returns the cells that have changed.
|
protected List |
getParentList(Object cell)
Returns the list that exclusively contains
view. |
Map |
getPreviousAttributes()
Returns null.
|
org.jgraph.graph.ConnectionSet |
getPreviousConnectionSet() |
org.jgraph.graph.ParentMap |
getPreviousParentMap() |
Object[] |
getRemoved()
Returns the cells that have changed.
|
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.
|
protected void |
updateListeners() |
getAttributes, getContext, redo, undo, updateNextaddEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toStringprotected Object[] parents
public GraphModelLayerEdit(Object[] cells, int layer)
public void execute()
execute 在接口中 org.jgraph.event.GraphModelEvent.ExecutableGraphChangeexecute 在类中 org.jgraph.graph.GraphLayoutCache.GraphViewLayerEditpublic Object getSource()
getSource 在接口中 org.jgraph.event.GraphModelEvent.GraphViewChangegetSource 在类中 org.jgraph.graph.GraphLayoutCache.GraphViewLayerEditpublic Object[] getChanged()
getChanged 在接口中 org.jgraph.event.GraphModelEvent.GraphViewChangegetChanged 在类中 org.jgraph.graph.GraphLayoutCache.GraphViewLayerEditpublic Object[] getInserted()
getInserted 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic Object[] getRemoved()
getRemoved 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic Map getPreviousAttributes()
getPreviousAttributes 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic org.jgraph.graph.ConnectionSet getPreviousConnectionSet()
getPreviousConnectionSet 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic org.jgraph.graph.ParentMap getPreviousParentMap()
getPreviousParentMap 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic void addImplicitEdit(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 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangepublic void putViews(org.jgraph.graph.GraphLayoutCache view,
org.jgraph.graph.CellView[] cellViews)
putViews 在接口中 org.jgraph.event.GraphModelEvent.GraphModelChangeprotected void updateListeners()
updateListeners 在类中 org.jgraph.graph.GraphLayoutCache.GraphViewLayerEditCopyright © 2023 onecode. All rights reserved.