JGraphpad Pro
v6.0.5.0


com.jgraph.pad.graph
Class JGraphpadGraphLayoutCache

java.lang.Object
  extended byorg.jgraph.graph.GraphLayoutCache
      extended bycom.jgraph.pad.graph.JGraphpadGraphLayoutCache
All Implemented Interfaces:
org.jgraph.graph.CellMapper, Serializable

public class JGraphpadGraphLayoutCache
extends org.jgraph.graph.GraphLayoutCache

GraphLayoutCache to be used in JGraphpad files. Generally, due to the collapse/expand feature present in JGraphpad, all layout caches are partial.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes 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
JGraphpadGraphLayoutCache()
          Constructs a new graph layout cache with a JGraphpadGraphModel and partial set to true.
JGraphpadGraphLayoutCache(org.jgraph.graph.GraphModel model, boolean partial)
          Constructs a new graph layout cache for the specified model.
JGraphpadGraphLayoutCache(org.jgraph.graph.GraphModel model, org.jgraph.graph.CellViewFactory factory, org.jgraph.graph.CellView[] cellViews, org.jgraph.graph.CellView[] hiddenCellViews, boolean partial)
          Constructs a new graph layout cache for the specified parameters.
JGraphpadGraphLayoutCache(org.jgraph.graph.GraphModel model, Set visibleSet, boolean partial)
          Constructs a new graph layout cache which has all its state stored in the visible set, eg if the cache is partial, but does not contain view-local attributes.
 
Method Summary
 boolean getPartial()
          Workaround for the XMLEncoder.
 
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, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGraphpadGraphLayoutCache

public JGraphpadGraphLayoutCache()
Constructs a new graph layout cache with a JGraphpadGraphModel and partial set to true.


JGraphpadGraphLayoutCache

public JGraphpadGraphLayoutCache(org.jgraph.graph.GraphModel model,
                                 boolean partial)
Constructs a new graph layout cache for the specified model.

Parameters:
model - The model to contruct the graph layout cache for.
partial - Whether the graph layout cache should be partial.

JGraphpadGraphLayoutCache

public JGraphpadGraphLayoutCache(org.jgraph.graph.GraphModel model,
                                 Set visibleSet,
                                 boolean partial)
Constructs a new graph layout cache which has all its state stored in the visible set, eg if the cache is partial, but does not contain view-local attributes.

Parameters:
model - The model to constructs the graph layout cache for.
visibleSet - The set of the visible cells.
partial - Whether the graph layout cache should be partial.

JGraphpadGraphLayoutCache

public JGraphpadGraphLayoutCache(org.jgraph.graph.GraphModel model,
                                 org.jgraph.graph.CellViewFactory factory,
                                 org.jgraph.graph.CellView[] cellViews,
                                 org.jgraph.graph.CellView[] hiddenCellViews,
                                 boolean partial)
Constructs a new graph layout cache for the specified parameters.

Method Detail

getPartial

public boolean getPartial()
Workaround for the XMLEncoder. The XMLEncoder, for some strange reason, does not call "isPartial" for this property.


JGraphpad Pro
v6.0.5.0


Copyright (C) 2005 JGraph.com. All rights reserved.