org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit Class Reference

List of all members.

Public Member Functions

 GraphLayoutCacheEdit (Map nested)
 GraphLayoutCacheEdit (Object[] inserted, Map attributes, Object[] visible, Object[] invisible)
Object getSource ()
boolean isSignificant ()
Object[] getChanged ()
Object[] getInserted ()
Object[] getRemoved ()
Object[] getContext ()
Map getAttributes ()
Map getPreviousAttributes ()
void redo () throws CannotRedoException
void undo () throws CannotUndoException
void execute ()

Protected Attributes

Object[] cells
Object[] previousCells = null
CellView[] context
CellView[] hidden
Map attributes
Map previousAttributes
Object[] visible
Object[] invisible
Set changedCells = new HashSet()

Detailed Description

An implementation of GraphViewChange.


Constructor & Destructor Documentation

org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.GraphLayoutCacheEdit Map  nested  ) 
 

Constructs a GraphViewEdit. This modifies the attributes of the specified views and may be used to notify UndoListeners.

Parameters:
nested the map that defines the new attributes

org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.GraphLayoutCacheEdit Object[]  inserted,
Map  attributes,
Object[]  visible,
Object[]  invisible
 

Constructs a GraphViewEdit. This modifies the attributes of the specified views and may be used to notify UndoListeners. This should also take an array of removed cell views, but it is not possible to add further UndoableEdits to an already executed CompoundEdit, such as a GraphModel change. Thus, to handle implicit changes -- rather than piggybacking on the model's manas.event -- the CompoundEdit's addEdit method should be extended to accept and instantly execute sub- sequent edits (implicit changes to the view, such as removing a mapping, hiding a view or the like).

Parameters:
inserted an array of inserted cells
attributes the map that defines the new attributes
visible an array defining which cells are visible
invisible an array defining which cells are invisible


Member Function Documentation

void org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.execute  ) 
 

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

Map org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.getAttributes  ) 
 

Returns a map of (cell view, attribute) pairs.

Object [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.getChanged  ) 
 

Returns the cell views that have changed.

Object [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.getContext  ) 
 

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

Object [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.getInserted  ) 
 

Returns the cells that habe been made visible.

Map org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.getPreviousAttributes  ) 
 

Returns a map of (cell view, attribute) pairs.

Object [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.getRemoved  ) 
 

Returns the cells that have changed.

Object org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.getSource  ) 
 

boolean org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.isSignificant  ) 
 

void org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.redo  )  throws CannotRedoException
 

Redoes a change.

Exceptions:
CannotRedoException if the change cannot be redone

void org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.undo  )  throws CannotUndoException
 

Undoes a change.

Exceptions:
CannotUndoException if the change cannot be undone


Member Data Documentation

Map org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.attributes [protected]
 

Object [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.cells [protected]
 

Set org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.changedCells = new HashSet() [protected]
 

CellView [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.context [protected]
 

CellView [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.hidden [protected]
 

Object [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.invisible [protected]
 

Map org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.previousAttributes [protected]
 

Object [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.previousCells = null [protected]
 

Object [] org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit.visible [protected]
 


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