Uses of Interface
org.jgraph.graph.GraphModel
Packages that use GraphModel
Package
Description
JGraph's topmost package which contains the JGraph class.
Graphs are made up of a number of classes and interfaces defined in their own
package - the
jgraph.graph package.Contains the BasicGraphUI, which is GraphUI's default implementation.
-
Uses of GraphModel in org.jgraph
Fields in org.jgraph declared as GraphModelModifier and TypeFieldDescriptionprotected GraphModelJGraph.graphModelThe model that defines the graph displayed by this object.Methods in org.jgraph that return GraphModelModifier and TypeMethodDescriptionJGraph.getModel()Returns theGraphModelthat is providing the data.Methods in org.jgraph with parameters of type GraphModelModifier and TypeMethodDescriptionstatic voidJGraph.addSampleData(GraphModel model) Creates and returns a sampleGraphModel.voidJGraph.setModel(GraphModel newModel) Sets theGraphModelthat will provide the data.Constructors in org.jgraph with parameters of type GraphModelModifierConstructorDescriptionJGraph(GraphModel model) Returns an instance ofJGraphwhich displays the the specified data model.JGraph(GraphModel model, BasicMarqueeHandler mh) Returns an instance ofJGraphwhich displays the specified data model and assigns the specified marquee handlerJGraph(GraphModel model, GraphLayoutCache cache) Returns an instance ofJGraphwhich displays the specified data model using the specified view.JGraph(GraphModel model, GraphLayoutCache layoutCache, BasicMarqueeHandler mh) Returns an instance ofJGraphwhich displays the specified data model using the specified view and assigns the specified marquee handler -
Uses of GraphModel in org.jgraph.graph
Classes in org.jgraph.graph that implement GraphModelModifier and TypeClassDescriptionclassThe default implementation of a graph model.Fields in org.jgraph.graph declared as GraphModelModifier and TypeFieldDescriptionprotected GraphModelGraphLayoutCache.graphModelReference to the graphModelMethods in org.jgraph.graph that return GraphModelMethods in org.jgraph.graph with parameters of type GraphModelModifier and TypeMethodDescriptionstatic ObjectDefaultGraphModel.cloneCell(GraphModel model, Object cell) Returns a deep clone of the specified cell, including all children.static Object[]DefaultGraphModel.cloneCell(GraphModel model, Object[] cells) Returns a deep clone of the specified cells, including all children.static booleanDefaultGraphModel.containsEdgeBetween(GraphModel model, Object v1, Object v2) Returns true if the given vertices are conntected by a single edge in this document.static ConnectionSetConnectionSet.create(GraphModel m, Object[] cells, boolean disconnect) Returns a connection set that represents the connection or disconnection ofcellsinmodelbased ondisconnect.static ParentMapParentMap.create(GraphModel m, Object[] c, boolean remove, boolean onlyUsePassedInCells) Returns a parent map that represents the insertion or removal ofcellsinmodelbased onremove.static MapGraphConstants.createAttributesFromModel(Object[] elements, GraphModel model) CellViewFactory.createView(GraphModel model, Object cell) Constructs a view for the specified cell and associates it with the specified object using the specified CellMapper.DefaultCellViewFactory.createView(GraphModel model, Object cell) Constructs a view for the specified cell and associates it with the specified object using the specified CellMapper.static Object[]DefaultGraphModel.getAll(GraphModel model) Returns all cells of the model in an array.protected AttributeMapAbstractCellView.getCellAttributes(GraphModel model) Hook for subclassers to avoid cloning the cell's attributes.static ListDefaultGraphModel.getDescendants(GraphModel model, Object[] cells) Flattens the given array of root cells by adding the roots and their descandants.static SetDefaultGraphModel.getEdges(GraphModel model, Object[] cells) Returns the set of all connected edges tocellsor their descendants.static Object[]DefaultGraphModel.getEdges(GraphModel model, Object cell, boolean incoming) Returns the incoming or outgoing edges for cell.static Object[]DefaultGraphModel.getEdgesBetween(GraphModel model, Object cell1, Object cell2, boolean directed) Returns the edges between two specified ports or two specified vertices.static Object[]DefaultGraphModel.getIncomingEdges(GraphModel model, Object cell) Returns the incoming edges for cell.static ObjectDefaultGraphModel.getOpposite(GraphModel model, Object edge, Object cell) static Object[]DefaultGraphModel.getOutgoingEdges(GraphModel model, Object cell) Returns the outgoing edges for cell.static Object[]DefaultGraphModel.getRoots(GraphModel model) Returns the roots of the specified model as an array.static Object[]DefaultGraphModel.getRoots(GraphModel model, Object[] cells) Returns the roots incellsby checking if their parent isnull.static CollectionDefaultGraphModel.getRootsAsCollection(GraphModel model) Returns the roots of the specified model as a collection.static ObjectDefaultGraphModel.getSourceVertex(GraphModel model, Object edge) Returns the source vertex of the edge by calling getParent on getSource on the specified model.static ObjectDefaultGraphModel.getTargetVertex(GraphModel model, Object edge) Returns the target vertex of the edge by calling getParent on getTarget on the specified model.static Object[]DefaultGraphModel.getTopmostCells(GraphModel model, Object[] cells) protected CellViewEdgeView.getVisibleParent(GraphModel model, CellMapper mapper, Object port) static booleanDefaultGraphModel.hasAncestorIn(GraphModel model, Set parents, Object child) Returns true if the specified child has an ancestor in parents.static booleanDefaultGraphModel.isGroup(GraphModel model, Object cell) Checks whether the cell has at least one child which is not a port.static booleanDefaultGraphModel.isVertex(GraphModel model, Object vertex) Returnstrueifvertexis a valid vertex.static Object[]DefaultGraphModel.order(GraphModel model, Object[] cells) Orders cells so that they reflect the model order.voidGraphLayoutCache.setModel(GraphModel model) Sets the current model.static voidDefaultGraphModel.setSourcePort(GraphModel model, Object edge, Object port) Helper methods that connects the source ofedgetoportinmodel.static voidDefaultGraphModel.setTargetPort(GraphModel model, Object edge, Object port) Helper methods that connects the source ofedgetoportinmodel.Constructors in org.jgraph.graph with parameters of type GraphModelModifierConstructorDescriptionGraphLayoutCache(GraphModel model, CellViewFactory factory) Constructs a view for the specified model that usesfactoryto create its views.GraphLayoutCache(GraphModel model, CellViewFactory factory, boolean partial) Constructs a view for the specified model that usesfactoryto create its views.GraphLayoutCache(GraphModel model, CellViewFactory factory, CellView[] cellViews, CellView[] hiddenCellViews, boolean partial) Constructs a view for the specified model that usesfactoryto create its views. -
Uses of GraphModel in org.jgraph.plaf.basic
Fields in org.jgraph.plaf.basic declared as GraphModelModifier and TypeFieldDescriptionprotected GraphModelBasicGraphUI.graphModelUsed to determine what to display.Methods in org.jgraph.plaf.basic with parameters of type GraphModelModifier and TypeMethodDescriptionprotected voidBasicGraphUI.setModel(GraphModel model) Sets the GraphModel.