ibm_ilog.diagram.GraphElement
Object » graphCreator » dojox.gfx.Group » ibm_ilog.diagram.GraphElement
dojo.require("ibm_ilog.diagram.GraphElement");
An element that can be contained in a Graph.
dojox.gfx.Group, ibm_ilog.diagram.Selectable, ibm_ilog.diagram.templating._DiagramTemplated
Property Summary
Method Summary
- addConnection(connection) this method should be called on every dojo.connect done to the graph element that should be disconnected on dispose.
- afterDisposing(graphElement) This function is called after disposing the GraphElement
- applyTemplate(template, context) Applies the specified template on this instance.
- beforeDisposing(graphElement) This function is called before disposing the GraphElement
- byShape(shape) Returns the GraphElement that contains the specified shape, or null.
- connect() override gfx.connect to add the handle to the internal list
- constructor()
- disconnectAll() This function is disconnect every dojo.connect attached to this element
- dispose(options) Dispose this GraphElement.
- endDTLBatch()
- getId()
- isSelectable() return if the selectable can be selected
- isSelected() returns the selected state
- layoutShape(target)
- setSelectable(selectable) enable or disable selecting enabled: true to enable selecting
- setSelected(selected) sets the selected state
- shallowInstantiateAt(target, template)
- startDTLBatch()
- toString()
- toggleSelected() toggle the selection state
Event Summary
- onPropertyChanged(property, oldValue, newValue) Called when a bindable property has changed.
- onTemplateApplied(template) Invoked when the template has been applied.
- onTemplateError(template, e) Invoked if an error is raised when applying the specified template .
Properties
Defined by ibm_ilog.diagram.Selectable
Methods
this method should be called on every dojo.connect done to the graph element that
should be disconnected on dispose.
Parameter | Type | Description |
---|---|---|
connection |
Defined by ibm_ilog.diagram.templating._DiagramTemplated
Applies the specified template on this instance.
Parameter | Type | Description |
---|---|---|
template | Object | or string : the template to apply. |
context | Object | : the runtime context. Optional. If not specified, the runtime context is this shape instance. |
This function is called before disposing the GraphElement
Parameter | Type | Description |
---|---|---|
graphElement |
Returns the GraphElement that contains the specified shape, or null.
Parameter | Type | Description |
---|---|---|
shape |
This function should be called when the GraphElement is completely deleted, that is, when it is removed from its parent graph and it will never be used again.
Parameter | Type | Description |
---|---|---|
options | options.noRecurse: | Do not recurse children |
Defined by ibm_ilog.diagram.templating._DiagramTemplated
Parameter | Type | Description |
---|---|---|
target | {shape} |
Defined by ibm_ilog.diagram.Selectable
enable or disable selecting
enabled:
true to enable selecting
Parameter | Type | Description |
---|---|---|
selectable |
Defined by ibm_ilog.diagram.Selectable
true if the selection state could be changed
sets the selected state
Parameter | Type | Description |
---|---|---|
selected | the | new selection state |
Defined by ibm_ilog.diagram.templating._DiagramTemplated
Parameter | Type | Description |
---|---|---|
target | ||
template |
Defined by ibm_ilog.diagram.Selectable
true if the selection state could be changed
toggle the selection state
Events
Defined by ibm_ilog.diagram.templating._DiagramTemplated
Bindable properties are properties defined on a Node or a Link and that can be used in templates using bindings.
Parameter | Type | Description |
---|---|---|
property | ||
oldValue | ||
newValue |
Defined by ibm_ilog.diagram.templating._DiagramTemplated
Invoked when the template has been applied.
Parameter | Type | Description |
---|---|---|
template | Object | or string : the template to apply. |