Package | Description |
---|---|
com.jgraph.components.labels | |
org.jgraph.event |
Contains event classes and listener interfaces that are used to react to events fired by JGraph.
|
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.
|
Constructor and Description |
---|
RichTextGraphModel(java.util.List roots,
AttributeMap attributes,
ConnectionSet cs)
Constructs a new graph model using the specified root cells and
attributes (for the model) and establishes the connections defined in the
specified connection set between the cells.
|
Modifier and Type | Method and Description |
---|---|
ConnectionSet |
GraphModelEvent.GraphModelChange.getConnectionSet()
Returns a connection set representing the graph structure after the
change was applied
|
ConnectionSet |
GraphModelEvent.GraphModelChange.getPreviousConnectionSet()
Returns a connection set representing the graph structure before the
change was applied ( an "undo" of the change).
|
Modifier and Type | Field and Description |
---|---|
protected ConnectionSet |
DefaultGraphModel.GraphModelEdit.connectionSet |
protected ConnectionSet |
GraphTransferable.cs
Object that describes the connection between cells.
|
protected ConnectionSet |
DefaultGraphModel.GraphModelEdit.previousConnectionSet |
protected ConnectionSet |
DefaultGraphModel.transEditCS
Stores nested transaction connection sets
|
Modifier and Type | Method and Description |
---|---|
ConnectionSet |
ConnectionSet.clone(java.util.Map map)
Creates a new connection set based on this connection set, where the
edges, and ports are mapped using
map . |
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 . |
protected ConnectionSet |
EdgeView.EdgeHandle.createConnectionSet(EdgeView view,
boolean verbose) |
ConnectionSet |
GraphContext.disconnect(CellView[] cells)
Disconnects the edges in
cells from the sources and
targets that are not in this context and returns a ConnectionSet that
defines the disconnection. |
ConnectionSet |
GraphTransferable.getConnectionSet()
Returns the connections between
cells (and possibly
other, unselected cells). |
ConnectionSet |
DefaultGraphModel.getConnectionSet()
A shortcut method to create a connection set that represents the
connections in this model.
|
ConnectionSet |
DefaultGraphModel.GraphModelEdit.getConnectionSet()
Returns the connectionSet.
|
ConnectionSet |
DefaultGraphModel.GraphModelLayerEdit.getConnectionSet() |
ConnectionSet |
DefaultGraphModel.GraphModelEdit.getPreviousConnectionSet() |
ConnectionSet |
DefaultGraphModel.GraphModelLayerEdit.getPreviousConnectionSet() |
protected ConnectionSet |
DefaultGraphModel.handleConnectionSet(ConnectionSet cs)
Applies
connectionSet to the model. |
Modifier and Type | Method and Description |
---|---|
protected static void |
ConnectionSet.connect(ConnectionSet cs,
java.lang.Object edge,
java.lang.Object port,
boolean source,
boolean disconnect)
Connect or disconnect
edge from source and
target in cs based on
disconnect . |
protected GraphTransferable |
GraphTransferHandler.create(JGraph graph,
java.lang.Object[] cells,
java.util.Map viewAttributes,
java.awt.geom.Rectangle2D bounds,
ConnectionSet cs,
ParentMap pm) |
protected DefaultGraphModel.GraphModelEdit |
DefaultGraphModel.createEdit(java.lang.Object[] inserted,
java.lang.Object[] removed,
java.util.Map attributes,
ConnectionSet cs,
ParentMap pm,
javax.swing.undo.UndoableEdit[] edits) |
void |
DefaultGraphModel.edit(java.util.Map attributes,
ConnectionSet cs,
ParentMap pm,
javax.swing.undo.UndoableEdit[] edits)
Shortcut to the new edit method which allows inserts and removes to go
along with an edit.
|
void |
GraphModel.edit(java.util.Map attributes,
ConnectionSet cs,
ParentMap pm,
javax.swing.undo.UndoableEdit[] e)
Applies the
propertyMap and the connection changes to the
model. |
void |
GraphLayoutCache.edit(java.util.Map attributes,
ConnectionSet cs,
ParentMap pm,
javax.swing.undo.UndoableEdit[] e)
Applies the
propertyMap and the connection changes to the
model. |
void |
DefaultGraphModel.edit(java.lang.Object[] inserted,
java.lang.Object[] removed,
java.util.Map attributes,
ConnectionSet cs,
ParentMap pm,
javax.swing.undo.UndoableEdit[] edits)
Applies
attributes and the connection changes to the
model. |
protected ConnectionSet |
DefaultGraphModel.handleConnectionSet(ConnectionSet cs)
Applies
connectionSet to the model. |
protected void |
GraphTransferHandler.handleExternalDrop(JGraph graph,
java.lang.Object[] cells,
java.util.Map nested,
ConnectionSet cs,
ParentMap pm,
double dx,
double dy) |
void |
GraphLayoutCache.insert(java.lang.Object[] cells,
java.util.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.
|
void |
DefaultGraphModel.insert(java.lang.Object[] roots,
java.util.Map attributes,
ConnectionSet cs,
ParentMap pm,
javax.swing.undo.UndoableEdit[] edits)
Inserts the
roots and connections into the model. |
void |
GraphModel.insert(java.lang.Object[] roots,
java.util.Map attributes,
ConnectionSet cs,
ParentMap pm,
javax.swing.undo.UndoableEdit[] e)
Inserts the
cells and connections into the model, and
passes attributes to the views. |
void |
GraphLayoutCache.insert(java.lang.Object[] roots,
java.util.Map attributes,
ConnectionSet cs,
ParentMap pm,
javax.swing.undo.UndoableEdit[] e)
Inserts the
cells and connections into the model, and
absorbs the local attributes. |
java.lang.Object[] |
GraphLayoutCache.insertClones(java.lang.Object[] cells,
java.util.Map clones,
java.util.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.
|
void |
GraphLayoutCache.setVisible(java.lang.Object[] visible,
java.lang.Object[] invisible,
ConnectionSet cs)
Changes the visibility state of the cells passed in.
|
void |
GraphLayoutCache.setVisible(java.lang.Object[] visible,
java.lang.Object[] invisible,
java.util.Map attributes,
ConnectionSet cs)
Changes the visibility state of the cells passed in.
|
protected void |
DefaultGraphModel.updateTransaction(java.lang.Object[] inserted,
java.lang.Object[] removed,
java.util.Map attributes,
ConnectionSet cs,
ParentMap pm)
Updates the current state of the various transaction data
|
Constructor and Description |
---|
DefaultGraphModel(java.util.List roots,
AttributeMap attributes,
ConnectionSet cs)
Constructs a model using the specified information to construct the
cells, attributes and connection data.
|
GraphModelEdit(java.lang.Object[] inserted,
java.lang.Object[] removed,
java.util.Map attributes,
ConnectionSet connectionSet,
ParentMap parentMap)
Constructs an edit record.
|
GraphTransferable(java.lang.Object[] cells,
java.util.Map attrMap,
java.awt.geom.Rectangle2D bounds,
ConnectionSet cs,
ParentMap pm)
Constructs a new transferable selection for
cells ,
cs and attrMap . |
Modifier and Type | Field and Description |
---|---|
protected ConnectionSet |
BasicGraphUI.RootHandle.disconnect |
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.