org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit Class Reference

List of all members.

Public Member Functions

 GraphModelLayerEdit (Object[] cells, int layer)
Object getSource ()
Object[] getChanged ()
Object[] getInserted ()
Object[] getRemoved ()
Object[] getContext ()
Map getAttributes ()
Map getPreviousAttributes ()
ConnectionSet getConnectionSet ()
ConnectionSet getPreviousConnectionSet ()
ParentMap getParentMap ()
ParentMap getPreviousParentMap ()
void addImplicitEdit (UndoableEdit edit)
CellView[] getViews (GraphLayoutCache view)
void putViews (GraphLayoutCache view, CellView[] cellViews)
void redo () throws CannotRedoException
void undo () throws CannotUndoException
void execute ()

Static Public Attributes

static final int FRONT = -1
static final int BACK = -2

Protected Member Functions

void updateNext ()
void updateListeners ()
List getParentList (Object cell)

Protected Attributes

Object changeSource
transient Object[] cells
transient int[] next
transient int[] prev
int layer
Object[] changed

Detailed Description

An implementation of GraphViewChange.


Constructor & Destructor Documentation

org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.GraphModelLayerEdit Object[]  cells,
int  layer
 

Constructs a GraphModelEdit. This modifies the order of the cells in the model.


Member Function Documentation

void org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.addImplicitEdit UndoableEdit  edit  ) 
 

Allows a 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 manas.event as one unit.

void org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.execute  ) 
 

Execute this edit such that the next invocation to this method will invert the last execution.

Map org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getAttributes  ) 
 

Returns null.

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getChanged  ) 
 

Returns the cells that have changed.

ConnectionSet org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getConnectionSet  ) 
 

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getContext  ) 
 

Returns null.

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getInserted  ) 
 

Returns the cells that have changed.

List org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getParentList Object  cell  )  [protected]
 

Returns the list that exclusively contains view.

ParentMap org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getParentMap  ) 
 

Returns null.

Map org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getPreviousAttributes  ) 
 

Returns null.

ConnectionSet org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getPreviousConnectionSet  ) 
 

ParentMap org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getPreviousParentMap  ) 
 

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getRemoved  ) 
 

Returns the cells that have changed.

Object org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getSource  ) 
 

Returns the source of this change. This can either be a view or a model, if this change is a GraphModelChange.

CellView [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.getViews GraphLayoutCache  view  ) 
 

Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed.

void org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.putViews GraphLayoutCache  view,
CellView[]  cellViews
 

Returns the views that have not changed explicitly, but implicitly because one of their dependent cells has changed.

void org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.redo  )  throws CannotRedoException
 

Redoes a change.

Exceptions:
CannotRedoException if the change cannot be redone

void org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.undo  )  throws CannotUndoException
 

Undoes a change.

Exceptions:
CannotUndoException if the change cannot be undone

void org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.updateListeners  )  [protected]
 

void org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.updateNext  )  [protected]
 


Member Data Documentation

final int org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.BACK = -2 [static]
 

transient Object [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.cells [protected]
 

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.changed [protected]
 

Object org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.changeSource [protected]
 

final int org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.FRONT = -1 [static]
 

int org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.layer [protected]
 

transient int [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.next [protected]
 

transient int [] org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit.prev [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:14 2006 for Digimod by  doxygen 1.4.6-NO