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 - the
jgraph.graph package. |
Modifier and Type | Method and Description |
---|---|
ParentMap |
GraphModelEvent.GraphModelChange.getParentMap()
Returns a parent map representing the group structure after the
change was applied
|
ParentMap |
GraphModelEvent.GraphModelChange.getPreviousParentMap()
Returns a parent map representing the group structure before the
change was applied ( an "undo" of the change )
|
Modifier and Type | Field and Description |
---|---|
protected ParentMap |
DefaultGraphModel.GraphModelEdit.parentMap |
protected ParentMap |
GraphTransferable.pm
Object that describes the group structure between cells.
|
protected ParentMap |
DefaultGraphModel.GraphModelEdit.previousParentMap |
protected ParentMap |
DefaultGraphModel.transEditPM
Stores nested transaction parent maps
|
Modifier and Type | Method and Description |
---|---|
ParentMap |
ParentMap.clone(java.util.Map map)
Creates a new parent map based on this parent map, where the child and
parents are mapped using
map . |
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 . |
ParentMap |
GraphTransferable.getParentMap() |
ParentMap |
DefaultGraphModel.GraphModelEdit.getParentMap()
Returns the parentMap.
|
ParentMap |
DefaultGraphModel.GraphModelLayerEdit.getParentMap()
Returns null.
|
ParentMap |
DefaultGraphModel.GraphModelEdit.getPreviousParentMap() |
ParentMap |
DefaultGraphModel.GraphModelLayerEdit.getPreviousParentMap() |
protected ParentMap |
DefaultGraphModel.handleParentMap(ParentMap parentMap)
Applies
cells to the model. |
Modifier and Type | Method and Description |
---|---|
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 void |
GraphTransferHandler.handleExternalDrop(JGraph graph,
java.lang.Object[] cells,
java.util.Map nested,
ConnectionSet cs,
ParentMap pm,
double dx,
double dy) |
protected ParentMap |
DefaultGraphModel.handleParentMap(ParentMap parentMap)
Applies
cells to 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 |
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.
|
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 |
---|
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 . |
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.