Uses of Class
org.jgraph.graph.ConnectionSet
-
Packages that use ConnectionSet Package Description 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 - thejgraph.graph
package.org.jgraph.plaf.basic Contains the BasicGraphUI, which is GraphUI's default implementation. -
-
Uses of ConnectionSet in org.jgraph.event
Methods in org.jgraph.event that return ConnectionSet Modifier and Type Method Description ConnectionSet
GraphModelEvent.GraphModelChange. getConnectionSet()
Returns a connection set representing the graph structure after the change was appliedConnectionSet
GraphModelEvent.GraphModelChange. getPreviousConnectionSet()
Returns a connection set representing the graph structure before the change was applied ( an "undo" of the change). -
Uses of ConnectionSet in org.jgraph.graph
Fields in org.jgraph.graph declared as ConnectionSet Modifier and Type Field Description protected ConnectionSet
DefaultGraphModel.GraphModelEdit. connectionSet
protected ConnectionSet
GraphTransferable. cs
Object that describes the connection between cells.protected ConnectionSet
DefaultGraphModel.GraphModelEdit. previousConnectionSet
Methods in org.jgraph.graph that return ConnectionSet Modifier and Type Method 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 usingmap
.static ConnectionSet
ConnectionSet. create(GraphModel m, java.lang.Object[] cells, boolean disconnect)
Returns a connection set that represents the connection or disconnection ofcells
inmodel
based ondisconnect
.protected ConnectionSet
EdgeView.EdgeHandle. createConnectionSet(EdgeView view, boolean verbose)
ConnectionSet
GraphContext. disconnect(CellView[] cells)
Disconnects the edges incells
from the sources and targets that are not in this context and returns a ConnectionSet that defines the disconnection.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
GraphTransferable. getConnectionSet()
Returns the connections betweencells
(and possibly other, unselected cells).ConnectionSet
DefaultGraphModel.GraphModelEdit. getPreviousConnectionSet()
ConnectionSet
DefaultGraphModel.GraphModelLayerEdit. getPreviousConnectionSet()
protected ConnectionSet
DefaultGraphModel. handleConnectionSet(ConnectionSet cs)
AppliesconnectionSet
to the model.Methods in org.jgraph.graph with parameters of type ConnectionSet Modifier and Type Method Description protected static void
ConnectionSet. connect(ConnectionSet cs, java.lang.Object edge, java.lang.Object port, boolean source, boolean disconnect)
Connect or disconnectedge
fromsource
andtarget
incs
based ondisconnect
.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.lang.Object[] inserted, java.lang.Object[] removed, java.util.Map attributes, ConnectionSet cs, ParentMap pm, javax.swing.undo.UndoableEdit[] edits)
Appliesattributes
and the connection changes to the model.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
GraphLayoutCache. edit(java.util.Map attributes, ConnectionSet cs, ParentMap pm, javax.swing.undo.UndoableEdit[] e)
Applies thepropertyMap
and the connection changes to the model.void
GraphModel. edit(java.util.Map attributes, ConnectionSet cs, ParentMap pm, javax.swing.undo.UndoableEdit[] e)
Applies thepropertyMap
and the connection changes to the model.protected ConnectionSet
DefaultGraphModel. handleConnectionSet(ConnectionSet cs)
AppliesconnectionSet
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
DefaultGraphModel. insert(java.lang.Object[] roots, java.util.Map attributes, ConnectionSet cs, ParentMap pm, javax.swing.undo.UndoableEdit[] edits)
Inserts theroots
and connections into the model.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
GraphLayoutCache. insert(java.lang.Object[] roots, java.util.Map attributes, ConnectionSet cs, ParentMap pm, javax.swing.undo.UndoableEdit[] e)
Inserts thecells
and connections into the model, and absorbs the local attributes.void
GraphModel. insert(java.lang.Object[] roots, java.util.Map attributes, ConnectionSet cs, ParentMap pm, javax.swing.undo.UndoableEdit[] e)
Inserts thecells
and connections into the model, and passesattributes
to the views.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.Constructors in org.jgraph.graph with parameters of type ConnectionSet Constructor 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 forcells
,cs
andattrMap
. -
Uses of ConnectionSet in org.jgraph.plaf.basic
Fields in org.jgraph.plaf.basic declared as ConnectionSet Modifier and Type Field Description protected ConnectionSet
BasicGraphUI.RootHandle. disconnect
-