| com.jgraph.pad.graph.JGraphpadGraphModel
JGraphpadGraphModel | public class JGraphpadGraphModel extends DefaultGraphModel (Code) | | 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).
|
Field Summary | |
final public static Object | VALUE_EMPTY Defines the EMPTY_VALUE constant to be used in nested maps in order to
remove properties from business objects. |
Constructor Summary | |
public | JGraphpadGraphModel() Constructs a new empty graph model. | public | JGraphpadGraphModel(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. |
VALUE_EMPTY | final public static Object VALUE_EMPTY(Code) | | Defines the EMPTY_VALUE constant to be used in nested maps in order to
remove properties from business objects.
|
JGraphpadGraphModel | public JGraphpadGraphModel()(Code) | | Constructs a new empty graph model.
|
JGraphpadGraphModel | public JGraphpadGraphModel(List roots, AttributeMap attributes, ConnectionSet cs)(Code) | | 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.
Parameters: roots - The roots to be inserted into the model. Parameters: attributes - The model's attributes. Parameters: cs - The connections to be established. |
cloneUserObject | protected Object cloneUserObject(Object userObject)(Code) | | Extends the parent implementation to support cloning of
JGraphpadBusinessObject .
Parameters: userObject - The user object to be cloned. Returns the cloned user object. |
handleAttributes | protected Map handleAttributes(Map attributes)(Code) | | 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. The special
JGraphpadGraphModel.VALUE_EMPTY is used to remove a property from a business object.
Parameters: attributes - The attributes to be processed. Returns the attributes used to undo the change. |
valueForCellChanged | public Object valueForCellChanged(Object cell, Object newValue)(Code) | | Extends the parent implementation to support changing the value on
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.
Parameters: cell - The cell to change the value for. Parameters: newValue - The new value to use for the cell. Returns the old value of the cell. |
|
|