|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.undo.UndoableEditSupport
org.jgraph.graph.DefaultGraphModel
com.jgraph.pad.graph.JGraphpadGraphModel
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).
| Nested Class Summary |
| Nested classes inherited from class org.jgraph.graph.DefaultGraphModel |
org.jgraph.graph.DefaultGraphModel.EmptyIterator, org.jgraph.graph.DefaultGraphModel.GraphModelEdit, org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit |
| Field Summary | |
static Object |
VALUE_EMPTY
Defines the EMPTY_VALUE constant to be used in nested maps in order to remove properties from business objects. |
| Fields inherited from class org.jgraph.graph.DefaultGraphModel |
asksAllowsChildren, attributes, emptyIterator, listenerList, removeEmptyGroups, roots |
| Fields inherited from class javax.swing.undo.UndoableEditSupport |
compoundEdit, listeners, realSource, updateLevel |
| Constructor Summary | |
JGraphpadGraphModel()
Constructs a new empty graph model. |
|
JGraphpadGraphModel(List roots,
org.jgraph.graph.AttributeMap attributes,
org.jgraph.graph.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. |
|
| Method Summary | |
protected Object |
cloneUserObject(Object userObject)
Extends the parent implementation to support cloning of JGraphpadBusinessObject. |
protected Map |
handleAttributes(Map attributes)
Extends the parent implementation to support changing properties on JGraphpadBusinessObject by adding a map for the business object
to the nested map which is passed to an insert or edit call. |
Object |
valueForCellChanged(Object cell,
Object newValue)
Extends the parent implementation to support changing the value on JGraphpadBusinessObject. |
| Methods inherited from class org.jgraph.graph.DefaultGraphModel |
acceptsSource, acceptsTarget, addGraphModelListener, beginUpdate, cellsChanged, cloneCell, cloneCell, cloneCell, cloneCells, connect, contains, containsEdgeBetween, createEdit, createLayerEdit, createRemoveEdit, edges, edit, edit, endUpdate, execute, fireGraphChanged, getAll, getAttributes, getAttributes, getChild, getChildCount, getConnectionSet, getDescendants, getEdges, getEdges, getEdgesBetween, getGraphModelListeners, getIncomingEdges, getIndexOfChild, getIndexOfRoot, getOpposite, getOutgoingEdges, getParent, getRootAt, getRootCount, getRoots, getRoots, getRoots, getRootsAsCollection, getSource, getSourceVertex, getTarget, getTargetVertex, getTopmostCells, getUpdateLevel, getUserObject, getValue, handleConnection, handleConnectionSet, handleInsert, handleParentMap, handleRemove, hasAncestorIn, insert, isEdge, isGroup, isLeaf, isPort, isRemoveEmptyGroups, isVertex, order, remove, removeGraphModelListener, setParent, setRemoveEmptyGroups, setSourcePort, setTargetPort, toBack, toFront |
| Methods inherited from class javax.swing.undo.UndoableEditSupport |
_postEdit, addUndoableEditListener, createCompoundEdit, getUndoableEditListeners, postEdit, removeUndoableEditListener, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jgraph.graph.GraphModel |
addUndoableEditListener, removeUndoableEditListener |
| Field Detail |
public static final Object VALUE_EMPTY
| Constructor Detail |
public JGraphpadGraphModel()
public JGraphpadGraphModel(List roots,
org.jgraph.graph.AttributeMap attributes,
org.jgraph.graph.ConnectionSet cs)
roots - The roots to be inserted into the model.attributes - The model's attributes.cs - The connections to be established.| Method Detail |
protected Object cloneUserObject(Object userObject)
JGraphpadBusinessObject.
userObject - The user object to be cloned.
public Object valueForCellChanged(Object cell,
Object newValue)
JGraphpadBusinessObject. This implementation supports setting
the value to String, JGraphpadRichTextValue or Map. If the new
value is a map the complete properties of the user object are replaced
with the specified map.
cell - The cell to change the value for.newValue - The new value to use for the cell.
protected Map handleAttributes(Map attributes)
JGraphpadBusinessObject by adding a map for the business object
to the nested map which is passed to an insert or edit call. The special
VALUE_EMPTY is used to remove a property from a business object.
attributes - The attributes to be processed.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||