|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
org.jgraph.graph.GraphLayoutCache.GraphViewLayerEdit
org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit
public class DefaultGraphModel.GraphModelLayerEdit
An implementation of GraphViewChange.
Field Summary | |
---|---|
protected java.lang.Object[] |
parents
|
Fields inherited from class org.jgraph.graph.GraphLayoutCache.GraphViewLayerEdit |
---|
BACK, cells, changeSource, FRONT, layer, next, prev |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
RedoName, UndoName |
Constructor Summary | |
---|---|
DefaultGraphModel.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. |
java.lang.Object[] |
getChanged()
Returns the cells that have changed. |
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 . |
java.util.Map |
getPreviousAttributes()
Returns null. |
ConnectionSet |
getPreviousConnectionSet()
|
ParentMap |
getPreviousParentMap()
|
java.lang.Object[] |
getRemoved()
Returns the cells that have changed. |
java.lang.Object |
getSource()
Returns the source of this change. |
CellView[] |
getViews(GraphLayoutCache view)
Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed. |
void |
putViews(GraphLayoutCache view,
CellView[] cellViews)
Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed. |
protected void |
updateListeners()
|
Methods inherited from class org.jgraph.graph.GraphLayoutCache.GraphViewLayerEdit |
---|
execute, getAttributes, getContext, redo, undo, 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 |
Methods inherited from interface org.jgraph.event.GraphModelEvent.GraphViewChange |
---|
getAttributes, getContext |
Field Detail |
---|
protected java.lang.Object[] parents
Constructor Detail |
---|
public DefaultGraphModel.GraphModelLayerEdit(java.lang.Object[] cells, int layer)
Method Detail |
---|
public java.lang.Object getSource()
getSource
in interface GraphModelEvent.GraphViewChange
getSource
in class GraphLayoutCache.GraphViewLayerEdit
public java.lang.Object[] getChanged()
getChanged
in interface GraphModelEvent.GraphViewChange
getChanged
in class GraphLayoutCache.GraphViewLayerEdit
public java.lang.Object[] getInserted()
getInserted
in interface GraphModelEvent.GraphModelChange
public java.lang.Object[] getRemoved()
getRemoved
in interface GraphModelEvent.GraphModelChange
public java.util.Map getPreviousAttributes()
getPreviousAttributes
in interface GraphModelEvent.GraphModelChange
public ConnectionSet getPreviousConnectionSet()
getPreviousConnectionSet
in interface GraphModelEvent.GraphModelChange
public ParentMap getPreviousParentMap()
getPreviousParentMap
in interface 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 CellView[] getViews(GraphLayoutCache view)
getViews
in interface GraphModelEvent.GraphModelChange
public void putViews(GraphLayoutCache view, CellView[] cellViews)
putViews
in interface GraphModelEvent.GraphModelChange
protected void updateListeners()
updateListeners
in class GraphLayoutCache.GraphViewLayerEdit
protected java.util.List getParentList(java.lang.Object cell)
view
.
getParentList
in class GraphLayoutCache.GraphViewLayerEdit
|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |