Java Doc for GraphLayoutCache.java in  » Graphic-Library » jgraph » org » jgraph » graph » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » jgraph » org.jgraph.graph 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jgraph.graph.GraphLayoutCache

GraphLayoutCache
public class GraphLayoutCache implements CellMapper,Serializable(Code)
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.
version:
   1.0 1/1/02
author:
   Gaudenz Alder

Inner Class :public class GraphLayoutCacheEdit extends CompoundEdit implements GraphLayoutCacheEvent.GraphLayoutCacheChange

Field Summary
protected  booleanallAttributesLocal
     Controls if all attributes are local.
protected  booleanautoSizeOnValueChange
     True if the cells should be auto-sized when their values change.
protected  doublecollapseXScalecollapseYScale
     Specified the initial x- and y-scaling factor for initial collapsed group bounds.
protected  CellViewFactoryfactory
     Factory to create the views.
protected  GraphModelgraphModel
    
protected transient  MaphiddenMapping
     Maps cells to views.
protected  booleanhidesDanglingConnections
     Boolean indicating whether existing connections should be hidden if their source or target port is removed from the model.
protected  booleanhidesExistingConnections
     Boolean indicating whether existing connections should be hidden if their source or target and no parent of the ports is visible, either by hiding the cell or by changing the source or target of the edge to a hidden cell.
protected  EventListenerListlistenerList
     The list of listeners that listen to the model.
protected  SetlocalAttributes
     A set containing all attribute keys that are stored in the cell views, in other words, the view-local attributes.
protected  Mapmapping
     Maps cells to views.
protected  booleanmovesChildrenOnExpand
     Boolean indicating whether children should be moved to the parent group's origin on expand.
protected  booleanmovesParentsOnCollapse
     Boolean indicating whether parents should be moved to the child area origin on collapse.
protected  booleanpartial
     Only portions of the model are visible.
protected  PortView[]ports
     Cached array of all ports for the view.
protected  booleanreconnectsEdgesToVisibleParent
     Boolean indicating whether edges should be reconneted to visible parents on collapse/expand.
protected  booleanremembersCellViews
     Boolean indicating whether cellviews should be remembered once visible in this GraphLayoutCache.
protected  booleanresizesParentsOnCollapse
     Boolean indicating whether parents should always be resized to the child area on collapse.
protected  Listroots
     Ordered list of roots for the view.
protected  booleanselectsAllInsertedCells
     Boolean indicating whether inserted cells should automatically be selected.
protected  booleanselectsLocalInsertedCells
     Boolean indicating whether cells that are inserted using the local insert method should automatically be selected.
protected  booleanshowsChangedConnections
     Boolean indicating whether connections should be made visible when reconnected and their source and target port is visible.
protected  booleanshowsExistingConnections
     Boolean indicating whether existing connections should me made visible if their sources or targets are made visible, given the opposite end of the edge is already visible or made visible, too.
protected  booleanshowsInsertedCells
     Boolean indicating whether inserted should be made visible if they are inserted via GraphLayoutCache.insert(Object[],Map,ConnectionSet,ParentMap,UndoableEdit[]) .
protected  booleanshowsInsertedConnections
     Boolean indicating whether inserted edges should me made visible if their sources or targets are already visible.
protected  booleanshowsInvisibleEditedCells
     Boolean indicating whether edited cells should be made visible if they are changed via GraphLayoutCache.edit(Map,ConnectionSet,ParentMap,UndoableEdit[]) .
protected  SetvisibleSet
     The set of visible cells.

Constructor Summary
public  GraphLayoutCache()
     Constructs a graph layout cache.
public  GraphLayoutCache(GraphModel model, CellViewFactory factory)
     Constructs a view for the specified model that uses factory to create its views.
public  GraphLayoutCache(GraphModel model, CellViewFactory factory, boolean partial)
     Constructs a view for the specified model that uses factory to create its views.
public  GraphLayoutCache(GraphModel model, CellViewFactory factory, CellView[] cellViews, CellView[] hiddenCellViews, boolean partial)
     Constructs a view for the specified model that uses factory to create its views.

Method Summary
public  voidaddGraphLayoutCacheListener(GraphLayoutCacheListener l)
     Adds a listener for the GraphLayoutCacheEvent posted after the graph layout cache changes.
protected  Object[]addVisibleDependencies(Object[] cells, boolean visible)
    
protected  UndoableEdit[]augment(UndoableEdit[] e, UndoableEdit edit)
    
protected  voidaugmentNestedMapForValueChange(Map nested, Object cell, Object newValue)
     Hook for subclassers to add more stuff for value changes.
protected  voidcellExpanded(Object cell)
     Called when a child has been made visible by expanding its parent.
public  voidcellViewsChanged(CellView[] cellViews)
     Invoke this method after you've changed how the cells are to be represented in the graph.
protected  voidcellWillCollapse(Object cell)
    
public  voidcollapse(Object[] groups)
     Collapses all groups by hiding all their descendants.
protected  GraphLayoutCacheEditcreateLocalEdit(Object[] inserted, Map nested, Object[] visible, Object[] invisible)
     Creates a local edit for the specified change.
public  MapcreateNestedMap()
     Returns a nested map of (cell, map) pairs that represent all attributes of all cell views in this view.
public  voidedit(Map attributes, ConnectionSet cs, ParentMap pm, UndoableEdit[] e)
     Applies the propertyMap and the connection changes to the model.
public  voidedit(Map attributes)
     A shortcut method that takes a nested map and passes it to the edit method.
public  voidedit(Object[] cells, Map attributes)
     Applies the attributes to all cells by creating a map that contains the attributes for each cell and passing it to edit on this layout cache.
public  voideditCell(Object cell, Map attributes)
     Applies the attributes to a single cell by creating a map that contains the attributes for this cell and passing it to edit on this layout cache.
public  voidexpand(Object[] cells)
     Expands all groups by showing all children.
protected  voidfireGraphLayoutCacheChanged(Object source, GraphLayoutCacheEvent.GraphLayoutCacheChange edit)
    
