com.jgraph.graph
Class DefaultGraphModel.GraphModelLayerEdit

java.lang.Object
  extended byjavax.swing.undo.AbstractUndoableEdit
      extended bycom.jgraph.graph.GraphView.GraphViewLayerEdit
          extended bycom.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit
All Implemented Interfaces:
GraphModelEvent.GraphModelChange, GraphModelEvent.GraphViewChange, java.io.Serializable, javax.swing.undo.UndoableEdit
Enclosing class:
DefaultGraphModel

public class DefaultGraphModel.GraphModelLayerEdit
extends GraphView.GraphViewLayerEdit
implements GraphModelEvent.GraphModelChange

An implementation of GraphViewChange.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object[] parents
           
 
Fields inherited from class com.jgraph.graph.GraphView.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
 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.lang.Object[] getRemoved()
          Returns the cells that have changed.
 java.lang.Object getSource()
          Returns the source of this change.
 java.util.Map getStoredAttributeMap()
          Returns null.
 CellView[] getViews(GraphView view)
          Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed.
 void putViews(GraphView 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 com.jgraph.graph.GraphView.GraphViewLayerEdit
execute, getAttributeMap, 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 com.jgraph.event.GraphModelEvent.GraphViewChange
getAttributeMap, getContext
 

Field Detail

parents

protected java.lang.Object[] parents
Constructor Detail

DefaultGraphModel.GraphModelLayerEdit

public DefaultGraphModel.GraphModelLayerEdit(java.lang.Object[] cells,
                                             int layer)
Constructs a GraphModelEdit. This modifies the order of the cells in the model.

Method Detail

getSource

public java.lang.Object getSource()
Returns the source of this change. This can either be a view or a model, if this change is a GraphModelChange.

Specified by:
getSource in interface GraphModelEvent.GraphViewChange
Overrides:
getSource in class GraphView.GraphViewLayerEdit

getChanged

public java.lang.Object[] getChanged()
Returns the cells that have changed.

Specified by:
getChanged in interface GraphModelEvent.GraphViewChange
Overrides:
getChanged in class GraphView.GraphViewLayerEdit

getInserted

public java.lang.Object[] getInserted()
Returns the cells that have changed.

Specified by:
getInserted in interface GraphModelEvent.GraphModelChange

getRemoved

public java.lang.Object[] getRemoved()
Returns the cells that have changed.

Specified by:
getRemoved in interface GraphModelEvent.GraphModelChange

getStoredAttributeMap

public java.util.Map getStoredAttributeMap()
Returns null.

Specified by:
getStoredAttributeMap in interface GraphModelEvent.GraphModelChange

getViews

public CellView[] getViews(GraphView view)
Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed.

Specified by:
getViews in interface GraphModelEvent.GraphModelChange

putViews

public void putViews(GraphView view,
                     CellView[] cellViews)
Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed.

Specified by:
putViews in interface GraphModelEvent.GraphModelChange

updateListeners

protected void updateListeners()
Overrides:
updateListeners in class GraphView.GraphViewLayerEdit

getParentList

protected java.util.List getParentList(java.lang.Object cell)
Returns the list that exclusively contains view.

Overrides:
getParentList in class GraphView.GraphViewLayerEdit