Class JmtGraphLayoutCache

java.lang.Object
org.jgraph.graph.GraphLayoutCache
jsimgraph.JGraphMod.JmtGraphLayoutCache
All Implemented Interfaces:
Serializable, org.jgraph.graph.CellMapper

public class JmtGraphLayoutCache extends org.jgraph.graph.GraphLayoutCache
An object that defines the view of a graphmodel. This object maps between model cells and views and provides a set of methods to change these views. The view may also contain its own set of attributes and is therefore an extension of an Observable, which may be observed by the GraphUI. It uses the model to send its changes to the command history.
Author:
Federico Granata Date: 14-lug-2003 Time: 14.18.17 Modified by Bertoli Marco to support JGraph 5.8 - 21/mar/2006
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jgraph.graph.GraphLayoutCache

    org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit
  • Field Summary

    Fields inherited from class org.jgraph.graph.GraphLayoutCache

    allAttributesLocal, autoSizeOnValueChange, collapseXScale, collapseYScale, factory, graphModel, hiddenMapping, hidesDanglingConnections, hidesExistingConnections, listenerList, localAttributes, mapping, movesChildrenOnExpand, movesParentsOnCollapse, partial, ports, reconnectsEdgesToVisibleParent, remembersCellViews, resizesParentsOnCollapse, roots, selectsAllInsertedCells, selectsLocalInsertedCells, showsChangedConnections, showsExistingConnections, showsInsertedCells, showsInsertedConnections, showsInvisibleEditedCells, visibleSet
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmtGraphLayoutCache(org.jgraph.graph.GraphModel model, org.jgraph.graph.CellViewFactory factory)
    Constructs a view for the specified model that uses factory to create its views.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jgraph.graph.CellView[]
    Return all cells that intersect the given rectangle.

    Methods inherited from class org.jgraph.graph.GraphLayoutCache

    addGraphLayoutCacheListener, addVisibleDependencies, augment, augmentNestedMapForValueChange, cellExpanded, cellViewsChanged, cellWillCollapse, collapse, createLocalEdit, createNestedMap, edit, edit, edit, editCell, expand, fireGraphLayoutCacheChanged, getAllDescendants, getAllViews, getBounds, getCells, getCells, getCellViews, getChildPort, getCollapseXScale, getCollapseYScale, getContext, getEdges, getFactory, getGraphLayoutCacheListeners, getHiddenCellViews, getHiddenMapping, getIncomingEdges, getLocalAttributes, getMapping, getMapping, getMapping, getModel, getNeighbours, getOutgoingEdges, getParentPort, getParentPorts, getPartial, getPorts, getPorts, getRoots, getRoots, getVisibleCells, getVisibleSet, graphChanged, handleAttributes, hasVisibleParent, hideCells, hideCellsForChange, insert, insert, insert, insert, insertClones, insertEdge, insertGroup, insertViews, isAllAttributesLocal, isAutoSizeOnValueChange, isControlAttribute, isHidesDanglingConnections, isHidesExistingConnections, isLocalAttribute, isMovesChildrenOnExpand, isMovesParentsOnCollapse, isPartial, isReconnectsEdgesToVisibleParent, isRemembersCellViews, isResizesParentsOnCollapse, isSelectsAllInsertedCells, isSelectsLocalInsertedCells, isShowsChangedConnections, isShowsExistingConnections, isShowsInsertedConnections, isVisible, putMapping, refresh, refresh, reload, reloadRoots, remove, remove, removeCells, removeGraphLayoutCacheListener, removeMapping, removeViewLocalAttribute, 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, showCellsForChange, toBack, toFront, toggleCollapsedState, translateViews, ungroup, update, update, updatePorts, valueForCellChanged

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JmtGraphLayoutCache

      public JmtGraphLayoutCache(org.jgraph.graph.GraphModel model, org.jgraph.graph.CellViewFactory factory)
      Constructs a view for the specified model that uses factory to create its views.
      Parameters:
      model - the model that constitues the data source
  • Method Details

    • getRoots

      public org.jgraph.graph.CellView[] getRoots(Rectangle clip)
      Return all cells that intersect the given rectangle.