public  CellView[]getAllDescendants(CellView[] views)
     Returns all views, including descendants that have a parent in views, especially the PortViews.
public  CellView[]getAllViews()
    
public static  Rectangle2DgetBounds(CellView[] views)
     Returns the bounding box for the specified cell views.
public  CellView[]getCellViews()
    
public  Object[]getCells(boolean groups, boolean vertices, boolean ports, boolean edges)
     A helper method to return various arrays of cells that are visible in this cache.
public  Object[]getCells(CellView[] views)
     Takes an array of views and returns the array of the corresponding cells by using getCell for each view.
protected  ObjectgetChildPort(Object edge, boolean source)
     Hook for subclassers to return the port to be used for edges that have been connected to the group.
public  doublegetCollapseXScale()
    
public  doublegetCollapseYScale()
    
protected  Object[]getContext(GraphModelEvent.GraphModelChange change)
     Hook for subclassers to augment the context for a graphChange.
protected  ListgetEdges(Object cell, Set exclude, boolean visibleCells, boolean selfLoops, boolean incoming)
     Returns the incoming or outgoing edges for cell.
public  CellViewFactorygetFactory()
     Returns the factory that was passed to the constructor.
public  GraphLayoutCacheListener[]getGraphLayoutCacheListeners()
     Return an array of all GraphLayoutCacheListener that were added to this model.
public  CellView[]getHiddenCellViews()
    
public  MapgetHiddenMapping()
     Returns the hiddenMapping.
public  ListgetIncomingEdges(Object cell, Set exclude, boolean visibleCells, boolean selfLoops)
     Returns the incoming edges for cell.
public  SetgetLocalAttributes()
    
public  CellViewgetMapping(Object cell, boolean create)
     Returns the view for the specified cell.
public  CellView[]getMapping(Object[] cells)
     Returns the views for the specified array of cells without creating these views on the fly.
public  CellView[]getMapping(Object[] cells, boolean create)
     Returns the views for the specified array of cells.
public  GraphModelgetModel()
     Returns the current model.
public  ListgetNeighbours(Object cell, Set exclude, boolean directed, boolean visibleCells)
     Returns a collection of cells that are connected to the specified cell by edges.
public  ListgetOutgoingEdges(Object cell, Set exclude, boolean visibleCells, boolean selfLoops)
     Returns the outgoing edges for cell.
protected  ObjectgetParentPort(Object edge, boolean source)
     Hook for subclassers to return the first or last visible port to replace the current source or target port of the edge.
protected  CollectiongetParentPorts(Object cell)
    
public  booleangetPartial()
    
public  PortView[]getPorts()
     Returns the ports of the view.
protected  CollectiongetPorts(Object cell)
    
public  CellView[]getRoots()
     Returns the roots of the view.
public  CellView[]getRoots(Rectangle2D clip)
     Return all root cells that intersect the given rectangle.
public  Object[]getVisibleCells(Object[] cells)
     Returns a an array with the visible cells in cells.
public  SetgetVisibleSet()
    
public  voidgraphChanged(GraphModelEvent.GraphModelChange change)
     Called from BasicGraphUI.ModelHandler to update the view based on the specified GraphModelEvent.
protected  MaphandleAttributes(Map attributes)
     Attention: Undo will not work for routing-change if ROUTING and POINTS are stored in different locations.
protected  booleanhasVisibleParent(Object cell, Set invisible)
     Checks if the port or one of its parents is visible.
public  voidhideCells(Object[] cells, boolean descandants)
     Hides the specified cells with all children if descandants is true.
protected  voidhideCellsForChange(GraphModelEvent.GraphModelChange change)
    
public  voidinsert(Object[] roots, Map attributes, ConnectionSet cs, ParentMap pm, UndoableEdit[] e)
     Inserts the cells and connections into the model, and absorbs the local attributes.
public  voidinsert(Object cell)
     Inserts the specified vertex into the graph model.
public  voidinsert(Object[] cells)
     Inserts the specified cells into the graph model.
public  voidinsert(Object[] cells, Map nested, ConnectionSet cs, ParentMap pm)
     Variant of the insert method that allows to pass a default connection set and parent map and nested map.
public  Object[]insertClones(Object[] cells, Map clones, Map nested, ConnectionSet cs, ParentMap pm, double dx, double dy)
     Inserts the cloned cells from the clone map and clones the passed-in arguments according to the clone map before insertion and returns the clones in order of the cells.
public  voidinsertEdge(Object edge, Object source, Object target)
     Inserts the specified edge into the graph model.
public  voidinsertGroup(Object group, Object[] children)
     Inserts the specified cell as a parent of children.
public  voidinsertViews(CellView[] views)
     Adds the specified model root cells to the view.
public  booleanisAllAttributesLocal()
    
public  booleanisAutoSizeOnValueChange()
    
protected  booleanisControlAttribute(Object cell, Object key, Object value)
    
public  booleanisHidesDanglingConnections()
     Returns the hidesDanglingConnections.
public  booleanisHidesExistingConnections()
     Returns the hidesExistingConnections.
protected  booleanisLocalAttribute(Object cell, Object key, Object value)
    
public  booleanisMovesChildrenOnExpand()
    
public  booleanisMovesParentsOnCollapse()
    
public  booleanisPartial()
    
public  booleanisReconnectsEdgesToVisibleParent()
    
public  booleanisRemembersCellViews()
     Returns the remembersCellViews.
public  booleanisResizesParentsOnCollapse()
    
public  booleanisSelectsAllInsertedCells()
    
public  booleanisSelectsLocalInsertedCells()
    
public  booleanisShowsChangedConnections()
    
public  booleanisShowsExistingConnections()
     Returns the showsExistingConnections.
public  booleanisShowsInsertedConnections()
     Returns the showsInsertedConnections.
public  booleanisVisible(Object cell)
    
public  voidputMapping(Object cell, CellView view)
     Associates the specified model cell with the specified view.
public  voidrefresh(CellView[] views, boolean create)
    
