tico.board
Class TBoardLayoutCache

java.lang.Object
  extended by org.jgraph.graph.GraphLayoutCache
      extended by tico.board.TBoardLayoutCache
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellMapper

public class TBoardLayoutCache
extends org.jgraph.graph.GraphLayoutCache

An object that defines the view of a TBoardModel. This object maps between model components and views and provides a set of methods to change these views.

Version:
1.0 Nov 20, 2006
Author:
Pablo Muñoz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgraph.graph.GraphLayoutCache
org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit
 
Constructor Summary
TBoardLayoutCache()
          Creates a new TBoardLayoutCache.
 
Method Summary
 void editAndRemove(java.util.Map attributes, java.lang.Object[] remove)
          Applies the attributeMaps to the components specified in attributes and removes the components in remove.
 void editRoots(java.lang.Object[] components, org.jgraph.graph.AttributeMap map)
          Applies the specified map to all the roots of the components.
 void removeAndInsertGroup(java.lang.Object[] remove, java.lang.Object group, java.lang.Object[] children)
          Removes the components in remove and insert children in the specified group.
 void removeInsertAndEdit(java.lang.Object[] insert, java.lang.Object[] remove, java.util.Map attributes)
          Applies the attributeMaps to the components specified in attributes, removes the components in remove and inserts the components in insert.
 
Methods inherited from class org.jgraph.graph.GraphLayoutCache
addGraphLayoutCacheListener, cellViewsChanged, collapse, createNestedMap, edit, edit, edit, editCell, expand, getAllDescendants, getAllViews, getBounds, getCells, getCells, getCellViews, getCollapseXScale, getCollapseYScale, getFactory, getGraphLayoutCacheListeners, getHiddenCellViews, getHiddenMapping, getIncomingEdges, getLocalAttributes, getMapping, getMapping, getMapping, getModel, getNeighbours, getOutgoingEdges, getPorts, getRoots, getRoots, getVisibleCells, getVisibleSet, graphChanged, hideCells, insert, insert, insert, insert, insertClones, insertEdge, insertGroup, insertViews, isAllAttributesLocal, isAutoSizeOnValueChange, isHidesDanglingConnections, isHidesExistingConnections, isMovesChildrenOnExpand, isMovesParentsOnCollapse, isPartial, isReconnectsEdgesToVisibleParent, isRemembersCellViews, isResizesParentsOnCollapse, isSelectsAllInsertedCells, isSelectsLocalInsertedCells, isShowsChangedConnections, isShowsExistingConnections, isShowsInsertedConnections, isVisible, putMapping, refresh, refresh, reload, remove, remove, removeCells, removeGraphLayoutCacheListener, removeMapping, setAllAttributesLocal, setAutoSizeOnValueChange, setCollapsedState, setCollapseXScale, setCollapseYScale, setFactory, setHiddenSet, setHidesDanglingConnections, setHidesExistingConnections, setLocalAttributes, setModel, setMovesChildrenOnExpand, setMovesParentsOnCollapse, setReconnectsEdgesToVisibleParent, setRemembersCellViews, setResizesParentsOnCollapse, setSelectsAllInsertedCells, setSelectsLocalInsertedCells, setShowsChangedConnections, setShowsExistingConnections, setShowsInsertedConnections, setVisible, setVisible, setVisible, setVisible, setVisibleImpl, setVisibleSet, showCells, toBack, toFront, toggleCollapsedState, translateViews, ungroup, update, update, valueForCellChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TBoardLayoutCache

public TBoardLayoutCache()
Creates a new TBoardLayoutCache.

Method Detail

editRoots

public void editRoots(java.lang.Object[] components,
                      org.jgraph.graph.AttributeMap map)
Applies the specified map to all the roots of the components.

Parameters:
components - The components whose roots will be modified
map - The map to apply

editAndRemove

public void editAndRemove(java.util.Map attributes,
                          java.lang.Object[] remove)
Applies the attributeMaps to the components specified in attributes and removes the components in remove.

Parameters:
attributes - Pairs component - attributeMap that determines wich objects will receive wich attribute map modifications
remove - The components to remove

removeAndInsertGroup

public void removeAndInsertGroup(java.lang.Object[] remove,
                                 java.lang.Object group,
                                 java.lang.Object[] children)
Removes the components in remove and insert children in the specified group.

Parameters:
remove - The components to remove
group - The specified target group
children - The components to add to group

removeInsertAndEdit

public void removeInsertAndEdit(java.lang.Object[] insert,
                                java.lang.Object[] remove,
                                java.util.Map attributes)
Applies the attributeMaps to the components specified in attributes, removes the components in remove and inserts the components in insert.

Parameters:
insert - The components to insert
remove - The components to remove
attributes - Pairs component - attributeMap that determines wich objects will receive wich attribute map modifications