public abstract class IlpGraphHandlerWithoutDataSource extends IlpAbstractGraphHandler
IlpDataSource
is not used.
The handler performs editing operations by accessing the representation objects and the model.
IlpGraphController.setGraphHandler(ilog.cpl.graph.IlpGraphHandler)
LINK_FROM_NODE, LINK_FROM_PORT, LINK_TO_NODE, LINK_TO_PORT
Modifier | Constructor and Description |
---|---|
protected |
IlpGraphHandlerWithoutDataSource(IlpGraphController controller,
JComponent component)
Creates the handler.
|
Modifier and Type | Method and Description |
---|---|
void |
handleChangeRelationship(IlpRepresentationObject object,
IlpRepresentationObject parent,
IlpPosition position)
Requests the change of relationship in an object.
|
void |
handleCloneObject(Collection objects)
Requests the creation of a set of copied objects.
|
void |
handleCollapseObject(IlpRepresentationObject object)
Requests the collapse of a container object.
|
Object |
handleCreateObject(Class clazz,
IlpAttributeGroup attributes,
Map properties,
IlpPosition position)
Creates an object in the model.
|
void |
handleExpandObject(IlpRepresentationObject object)
Requests the expansion of a container object.
|
void |
handleLoad(URL networkDescription)
Erases the model and loads a set of objects, given as a URL, into the
model.
|
void |
handleMoveObject(Map newPositions)
Requests a change to the position or shape of a set of representation
objects.
|
void |
handleRemoveObject(Collection objects)
Deletes a set of objects from the model.
|
void |
handleUpdateObject(IlpRepresentationObject object,
Map newValues)
Requests a change to some of the properties of an object.
|
createDefaultClass, createObject, createObjectId, endBatch, findIlpClass, getClassName, getDefaultClass, getGraphController, getGraphModel, getHandlerLogger, setGraphController, startBatch
protected IlpGraphHandlerWithoutDataSource(IlpGraphController controller, JComponent component)
controller
- The controller.component
- The component where the controller is attached to.public Object handleCreateObject(Class clazz, IlpAttributeGroup attributes, Map properties, IlpPosition position)
clazz
- A subclass of IlpRepresentationNode
.attributes
- A set of attributes for the object to be created,
or null
.properties
- A set of hints for the object to be created,
or null
.position
- The desired position/shape of the object,
or null
.public void handleRemoveObject(Collection objects)
objects
- A collection of IlpRepresentationObject
s.public void handleUpdateObject(IlpRepresentationObject object, Map newValues)
object
- The representation object.newValues
- A map, mapping each IlpAttribute
to be
changed to its new values.public void handleCloneObject(Collection objects)
objects
- A collection of IlpRepresentationObject
s.public void handleChangeRelationship(IlpRepresentationObject object, IlpRepresentationObject parent, IlpPosition position)
object
- The representation object.parent
- The new parent of the object; null
implies a root object.position
- The position of the object.IlpNodeHandler.handleChangeRelationship(ilog.cpl.model.IlpRepresentationObject, ilog.cpl.model.IlpRepresentationObject, ilog.cpl.graphic.IlpPosition)
public void handleMoveObject(Map newPositions)
newPositions
- A map, from IlpRepresentationObject
to
IlpPositionChange
.public void handleExpandObject(IlpRepresentationObject object)
object
- The container to be expanded.public void handleCollapseObject(IlpRepresentationObject object)
object
- The container to be collapsed.public void handleLoad(URL networkDescription)
networkDescription
- The URL that gives access to the model
description. Its format depends on the
handler implementation.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.