public  voidrefresh(CellView view, boolean create)
    
public synchronized  voidreload()
     Remaps all existing views using the CellViewFactory and replaces the respective root views.
protected  voidreloadRoots()
     Completely reloads all roots from the model in the order returned by DefaultGraphModel.getAll.
public  voidremove(Object[] cells)
     Removes cells from the model.
public  voidremove(Object[] cells, boolean descendants, boolean edges)
     Removes cells from the model, including all children and connected edges if children or edges is true, respectively.
public  CellView[]removeCells(Object[] cells)
     Removes the specified model root cells from the view by removing the mapping between the cell and its view and makes the cells invisible.
public  voidremoveGraphLayoutCacheListener(GraphLayoutCacheListener l)
     Removes a listener previously added with addGraphLayoutCacheListener() .
public  CellViewremoveMapping(Object cell)
     Removes the associaten for the specified model cell and returns the view that was previously associated with the cell.
public  booleanremoveViewLocalAttribute(Object key, boolean addToModel, boolean override)
     Handles the removal of view local attributes.
public  voidsetAllAttributesLocal(boolean allAttributesLocal)
    
public  voidsetAutoSizeOnValueChange(boolean flag)
     Determines whether cells should be auto-sized when their values change.
public  voidsetCollapseXScale(double collapseXScale)
    
public  voidsetCollapseYScale(double collapseYScale)
    
public  voidsetCollapsedState(Object[] collapse, Object[] expand)
    
public  voidsetFactory(CellViewFactory factory)
     Sets the factory that creates the cell views.
public  voidsetHiddenSet(Map hiddenSet)
     Sets the hiddenSet.
public  voidsetHidesDanglingConnections(boolean hidesDanglingConnections)
    
public  voidsetHidesExistingConnections(boolean hidesExistingConnections)
    
public  voidsetLocalAttributes(Set localAttributes)
    
public  voidsetModel(GraphModel model)
     Sets the current model.
public  voidsetMovesChildrenOnExpand(boolean moveChildrenOnExpand)
    
public  voidsetMovesParentsOnCollapse(boolean movesParentsOnCollapse)
    
public  voidsetReconnectsEdgesToVisibleParent(boolean reconnectsEdgesToVisibleParent)
    
public  voidsetRemembersCellViews(boolean rememberCellViews)
     Sets the rememberCellViews.
public  voidsetResizesParentsOnCollapse(boolean resizesParentsOnCollapse)
    
public  voidsetSelectsAllInsertedCells(boolean selectsAllInsertedCells)
    
public  voidsetSelectsLocalInsertedCells(boolean selectsLocalInsertedCells)
    
public  voidsetShowsChangedConnections(boolean showsChangedConnections)
    
public  voidsetShowsExistingConnections(boolean showsExistingConnections)
    
public  voidsetShowsInsertedConnections(boolean showsInsertedConnections)
    
public  voidsetVisible(Object cell, boolean visible)
     Makes the specified cell visible or invisible depending on the flag passed in.
public  voidsetVisible(Object[] cells, boolean visible)
     Makes the specified cells visible or invisible depending on the flag passed in.
public  voidsetVisible(Object[] visible, Object[] invisible)
     Changes the visibility state of the cells passed in.
public  voidsetVisible(Object[] visible, Object[] invisible, ConnectionSet cs)
     Changes the visibility state of the cells passed in.
public  booleansetVisibleImpl(Object[] cells, boolean visible)
     The actual implementation of changing cells' visibility state.
public  voidsetVisibleSet(Set visible)
    
public  voidshowCells(Object[] cells, boolean descandants)
     Shows the specified cells with all children if descandants is true.
protected  voidshowCellsForChange(GraphModelEvent.GraphModelChange change)
    
public  voidtoBack(Object[] cells)
     Sends cells to back.
public  voidtoFront(Object[] cells)
     Brings cells to front.
public  voidtoggleCollapsedState(Object[] cells, boolean collapseOnly, boolean expandOnly)
     Toggles the collapsed state of the specified cells.
public static  voidtranslateViews(CellView[] views, double dx, double dy)
     Translates the specified views by the given amount.
public  Object[]ungroup(Object[] cells)
     Ungroups all groups in cells and returns the children that are not ports.
public  voidupdate(CellView[] views)
    
public  voidupdate(CellView view)
    
protected  voidupdatePorts()
     Updates the cached array of ports.
public  voidvalueForCellChanged(Object cell, Object newValue)
     Messaged when the user has altered the value for the item identified by cell to newValue.

Field Detail
allAttributesLocal
protected boolean allAttributesLocal(Code)
Controls if all attributes are local. If this is false then the createLocalEdit will check the localAttributes set to see if a specific attribute is local, otherwise it will assume that all attributes are local. This allows to make all attributes local without actually knowing them. Default is false.



autoSizeOnValueChange
protected boolean autoSizeOnValueChange(Code)
True if the cells should be auto-sized when their values change. Default is false.



collapseXScalecollapseYScale
protected double collapseXScalecollapseYScale(Code)
Specified the initial x- and y-scaling factor for initial collapsed group bounds. Default is 1.0, ie. no scaling.



factory
protected CellViewFactory factory(Code)
Factory to create the views.



graphModel
protected GraphModel graphModel(Code)
Reference to the graphModel



hiddenMapping
protected transient Map hiddenMapping(Code)
Maps cells to views. The hidden mapping is used to remembed cell views that are hidden, based on the remembersCellViews setting. hiddenMapping must use weak keys for the cells since when cells are removed hiddenMapping is not updated.



hidesDanglingConnections
protected boolean hidesDanglingConnections(Code)
Boolean indicating whether existing connections should be hidden if their source or target port is removed from the model. Default is false.



hidesExistingConnections
protected boolean hidesExistingConnections(Code)
Boolean indicating whether existing connections should be hidden if their source or target and no parent of the ports is visible, either by hiding the cell or by changing the source or target of the edge to a hidden cell. Default is true.



listenerList
protected EventListenerList listenerList(Code)
The list of listeners that listen to the model.



