ibm_ilog.diagram.adorners.AnnotationAdorner
Object » graphCreator » dojox.gfx.Group » ibm_ilog.diagram.adorners.TemplatedOverlay » ibm_ilog.diagram.adorners.Adorner » ibm_ilog.diagram.adorners.AnnotationAdorner
dojo.require("ibm_ilog.diagram.adorners.AnnotationAdorner");
An Adorner which displays node annotations
Method Summary
- activate() activates the adorner
- constructor()
- deactivate() deactivates the adorner
- destroy() removes the diagram connection
- forceUpdate() Used to clear the timeout and update the adorner shape immediately.
- getAdorned() gets the bounded element
- getBaseShape()
- getBounds(parent) Returns the bounds of this node in the coordinate space of the specified parent.
- getDiagram() gets the diagram
- getId()
- getLink()
- getTarget()
- getViewport() gets the viewport
- initialize(diagram, templatePool, templateId) Initializes an Adorner after construction.
- refreshAnnotation() Update receiver with a new annotation
- setAdorned(adorned) apply the adorner to the given element
- setLink(link, target)
Event Summary
Methods
activates the adorner
deactivates the adorner
removes the diagram connection
Used to clear the timeout and update the adorner shape immediately.
gets the bounded element
A rectangle (i.e. an object with x/y/width/height properties) containing
the bounds of the node in the specified coordinate space.
Returns the bounds of this node in the coordinate space of the specified parent.
Parameter | Type | Description |
---|---|---|
parent | dojox.gfx.Group | The parent object that determines the coordinate space the bounds are relative to. If null or undefined, the bounds of the node relative to its parent are returned. |
gets the diagram
gets the viewport
Initializes an Adorner after construction.
Parameter | Type | Description |
---|---|---|
diagram | The | Diagram Dijit |
templatePool | The | template pool. The adorner gets its template from this pool using the templateId argument, and also for instantiating its handles with the templates from the pool. |
templateId | the | Id for the adorner template in the pool |
Current implementation relies on the template referencing the "annotation" bindable property of the receiver. Can be overriden by subclasses to produce specific ways of rendering the annotation like word wrap, etc.
apply the adorner to the given element
Parameter | Type | Description |
---|---|---|
adorned |