Package | Description |
---|---|
com.jgraph.algebra |
JGraphLayout algebra package which contains graph algorithms and datastructures.
|
com.jgraph.components.labels | |
com.jgraph.layout |
JGraphLayout's topmost package which contains the basic layout classes and interfaces.
|
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.
|
Modifier and Type | Method and Description |
---|---|
JGraphUnionFind |
JGraphAlgebra.getConnectionComponents(GraphModel model,
java.lang.Object[] v,
java.lang.Object[] e)
Returns a union find structure representing the connection components of
G=(E,V).
|
java.lang.Object[] |
JGraphAlgebra.getMinimumSpanningTree(GraphModel model,
java.lang.Object[] v,
JGraphCostFunction cf,
boolean directed)
Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
|
java.lang.Object[] |
JGraphAlgebra.getMinimumSpanningTree(GraphModel model,
java.lang.Object[] v,
java.lang.Object[] e,
JGraphCostFunction cf)
Returns the minimum spanning tree (MST) for the graph defined by G=(E,V).
|
java.lang.Object[] |
JGraphAlgebra.getShortestPath(GraphModel model,
java.lang.Object from,
java.lang.Object to,
JGraphCostFunction cf,
int steps,
boolean directed)
Returns the shortest path between two cells or their descendants
represented as an array of edges in order of traversal.
|
Modifier and Type | Class and Description |
---|---|
class |
RichTextGraphModel
GraphModel that supports cloning of
JGraphpadBusinessObject and
handles custom entries in nested maps to add/change/remove properties for
business object (using the model's insert and edit methods). |
Modifier and Type | Field and Description |
---|---|
protected GraphModel |
JGraphFacade.model
The model to have the layout applied to it.
|
Constructor and Description |
---|
JGraphFacade(GraphModel model,
GraphLayoutCache cache,
java.lang.Object[] roots,
boolean ignoresHiddenCells,
boolean ignoresCellsInGroups,
boolean ignoresUnconnectedCells,
boolean directed,
JGraphCostFunction distanceCostFunction,
JGraphAlgebra algebra)
Creates a JGraphGenericFacade specifying the graph passed in as the input
graph.
|
JGraphFacade(GraphModel model,
java.lang.Object[] roots,
boolean ignoresHiddenCells,
boolean ignoresCellsInGroups,
boolean ignoresUnconnectedCells,
boolean directed,
JGraphCostFunction distanceCostFunction,
JGraphAlgebra algebra)
Creates a JGraphGenericFacade specifying the graph passed in as the input
graph.
|
JGraphModelFacade(GraphModel model)
Constructs a JGraphGraphFacade specifying the graph passed in as the
input graph
|
JGraphModelFacade(GraphModel model,
java.lang.Object[] roots)
Constructs a JGraphGraphFacade specifying the graph passed in as the
input graph
|
JGraphModelFacade(GraphModel model,
java.lang.Object[] roots,
boolean ignoresHiddenCells,
boolean ignoresCellsInGroups,
boolean ignoresUnconnectedCells,
boolean directed)
Constructs a JGraphGraphFacade
|
JGraphModelFacade(GraphModel model,
java.lang.Object[] roots,
boolean ignoresHiddenCells,
boolean ignoresCellsInGroups,
boolean ignoresUnconnectedCells,
boolean directed,
JGraphCostFunction distanceCostFunction,
JGraphAlgebra algebra)
Creates a JGraphGraphFacade specifying the graph passed in as the input
graph.
|
Modifier and Type | Field and Description |
---|---|
protected GraphModel |
JGraph.graphModel
The model that defines the graph displayed by this object.
|
Modifier and Type | Method and Description |
---|---|
GraphModel |
JGraph.getModel()
Returns the
GraphModel that is providing the data. |
Modifier and Type | Method and Description |
---|---|
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. |
Constructor and Description |
---|
JGraph(GraphModel model)
Returns an instance of
JGraph which displays the the
specified data model. |
JGraph(GraphModel model,
BasicMarqueeHandler mh)
Returns an instance of
JGraph which displays the specified
data model and assigns the specified marquee handler |
JGraph(GraphModel model,
GraphLayoutCache cache)
Returns an instance of
JGraph which displays the specified
data model using the specified view. |
JGraph(GraphModel model,
GraphLayoutCache layoutCache,
BasicMarqueeHandler mh)
Returns an instance of
JGraph which displays the specified
data model using the specified view and assigns the specified marquee
handler |
Modifier and Type | Class and Description |
---|---|
class |
DefaultGraphModel
The default implementation of a graph model.
|
Modifier and Type | Field and Description |
---|---|
protected GraphModel |
GraphLayoutCache.graphModel
Reference to the graphModel
|
Modifier and Type | Method and Description |
---|---|
GraphModel |
GraphLayoutCache.getModel()
Returns the current model.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
DefaultGraphModel.cloneCell(GraphModel model,
java.lang.Object cell)
Returns a deep clone of the specified cell, including all children.
|
static java.lang.Object[] |
DefaultGraphModel.cloneCell(GraphModel model,
java.lang.Object[] cells)
Returns a deep clone of the specified cells, including all children.
|
static boolean |
DefaultGraphModel.containsEdgeBetween(GraphModel model,
java.lang.Object v1,
java.lang.Object v2)
Returns true if the given vertices are conntected by a single edge in
this document.
|
static ConnectionSet |
ConnectionSet.create(GraphModel m,
java.lang.Object[] cells,
boolean disconnect)
Returns a connection set that represents the connection or disconnection
of
cells in model based on
disconnect . |
static ParentMap |
ParentMap.create(GraphModel m,
java.lang.Object[] c,
boolean remove,
boolean onlyUsePassedInCells)
Returns a parent map that represents the insertion or removal of
cells in model based on remove . |
static java.util.Map |
GraphConstants.createAttributesFromModel(java.lang.Object[] elements,
GraphModel model) |
CellView |
CellViewFactory.createView(GraphModel model,
java.lang.Object cell)
Constructs a view for the specified cell and associates it
with the specified object using the specified CellMapper.
|
CellView |
DefaultCellViewFactory.createView(GraphModel model,
java.lang.Object cell)
Constructs a view for the specified cell and associates it with the
specified object using the specified CellMapper.
|
static java.lang.Object[] |
DefaultGraphModel.getAll(GraphModel model)
Returns all cells of the model in an array.
|
protected AttributeMap |
AbstractCellView.getCellAttributes(GraphModel model)
Hook for subclassers to avoid cloning the cell's attributes.
|
static java.util.List |
DefaultGraphModel.getDescendants(GraphModel model,
java.lang.Object[] cells)
Flattens the given array of root cells by adding the roots and their
descandants.
|
static java.util.Set |
DefaultGraphModel.getEdges(GraphModel model,
java.lang.Object[] cells)
Returns the set of all connected edges to
cells or their
descendants. |
static java.lang.Object[] |
DefaultGraphModel.getEdges(GraphModel model,
java.lang.Object cell,
boolean incoming)
Returns the incoming or outgoing edges for cell.
|
static java.lang.Object[] |
DefaultGraphModel.getEdgesBetween(GraphModel model,
java.lang.Object cell1,
java.lang.Object cell2,
boolean directed)
Returns the edges between two specified ports or two specified vertices.
|
static java.lang.Object[] |
DefaultGraphModel.getIncomingEdges(GraphModel model,
java.lang.Object cell)
Returns the incoming edges for cell.
|
static java.lang.Object |
DefaultGraphModel.getOpposite(GraphModel model,
java.lang.Object edge,
java.lang.Object cell) |
static java.lang.Object[] |
DefaultGraphModel.getOutgoingEdges(GraphModel model,
java.lang.Object cell)
Returns the outgoing edges for cell.
|
static java.lang.Object[] |
DefaultGraphModel.getRoots(GraphModel model)
Returns the roots of the specified model as an array.
|
static java.lang.Object[] |
DefaultGraphModel.getRoots(GraphModel model,
java.lang.Object[] cells)
Returns the roots in
cells by checking if their parent is
null . |
static java.util.Collection |
DefaultGraphModel.getRootsAsCollection(GraphModel model)
Returns the roots of the specified model as a collection.
|
static java.lang.Object |
DefaultGraphModel.getSourceVertex(GraphModel model,
java.lang.Object edge)
Returns the source vertex of the edge by calling getParent on getSource
on the specified model.
|
static java.lang.Object |
DefaultGraphModel.getTargetVertex(GraphModel model,
java.lang.Object edge)
Returns the target vertex of the edge by calling getParent on getTarget
on the specified model.
|
static java.lang.Object[] |
DefaultGraphModel.getTopmostCells(GraphModel model,
java.lang.Object[] cells) |
protected CellView |
EdgeView.getVisibleParent(GraphModel model,
CellMapper mapper,
java.lang.Object port) |
static boolean |
DefaultGraphModel.hasAncestorIn(GraphModel model,
java.util.Set parents,
java.lang.Object child)
Returns true if the specified child has an ancestor in parents.
|
static boolean |
DefaultGraphModel.isGroup(GraphModel model,
java.lang.Object cell)
Checks whether the cell has at least one child which is not a port.
|
static boolean |
DefaultGraphModel.isVertex(GraphModel model,
java.lang.Object vertex)
Returns
true if vertex is a valid vertex. |
static java.lang.Object[] |
DefaultGraphModel.order(GraphModel model,
java.lang.Object[] cells)
Orders cells so that they reflect the model order.
|
void |
GraphLayoutCache.setModel(GraphModel model)
Sets the current model.
|
static void |
DefaultGraphModel.setSourcePort(GraphModel model,
java.lang.Object edge,
java.lang.Object port)
Helper methods that connects the source of
edge to
port in model. |
static void |
DefaultGraphModel.setTargetPort(GraphModel model,
java.lang.Object edge,
java.lang.Object port)
Helper methods that connects the source of
edge to
port in model. |
Constructor and Description |
---|
GraphLayoutCache(GraphModel model,
CellViewFactory factory)
Constructs a view for the specified model that uses
factory
to create its views. |
GraphLayoutCache(GraphModel model,
CellViewFactory factory,
boolean partial)
Constructs a view for the specified model that uses
factory
to create its views. |
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. |
Modifier and Type | Field and Description |
---|---|
protected GraphModel |
BasicGraphUI.graphModel
Used to determine what to display.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BasicGraphUI.setModel(GraphModel model)
Sets the GraphModel.
|
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.