localAttributes
protected Set localAttributes(Code)
A set containing all attribute keys that are stored in the cell views, in other words, the view-local attributes.



mapping
protected Map mapping(Code)
Maps cells to views.



movesChildrenOnExpand
protected boolean movesChildrenOnExpand(Code)
Boolean indicating whether children should be moved to the parent group's origin on expand. Default is true.



movesParentsOnCollapse
protected boolean movesParentsOnCollapse(Code)
Boolean indicating whether parents should be moved to the child area origin on collapse. Default is true.



partial
protected boolean partial(Code)
Only portions of the model are visible.



ports
protected PortView[] ports(Code)
Cached array of all ports for the view.



reconnectsEdgesToVisibleParent
protected boolean reconnectsEdgesToVisibleParent(Code)
Boolean indicating whether edges should be reconneted to visible parents on collapse/expand. Default is false.



remembersCellViews
protected boolean remembersCellViews(Code)
Boolean indicating whether cellviews should be remembered once visible in this GraphLayoutCache. Default is true.



resizesParentsOnCollapse
protected boolean resizesParentsOnCollapse(Code)
Boolean indicating whether parents should always be resized to the child area on collapse. If false the size is only initially updated if it has not yet been assigned. Default is false.



roots
protected List roots(Code)
Ordered list of roots for the view.



selectsAllInsertedCells
protected boolean selectsAllInsertedCells(Code)
Boolean indicating whether inserted cells should automatically be selected. Default is true. This is ignored if the cache is partial. Note: Despite the name of this field the implementation is located in the BasicGraphUI.GraphModelHandler.graphChanged method.



selectsLocalInsertedCells
protected boolean selectsLocalInsertedCells(Code)
Boolean indicating whether cells that are inserted using the local insert method should automatically be selected. Default is true. This is ignored if the cache is not partial and selectsAllInsertedCells is true, in which case the cells will be selected through another mechanism. Note: Despite the name of this field the implementation is located in the BasicGraphUI.GraphLayoutCacheObserver.changed method.



showsChangedConnections
protected boolean showsChangedConnections(Code)
Boolean indicating whether connections should be made visible when reconnected and their source and target port is visible. Default is true.



showsExistingConnections
protected boolean showsExistingConnections(Code)
Boolean indicating whether existing connections should me made visible if their sources or targets are made visible, given the opposite end of the edge is already visible or made visible, too. Default is true.



showsInsertedCells
protected boolean showsInsertedCells(Code)
Boolean indicating whether inserted should be made visible if they are inserted via GraphLayoutCache.insert(Object[],Map,ConnectionSet,ParentMap,UndoableEdit[]) . Default is true.



showsInsertedConnections
protected boolean showsInsertedConnections(Code)
Boolean indicating whether inserted edges should me made visible if their sources or targets are already visible. Default is true.



showsInvisibleEditedCells
protected boolean showsInvisibleEditedCells(Code)
Boolean indicating whether edited cells should be made visible if they are changed via GraphLayoutCache.edit(Map,ConnectionSet,ParentMap,UndoableEdit[]) . Default is true.



visibleSet
protected Set visibleSet(Code)
The set of visible cells.




Constructor Detail
GraphLayoutCache
public GraphLayoutCache()(Code)
Constructs a graph layout cache.



GraphLayoutCache
public GraphLayoutCache(GraphModel model, CellViewFactory factory)(Code)
Constructs a view for the specified model that uses factory to create its views.
Parameters:
  model - the model that constitues the data source



GraphLayoutCache
public GraphLayoutCache(GraphModel model, CellViewFactory factory, boolean partial)(Code)
Constructs a view for the specified model that uses factory to create its views.
Parameters:
  model - the model that constitues the data source



GraphLayoutCache
public GraphLayoutCache(GraphModel model, CellViewFactory factory, CellView[] cellViews, CellView[] hiddenCellViews, boolean partial)(Code)
Constructs a view for the specified model that uses factory to create its views.
Parameters:
  model - the model that constitues the data source




Method Detail
addGraphLayoutCacheListener
public void addGraphLayoutCacheListener(GraphLayoutCacheListener l)(Code)
Adds a listener for the GraphLayoutCacheEvent posted after the graph layout cache changes.
See Also:   GraphLayoutCache.removeGraphLayoutCacheListener
Parameters:
  l - the listener to add



addVisibleDependencies
protected Object[] addVisibleDependencies(Object[] cells, boolean visible)(Code)



augment
protected UndoableEdit[] augment(UndoableEdit[] e, UndoableEdit edit)(Code)



augmentNestedMapForValueChange
protected void augmentNestedMapForValueChange(Map nested, Object cell, Object newValue)(Code)
Hook for subclassers to add more stuff for value changes. Currently this adds the new value to the change.



cellExpanded
protected void cellExpanded(Object cell)(Code)
Called when a child has been made visible by expanding its parent. This implementation translates the child so that it reflects the offset of the parent group since the child was last visible (see GraphLayoutCache.movesChildrenOnExpand ).



cellViewsChanged
public void cellViewsChanged(CellView[] cellViews)(Code)
Invoke this method after you've changed how the cells are to be represented in the graph.



cellWillCollapse
protected void cellWillCollapse(Object cell)(Code)



collapse
public void collapse(Object[] groups)(Code)
Collapses all groups by hiding all their descendants.
Parameters:
  groups -



createLocalEdit
protected GraphLayoutCacheEdit createLocalEdit(Object[] inserted, Map nested, Object[] visible, Object[] invisible)(Code)
Creates a local edit for the specified change. A local operation contains all visibility changes, as well as all changes to attributes that are local, and all control attributes.
Note: You must use cells as keys for the nested map, not cell views.



createNestedMap
public Map createNestedMap()(Code)
Returns a nested map of (cell, map) pairs that represent all attributes of all cell views in this view.
See Also:   GraphLayoutCache.getCellViews



