com.jgraph.layout
Class JGraphExampleLayoutCache.JGraphMoveSelectionFacade

java.lang.Object
  extended by com.jgraph.layout.JGraphFacade
      extended by com.jgraph.layout.JGraphExampleLayoutCache.JGraphMoveSelectionFacade
Enclosing class:
JGraphExampleLayoutCache

public class JGraphExampleLayoutCache.JGraphMoveSelectionFacade
extends com.jgraph.layout.JGraphFacade

An example of how to override the graph facade to control the cells that are moveable by graph layouts. This example takes into account the move selection option and makes sure selected cells may (not) be moved.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jgraph.layout.JGraphFacade
com.jgraph.layout.JGraphFacade.CellVisitor, com.jgraph.layout.JGraphFacade.DefaultComparator
 
Constructor Summary
JGraphExampleLayoutCache.JGraphMoveSelectionFacade(org.jgraph.JGraph graph, java.lang.Object[] roots)
           
 
Method Summary
 boolean isMoveable(java.lang.Object cell)
          Returns true if the move Selection cells is on and the cell is not selected.
 
Methods inherited from class com.jgraph.layout.JGraphFacade
bfs, circle, createNestedMap, createNestedMap, createNestedMap, dfs, dfs, dfs, disableRouting, findTreeRoots, getAttributes, getAttributes, getBounds, getBounds, getBounds, getCellBounds, getCellView, getCircleRadiusFactor, getComponents, getConnectionComponents, getDistance, getEdges, getEdges, getEdges, getEdgesBetween, getGraphBounds, getGraphOrigin, getGroupHierarchies, getIncomingEdges, getLength, getLocation, getLocations, getMaxSize, getMinimumSpanningTree, getNeighbours, getNeighbours, getOrder, getOutgoingEdges, getPath, getPoints, getRootAt, getRootCount, getRoots, getSize, getSource, getSourcePort, getTarget, getTargetPort, getUnconnectedVertices, getVertices, getVertices, getVerticesFilter, isDirected, isEdge, isEdgePromotion, IsIgnoresCellsInGroups, isIgnoresHiddenCells, isIgnoresUnconnectedCells, isOrdered, isRoot, isVertex, norm, randomize, resetControlPoints, resetControlPoints, run, scale, scale, setAttributes, setAttributes, setBounds, setBounds, setBounds, setCircleRadiusFactor, setDirected, setEdgePromotion, setGroupHierarchies, setIgnoresCellsInGroups, setIgnoresHiddenCells, setIgnoresUnconnectedCells, setLocation, setLocation, setLocations, setLoggerLevel, setOrder, setOrdered, setPoints, setRoots, setSize, setVerticesFilter, tilt, translate, translateCells
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGraphExampleLayoutCache.JGraphMoveSelectionFacade

public JGraphExampleLayoutCache.JGraphMoveSelectionFacade(org.jgraph.JGraph graph,
                                                          java.lang.Object[] roots)
Parameters:
graph -
Method Detail

isMoveable

public boolean isMoveable(java.lang.Object cell)
Returns true if the move Selection cells is on and the cell is not selected.

Overrides:
isMoveable in class com.jgraph.layout.JGraphFacade