Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph v5.0
PREV NEXT | FRAMES NO FRAMES

## Uses of Interface
org.jgraph.graph.GraphModel

Packages that use GraphModel
org.jgraph | JGraph's topmost package which contains the JGraph class.
org.jgraph.graph | Graphs are made up of a number of classes and interfaces defined in their own package - the `jgraph.graph` package.
org.jgraph.plaf.basic | Contains the BasicGraphUI, which is GraphUI's default implementation.

Uses of GraphModel in org.jgraph

Fields in org.jgraph declared as GraphModel
`protected GraphModel` | `JGraph.graphModel` The model that defines the graph displayed by this object.

Methods in org.jgraph that return GraphModel
`GraphModel` | `JGraph.getModel()` Returns the `GraphModel` that is providing the data.

Methods in org.jgraph with parameters of type GraphModel
`static void` | `JGraph.addSampleData(GraphModel model)` Creates and returns a sample `GraphModel`.
`void` | `JGraph.setModel(GraphModel newModel)` Sets the `GraphModel` that will provide the data.

Constructors in org.jgraph with parameters of type GraphModel
`JGraph(GraphModel model)` Returns an instance of `JGraph` which displays the the specified data model.
`JGraph(GraphModel model, GraphLayoutCache view)` Returns an instance of `JGraph` which displays the specified data model using the specified view.
`JGraph(GraphModel model, BasicMarqueeHandler mh)` Returns an instance of `JGraph` which displays the specified data model using the specified view.
`JGraph(GraphModel model, GraphLayoutCache view, BasicMarqueeHandler mh)` Returns an instance of `JGraph` which displays the specified data model using the specified view.

Uses of GraphModel in org.jgraph.graph

Classes in org.jgraph.graph that implement GraphModel
`class` | `DefaultGraphModel` A simple implementation of a graph model.

Fields in org.jgraph.graph declared as GraphModel
`protected GraphModel` | `GraphLayoutCache.graphModel` Reference to the graphModel

Methods in org.jgraph.graph that return GraphModel
`GraphModel` | `AbstractCellView.getModel()` Returns the model associated with the view.
`GraphModel` | `GraphLayoutCache.getModel()` Returns the current model.

Methods in org.jgraph.graph with parameters of type GraphModel
`static Map` | `GraphConstants.createAttributesFromModel(Object[] elements, GraphModel model)`
`void` | `GraphLayoutCache.setModel(GraphModel model)` Sets the current model.
`static ParentMap` | `ParentMap.create(GraphModel m, Object[] c, boolean remove, boolean strict)` Returns a parent map that represents the insertion or removal of `cells` in `model` based on `remove`.
`static ConnectionSet` | `ConnectionSet.create(GraphModel m, Object[] cells, boolean disconnect)` Returns a connection set that represents the connection or disconnection of `cells` in `model` based on `disconnect`.
`static Object` | `DefaultGraphModel.getSourceVertex(GraphModel model, Object edge)` Returns the source vertex of the edge by calling getParent on getSource on the specified model.
`static Object` | `DefaultGraphModel.getTargetVertex(GraphModel model, Object edge)` Returns the target vertex of the edge by calling getParent on getTarget on the specified model.
`static Object[]` | `DefaultGraphModel.getRoots(GraphModel model)` Returns the roots of the specified model as an array.
`static Set` | `DefaultGraphModel.getEdges(GraphModel model, Object[] cells)` Return the set of edges that are connected to the specified cells.
`static Set` | `DefaultGraphModel.getDescendants(GraphModel model, Object[] cells)` Flattens the given array of root cells by adding the roots and their descandants.
`static List` | `DefaultGraphModel.getDescendantList(GraphModel model, Object[] cells)`

Constructors in org.jgraph.graph with parameters of type GraphModel
`GraphLayoutCache(JGraph graph, GraphModel model, CellViewFactory factory, boolean ordered, boolean partial)` Constructs a view for the specified model that uses `factory` to create its views.
`GraphLayoutCache(JGraph graph, GraphModel model, CellViewFactory factory, boolean ordered, boolean partial, boolean rememberCellViews, boolean showAllEdgesForVisibleVertices, boolean showEdgesOnShow, boolean hideEdgesOnHide, boolean hideEdgesOnBecomeInvisible)` Constructs a view for the specified model that uses `factory` to create its views.

Uses of GraphModel in org.jgraph.plaf.basic

Fields in org.jgraph.plaf.basic declared as GraphModel
`protected GraphModel` | `BasicGraphUI.graphModel` Used to determine what to display.

Methods in org.jgraph.plaf.basic with parameters of type GraphModel
`protected void` | `BasicGraphUI.setModel(GraphModel model)` Sets the GraphModel.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph v5.0
PREV NEXT | FRAMES NO FRAMES

Copyright (C) 2003-2004 Gaudenz Alder. All rights reserved.