edit
public void edit(Map attributes, ConnectionSet cs, ParentMap pm, UndoableEdit[] e)(Code)
Applies the propertyMap and the connection changes to the model. The initial edits that triggered the call are considered to be part of this transaction. Notifies the model- and undo listeners of the change. Note: The passed in attributes may contain PortViews.



edit
public void edit(Map attributes)(Code)
A shortcut method that takes a nested map and passes it to the edit method.



edit
public void edit(Object[] cells, Map attributes)(Code)
Applies the attributes to all cells by creating a map that contains the attributes for each cell and passing it to edit on this layout cache. Example:
 Map attrs = new java.util.Hashtable();
 GraphConstants.setBackground(attrs, Color.RED);
 graph.getGraphLayoutCache().edit(graph.getSelectionCells(), attrs);
 



editCell
public void editCell(Object cell, Map attributes)(Code)
Applies the attributes to a single cell by creating a map that contains the attributes for this cell and passing it to edit on this layout cache. Example:
 Map attrs = new java.util.Hashtable();
 GraphConstants.setBackground(attrs, Color.RED);
 graph.getGraphLayoutCache().editCell(graph.getSelectionCell(), attrs);
 



expand
public void expand(Object[] cells)(Code)
Expands all groups by showing all children. (Note: This does not show all descandants, but only the first generation of children.)



fireGraphLayoutCacheChanged
protected void fireGraphLayoutCacheChanged(Object source, GraphLayoutCacheEvent.GraphLayoutCacheChange edit)(Code)



getAllDescendants
public CellView[] getAllDescendants(CellView[] views)(Code)
Returns all views, including descendants that have a parent in views, especially the PortViews. Note: Iterative Implementation using model.getChild and getMapping on this cell mapper.



getAllViews
public CellView[] getAllViews()(Code)
Returns all views, shortcut to getAllDescendants(getRoots())



getBounds
public static Rectangle2D getBounds(CellView[] views)(Code)
Returns the bounding box for the specified cell views.



getCellViews
public CellView[] getCellViews()(Code)
Returns an unordered array of all visible cellviews.



getCells
public Object[] getCells(boolean groups, boolean vertices, boolean ports, boolean edges)(Code)
A helper method to return various arrays of cells that are visible in this cache. For example, to get all selected vertices in a graph, do graph.getSelectionCells(graph.getGraphLayoutCache().getCells(false, true, false, false));



getCells
public Object[] getCells(CellView[] views)(Code)
Takes an array of views and returns the array of the corresponding cells by using getCell for each view.



getChildPort
protected Object getChildPort(Object edge, boolean source)(Code)
Hook for subclassers to return the port to be used for edges that have been connected to the group. This is called from expand. This returns the first port of the first or last vertex depending on source.



getCollapseXScale
public double getCollapseXScale()(Code)
Returns the collapseXScale.



getCollapseYScale
public double getCollapseYScale()(Code)
Returns the collapseYScale.



getContext
protected Object[] getContext(GraphModelEvent.GraphModelChange change)(Code)
Hook for subclassers to augment the context for a graphChange. This means you can add additional cells that should be refreshed on a special change event. eg. parallel edges when one is removed or added.



getEdges
protected List getEdges(Object cell, Set exclude, boolean visibleCells, boolean selfLoops, boolean incoming)(Code)
Returns the incoming or outgoing edges for cell. Cell should be a port or a vertex.
Parameters:
  cell - The cell from which the edges will be determined
Parameters:
  exclude - The set of edges to ignore when searching
Parameters:
  visibleCells - whether or not only visible cells should be processed
Parameters:
  selfLoops - whether or not to include self loops in the returned list
Parameters:
  incoming - true if incoming edges are to be obtained,false if outgoing edges are to be obtained Returns the list of incoming or outgoing edges forcell



getFactory
public CellViewFactory getFactory()(Code)
Returns the factory that was passed to the constructor.



getGraphLayoutCacheListeners
public GraphLayoutCacheListener[] getGraphLayoutCacheListeners()(Code)
Return an array of all GraphLayoutCacheListener that were added to this model.



getHiddenCellViews
public CellView[] getHiddenCellViews()(Code)
Returns an unordered array of all hidden cellviews.



getHiddenMapping
public Map getHiddenMapping()(Code)
Returns the hiddenMapping. Map



getIncomingEdges
public List getIncomingEdges(Object cell, Set exclude, boolean visibleCells, boolean selfLoops)(Code)
Returns the incoming edges for cell. Cell should be a port or a vertex.
Parameters:
  cell - The cell from which the incoming edges will be determined
Parameters:
  exclude - The set of edges to ignore when searching
Parameters:
  visibleCells - whether or not only visible cells should be processed
Parameters:
  selfLoops - whether or not to include self loops in the returned list Returns the list of incoming edges for cell



getLocalAttributes
public Set getLocalAttributes()(Code)
Returns the localAttributes.



getMapping
public CellView getMapping(Object cell, boolean create)(Code)
Returns the view for the specified cell. If create is true and no view is found then a view is created using createView(Object).



getMapping
public CellView[] getMapping(Object[] cells)(Code)
Returns the views for the specified array of cells without creating these views on the fly.



getMapping
public CellView[] getMapping(Object[] cells, boolean create)(Code)
Returns the views for the specified array of cells. Returned array may contain null pointers if the respective cell is not mapped in this view and create is false.



getModel
public GraphModel getModel()(Code)
Returns the current model.



getNeighbours
public List getNeighbours(Object cell, Set exclude, boolean directed, boolean visibleCells)(Code)
Returns a collection of cells that are connected to the specified cell by edges. Any cells specified in the exclude set will be ignored.
Parameters:
  cell - The cell from which the neighbours will be determined
Parameters:
  exclude - The set of cells to ignore when searching
Parameters:
  directed - whether or not direction of edges should be taken into account
Parameters:
  visibleCells - whether or not to only consider visible cells Returns the list of neighbours for cell



getOutgoingEdges
public List getOutgoingEdges(Object cell, Set exclude, boolean visibleCells, boolean selfLoops)(Code)
Returns the outgoing edges for cell. Cell should be a port or a vertex.
Parameters:
  cell - The cell from which the outgoing edges will be determined
