org.jgraph.graph.DefaultGraphModel.GraphModelEdit Class Reference

List of all members.

Public Member Functions

 GraphModelEdit (Object[] inserted, Object[] removed, Map attributes, ConnectionSet connectionSet, ParentMap parentMap)
Object[] filterParents (Map childCount, int children)
boolean isSignificant ()
Object getSource ()
Object[] getChanged ()
Object[] getContext ()
Object[] getInserted ()
Object[] getRemoved ()
Map getPreviousAttributes ()
Map getAttributes ()
ConnectionSet getConnectionSet ()
ConnectionSet getPreviousConnectionSet ()
ParentMap getParentMap ()
ParentMap getPreviousParentMap ()
void redo () throws CannotRedoException
void undo () throws CannotUndoException
void execute ()
void putViews (GraphLayoutCache view, CellView[] views)
CellView[] getViews (GraphLayoutCache view)
String toString ()

Protected Member Functions

void changeChildCount (Map childCount, Object parent, int change)
void handleEmptyGroups (Object[] groups)

Protected Attributes

Object[] insert
Object[] changed
Object[] remove
Object[] context
Object[] inserted
Object[] removed
Map attributes
Map previousAttributes
ParentMap parentMap
ParentMap previousParentMap
ConnectionSet connectionSet
ConnectionSet previousConnectionSet
Map cellViews = new Hashtable()

Detailed Description

An implementation of GraphModelChange that can be added to the model manas.event.


Constructor & Destructor Documentation

org.jgraph.graph.DefaultGraphModel.GraphModelEdit.GraphModelEdit Object[]  inserted,
Object[]  removed,
Map  attributes,
ConnectionSet  connectionSet,
ParentMap  parentMap
 

Constructs an edit record.

Parameters:
inserted a set of roots that were inserted
removed a set of elements that were removed
attributes the attribute changes made by the edit
connectionSet the set of changed connections
parentMap the map of changed parents


Member Function Documentation

void org.jgraph.graph.DefaultGraphModel.GraphModelEdit.changeChildCount Map  childCount,
Object  parent,
int  change
[protected]
 

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

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

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelEdit.filterParents Map  childCount,
int  children
 

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

Returns a map of (object, view attributes). The objects are model objects which need to be mapped to views.

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

Returns the cells that have changed. This includes the cells that have been changed through a call to getAttributes and the edges that have been changed with the ConnectionSet.

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

Returns the connectionSet.

Returns:
ConnectionSet

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

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

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

Returns the cells that were inserted.

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

Returns the parentMap.

Returns:
ParentMap

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

Returns a map that contains (object, map) pairs of the attributes that have been stored in the model.

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

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

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

Returns the cells that were inserted.

Object org.jgraph.graph.DefaultGraphModel.GraphModelEdit.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.GraphModelEdit.getViews GraphLayoutCache  view  ) 
 

void org.jgraph.graph.DefaultGraphModel.GraphModelEdit.handleEmptyGroups Object[]  groups  )  [protected]
 

Adds the groups that become empty to the cells that will be removed. (Auto remove empty cells.) Removed cells will be re-inserted on undo, and the parent- child relations will be restored.

boolean org.jgraph.graph.DefaultGraphModel.GraphModelEdit.isSignificant  ) 
 

void org.jgraph.graph.DefaultGraphModel.GraphModelEdit.putViews GraphLayoutCache  view,
CellView[]  views
 

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

Redoes a change.

Exceptions:
CannotRedoException if the change cannot be redone

String org.jgraph.graph.DefaultGraphModel.GraphModelEdit.toString  ) 
 

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

Undoes a change.

Exceptions:
CannotUndoException if the change cannot be undone


Member Data Documentation

Map org.jgraph.graph.DefaultGraphModel.GraphModelEdit.attributes [protected]
 

Map org.jgraph.graph.DefaultGraphModel.GraphModelEdit.cellViews = new Hashtable() [protected]
 

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

ConnectionSet org.jgraph.graph.DefaultGraphModel.GraphModelEdit.connectionSet [protected]
 

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelEdit.context [protected]
 

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelEdit.insert [protected]
 

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelEdit.inserted [protected]
 

ParentMap org.jgraph.graph.DefaultGraphModel.GraphModelEdit.parentMap [protected]
 

Map org.jgraph.graph.DefaultGraphModel.GraphModelEdit.previousAttributes [protected]
 

ConnectionSet org.jgraph.graph.DefaultGraphModel.GraphModelEdit.previousConnectionSet [protected]
 

ParentMap org.jgraph.graph.DefaultGraphModel.GraphModelEdit.previousParentMap [protected]
 

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelEdit.remove [protected]
 

Object [] org.jgraph.graph.DefaultGraphModel.GraphModelEdit.removed [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