Parameters:
  exclude - The set of edges to ignore when searching
Parameters:
  visibleCells - whether or not only visible cells should be processed
Parameters:
  selfLoops - whether or not to include self loops in the returned list Returns the list of outgoing edges for cell



getParentPort
protected Object getParentPort(Object edge, boolean source)(Code)
Hook for subclassers to return the first or last visible port to replace the current source or target port of the edge. This is called when groups are collapsed for the edges that cross the group, ie. go from a child cell to a cell which is outside the group. This implementation returns the first port of the parent group if source is true, otherwise it returns the last port of the parent group.



getParentPorts
protected Collection getParentPorts(Object cell)(Code)



getPartial
public boolean getPartial()(Code)
Required for XML persistence whether or not the cache is partial



getPorts
public PortView[] getPorts()(Code)
Returns the ports of the view.



getPorts
protected Collection getPorts(Object cell)(Code)



getRoots
public CellView[] getRoots()(Code)
Returns the roots of the view.



getRoots
public CellView[] getRoots(Rectangle2D clip)(Code)
Return all root cells that intersect the given rectangle.



getVisibleCells
public Object[] getVisibleCells(Object[] cells)(Code)
Returns a an array with the visible cells in cells.



getVisibleSet
public Set getVisibleSet()(Code)



graphChanged
public void graphChanged(GraphModelEvent.GraphModelChange change)(Code)
Called from BasicGraphUI.ModelHandler to update the view based on the specified GraphModelEvent.



handleAttributes
protected Map handleAttributes(Map attributes)(Code)
Attention: Undo will not work for routing-change if ROUTING and POINTS are stored in different locations. This happens if the model holds the routing attribute and the routing changes from unrouted to routed. In this case the points in the view are already routed according to the new scheme when written to the command history (-> no undo).



hasVisibleParent
protected boolean hasVisibleParent(Object cell, Set invisible)(Code)
Checks if the port or one of its parents is visible.



hideCells
public void hideCells(Object[] cells, boolean descandants)(Code)
Hides the specified cells with all children if descandants is true.



hideCellsForChange
protected void hideCellsForChange(GraphModelEvent.GraphModelChange change)(Code)



insert
public void insert(Object[] roots, Map attributes, ConnectionSet cs, ParentMap pm, UndoableEdit[] e)(Code)
Inserts the cells and connections into the model, and absorbs the local attributes. This implementation sets the inserted cells visible and selects the new roots depending on graph.selectNewCells.



insert
public void insert(Object cell)(Code)
Inserts the specified vertex into the graph model. This method does in fact nothing, it calls insert edge with the vertex and the source and target port set to null. This example shows how to add a vertex with a port and a black border:
 DefaultGraphCell vertex = new DefaultGraphCell("Hello, world!");
 Map attrs = vertex.getAttributes();
 GraphConstants.setOpaque(attrs, false);
 GraphConstants.setBorderColor(attrs, Color.black);
 DefaultPort port = new DefaultPort();
 vertex.add(port);
 port.setParent(vertex);
 graph.getGraphLayoutCache().insert(vertex);
 

Parameters:
  cell - inserts the specified cell in the cache



insert
public void insert(Object[] cells)(Code)
Inserts the specified cells into the graph model. This method is a general implementation of cell insertion. If the source and target port are null, then no connection set is created. The method uses the attributes from the specified edge and the egdge's children to construct the insert call. This example shows how to insert an edge with a special arrow between two known vertices:
 Object source = graph.getDefaultPortForCell(sourceVertex).getCell();
 Object target = graph.getDefaultPortForCell(targetVertex).getCell();
 DefaultEdge edge = new DefaultEdge("Hello, world!");
 edge.setSource(source);
 edge.setTarget(target);
 Map attrs = edge.getAttributes();
 GraphConstants.setLineEnd(attrs, GraphConstants.ARROW_TECHNICAL);
 graph.getGraphLayoutCache().insert(edge);
 



insert
public void insert(Object[] cells, Map nested, ConnectionSet cs, ParentMap pm)(Code)
Variant of the insert method that allows to pass a default connection set and parent map and nested map.



insertClones
public Object[] insertClones(Object[] cells, Map clones, Map nested, ConnectionSet cs, ParentMap pm, double dx, double dy)(Code)
Inserts the cloned cells from the clone map and clones the passed-in arguments according to the clone map before insertion and returns the clones in order of the cells. This example shows how to clone the current selection and get a reference to the clones:
 Object[] cells = graph.getDescendants(graph.order(graph.getSelectionCells()));
 ConnectionSet cs = ConnectionSet.create(graphModel, cells, false);
 ParentMap pm = ParentMap.create(graphModel, cells, false, true);
 cells = graphLayoutCache.insertClones(cells, graph.cloneCells(cells),
 attributes, cs, pm, 0, 0);
 



insertEdge
public void insertEdge(Object edge, Object source, Object target)(Code)
Inserts the specified edge into the graph model. This method does in fact nothing, it calls insert with a default connection set.
Parameters:
  edge - the edge to be inserted
Parameters:
  source - the source port this edge is connected to
Parameters:
  target - the target port this edge is connected to



insertGroup
public void insertGroup(Object group, Object[] children)(Code)
Inserts the specified cell as a parent of children. Note: All cells that are not yet in the model will be inserted. This example shows how to group the current selection and pass the group default bounds in case it is later collapsed:
 DefaultGraphCell group = new DefaultGraphCell("Hello, world!");
 Object[] cells = DefaultGraphModel.order(graph.getModel(), graph
 .getSelectionCells());
 Rectangle2D bounds = graph.getCellBounds(cells);
 if (bounds != null) {
 bounds = new Rectangle2D.Double(bounds.getX() + bounds.getWidth() / 4,
 bounds.getY() + bounds.getHeight() / 4, bounds.getWidth() / 2,
 bounds.getHeight() / 2);
 GraphConstants.setBounds(group.getAttributes(), bounds);
 }
 graph.getGraphLayoutCache().insertGroup(group, cells);
 



insertViews
public void insertViews(CellView[] views)(Code)
Adds the specified model root cells to the view. Do not add a view that is already in roots.



isAllAttributesLocal
public boolean isAllAttributesLocal()(Code)
Returns the askLocalAttribute.



isAutoSizeOnValueChange
public boolean isAutoSizeOnValueChange()(Code)
Returns true if cells should be auto-sized when their values change true if cells should be auto-sized when their values change



isControlAttribute
protected boolean isControlAttribute(Object cell, Object key, Object value)(Code)
Returns true if key is a control attribute



isHidesDanglingConnections
public boolean isHidesDanglingConnections()(Code)
Returns the hidesDanglingConnections. boolean



isHidesExistingConnections
public boolean isHidesExistingConnections()(Code)
Returns the hidesExistingConnections. boolean



isLocalAttribute
protected boolean isLocalAttribute(Object cell, Object key, Object value)(Code)
Returns true if the set of local attributes contains key



isMovesChildrenOnExpand
public boolean isMovesChildrenOnExpand()(Code)
Returns the moveChildrenOnExpand.



isMovesParentsOnCollapse
public boolean isMovesParentsOnCollapse()(Code)
Returns the movesParentsOnCollapse.



isPartial
public boolean isPartial()(Code)



isReconnectsEdgesToVisibleParent
public boolean isReconnectsEdgesToVisibleParent()(Code)
Returns the reconnectsEdgesToVisibleParent.



isRemembersCellViews
public boolean isRemembersCellViews()(Code)
Returns the remembersCellViews. boolean



isResizesParentsOnCollapse
public boolean isResizesParentsOnCollapse()(Code)
Returns the resizesParentsOnCollapse.



isSelectsAllInsertedCells
public boolean isSelectsAllInsertedCells()(Code)
Returns the selectsAllInsertedCells.



isSelectsLocalInsertedCells
public boolean isSelectsLocalInsertedCells()(Code)
Returns the selectsLocalInsertedCells.



isShowsChangedConnections
public boolean isShowsChangedConnections()(Code)
Returns the showsChangedConnections.



isShowsExistingConnections
public boolean isShowsExistingConnections()(Code)
Returns the showsExistingConnections. boolean



isShowsInsertedConnections
public boolean isShowsInsertedConnections()(Code)
Returns the showsInsertedConnections. boolean



isVisible
public boolean isVisible(Object cell)(Code)



putMapping
public void putMapping(Object cell, CellView view)(Code)
Associates the specified model cell with the specified view.



refresh
public void refresh(CellView[] views, boolean create)(Code)



refresh
public void refresh(CellView view, boolean create)(Code)



reload
public synchronized void reload()(Code)
Remaps all existing views using the CellViewFactory and replaces the respective root views.



reloadRoots
protected void reloadRoots()(Code)
Completely reloads all roots from the model in the order returned by DefaultGraphModel.getAll. This uses the current visibleSet and mapping to fetch the cell views for the cells.



remove
public void remove(Object[] cells)(Code)
Removes cells from the model.



remove
public void remove(Object[] cells, boolean descendants, boolean edges)(Code)
Removes cells from the model, including all children and connected edges if children or edges is true, respectively.
Parameters:
  cells - The cells to remove.
Parameters:
  descendants - Whether to remove all descendants as well.
Parameters:
  edges - Whether to remove all connected edges as well.



removeCells
public CellView[] removeCells(Object[] cells)(Code)
Removes the specified model root cells from the view by removing the mapping between the cell and its view and makes the cells invisible.



removeGraphLayoutCacheListener
public void removeGraphLayoutCacheListener(GraphLayoutCacheListener l)(Code)
Removes a listener previously added with addGraphLayoutCacheListener() .
See Also:   GraphLayoutCache.addGraphLayoutCacheListener
Parameters:
  l - the listener to remove



removeMapping
public CellView removeMapping(Object cell)(Code)
Removes the associaten for the specified model cell and returns the view that was previously associated with the cell. Updates the portlist if necessary.



removeViewLocalAttribute
public boolean removeViewLocalAttribute(Object key, boolean addToModel, boolean override)(Code)
Handles the removal of view local attributes. Since these attributes are only being stored in the view, the option is provided to copy the values for that key into the model. Without this, those values are lost.
Parameters:
  key - the key of the view local attribute
Parameters:
  addToModel - whether or not to move the attribute values to the graph model
Parameters:
  override - whether or not to override the key's value in the model cell'sattribute map if it exists whether or not the operation completed sucessfully



setAllAttributesLocal
public void setAllAttributesLocal(boolean allAttributesLocal)(Code)

Parameters:
  allAttributesLocal - The allAttributesLocal to set.



setAutoSizeOnValueChange
public void setAutoSizeOnValueChange(boolean flag)(Code)
Determines whether cells should be auto-sized when their values change. Fires a property change event if the new setting is different from the existing setting.
Parameters:
  flag - a boolean value, true if cells should be auto-sized when theirvalues change



setCollapseXScale
public void setCollapseXScale(double collapseXScale)(Code)

Parameters:
  collapseXScale - The collapseXScale to set.



setCollapseYScale
public void setCollapseYScale(double collapseYScale)(Code)

Parameters:
  collapseYScale - The collapseYScale to set.



setCollapsedState
public void setCollapsedState(Object[] collapse, Object[] expand)(Code)
Collapses and/or expands the specified cell(s)
Parameters:
  collapse - the cells to be collapsed
Parameters:
  expand - the cells to be expanded



setFactory
public void setFactory(CellViewFactory factory)(Code)
Sets the factory that creates the cell views.



setHiddenSet
public void setHiddenSet(Map hiddenSet)(Code)
Sets the hiddenSet.
Parameters:
  hiddenSet - The hiddenSet to set



setHidesDanglingConnections
public void setHidesDanglingConnections(boolean hidesDanglingConnections)(Code)
Sets the hidesDanglingConnections
Parameters:
  hidesDanglingConnections -



setHidesExistingConnections
public void setHidesExistingConnections(boolean hidesExistingConnections)(Code)
Sets the hidesExistingConnections
Parameters:
  hidesExistingConnections -



setLocalAttributes
public void setLocalAttributes(Set localAttributes)(Code)

Parameters:
  localAttributes - The localAttributes to set.



setModel
public void setModel(GraphModel model)(Code)
Sets the current model.



setMovesChildrenOnExpand
public void setMovesChildrenOnExpand(boolean moveChildrenOnExpand)(Code)

Parameters:
  moveChildrenOnExpand - The moveChildrenOnExpand to set.



setMovesParentsOnCollapse
public void setMovesParentsOnCollapse(boolean movesParentsOnCollapse)(Code)

Parameters:
  movesParentsOnCollapse - The movesParentsOnCollapse to set.



setReconnectsEdgesToVisibleParent
public void setReconnectsEdgesToVisibleParent(boolean reconnectsEdgesToVisibleParent)(Code)

Parameters:
  reconnectsEdgesToVisibleParent - The reconnectsEdgesToVisibleParent to set.



setRemembersCellViews
public void setRemembersCellViews(boolean rememberCellViews)(Code)
Sets the rememberCellViews.
Parameters:
  rememberCellViews - The rememberCellViews to set



setResizesParentsOnCollapse
public void setResizesParentsOnCollapse(boolean resizesParentsOnCollapse)(Code)

Parameters:
  resizesParentsOnCollapse - The resizesParentsOnCollapse to set.



setSelectsAllInsertedCells
public void setSelectsAllInsertedCells(boolean selectsAllInsertedCells)(Code)

Parameters:
  selectsAllInsertedCells - The selectsAllInsertedCells to set.



setSelectsLocalInsertedCells
public void setSelectsLocalInsertedCells(boolean selectsLocalInsertedCells)(Code)

Parameters:
  selectsLocalInsertedCells - The selectsLocalInsertedCells to set.



setShowsChangedConnections
public void setShowsChangedConnections(boolean showsChangedConnections)(Code)

Parameters:
  showsChangedConnections - The showsChangedConnections to set.



setShowsExistingConnections
public void setShowsExistingConnections(boolean showsExistingConnections)(Code)
Sets the showsExistingConnections
Parameters:
  showsExistingConnections -



setShowsInsertedConnections
public void setShowsInsertedConnections(boolean showsInsertedConnections)(Code)
Sets the showsInsertedConnections
Parameters:
  showsInsertedConnections -



setVisible
public void setVisible(Object cell, boolean visible)(Code)
Makes the specified cell visible or invisible depending on the flag passed in. Note the cell really is a cell, not a cell view.
Parameters:
  cell - the cell whose visibility is to be changed
Parameters:
  visible - true if cell is to be made visible



setVisible
public void setVisible(Object[] cells, boolean visible)(Code)
Makes the specified cells visible or invisible depending on the flag passed in. Note the cells really are cells, not cell views.
Parameters:
  cells - the cells whose visibility is to be changed
Parameters:
  visible - true if the cells are to be made visible



setVisible
public void setVisible(Object[] visible, Object[] invisible)(Code)
Changes the visibility state of the cells passed in. Note that the arrays must contain cells, not cell views.
Parameters:
  visible - cells to be made visible
Parameters:
  invisible - cells to be made invisible



setVisible
public void setVisible(Object[] visible, Object[] invisible, ConnectionSet cs)(Code)
Changes the visibility state of the cells passed in. Note that the arrays must contain cells, not cell views.
Parameters:
  visible - cells to be made visible
Parameters:
  invisible - cells to be made invisible
Parameters:
  cs - a ConnectionSet describing the new state ofedge connections in the graph



setVisibleImpl
public boolean setVisibleImpl(Object[] cells, boolean visible)(Code)
The actual implementation of changing cells' visibility state. This method does not deal with creating the undo or updating the GraphLayoutCache correctly. The setVisible methods in this class are intended to be the main public way to change visiblilty. However, if you do not require the undo to be formed, this method is much quicker, just note that you must call updatePorts if this method returns true.
Parameters:
  cells -
Parameters:
  visible - whether or not the ports needed updating in the calling method



setVisibleSet
public void setVisibleSet(Set visible)(Code)



showCells
public void showCells(Object[] cells, boolean descandants)(Code)
Shows the specified cells with all children if descandants is true.



showCellsForChange
protected void showCellsForChange(GraphModelEvent.GraphModelChange change)(Code)



toBack
public void toBack(Object[] cells)(Code)
Sends cells to back. Note: This expects an array of cells!



toFront
public void toFront(Object[] cells)(Code)
Brings cells to front. Note: This expects an array of cells!



toggleCollapsedState
public void toggleCollapsedState(Object[] cells, boolean collapseOnly, boolean expandOnly)(Code)
Toggles the collapsed state of the specified cells.
Parameters:
  cells - The cells to toggle the collapsed state for.
Parameters:
  collapseOnly - Whether cells should only be collapsed.
Parameters:
  expandOnly - Whether cells should only be expanded.



translateViews
public static void translateViews(CellView[] views, double dx, double dy)(Code)
Translates the specified views by the given amount.
Parameters:
  views - an array of cell view to each be translated
Parameters:
  dx - the amount to translate the views in the x-axis
Parameters:
  dy - the amount to translate the views in the x-axis



ungroup
public Object[] ungroup(Object[] cells)(Code)
Ungroups all groups in cells and returns the children that are not ports. Note: This replaces the parents with their group cells in the group structure.



update
public void update(CellView[] views)(Code)



update
public void update(CellView view)(Code)



updatePorts
protected void updatePorts()(Code)
Updates the cached array of ports.



valueForCellChanged
public void valueForCellChanged(Object cell, Object newValue)(Code)
Messaged when the user has altered the value for the item identified by cell to newValue. If newValue signifies a truly new value the model should post a graphCellsChanged event. This calls augmentNestedMapForValueChange.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.