ibm_ilog.diagram.editor.adorners
Method Summary
- ComponentAdorner() An adorner for adorning components of Graph elements.
- ConnectionAdorner()
- ConnectionHandle()
- ConnectionTargetAdorner()
- ConnectionTargetHandle()
- LinkConnectionAdorner()
- LinkConnectionHandle()
- LinkIntermediatePointsAddHandle()
- LinkIntermediatePointsAdorner()
- LinkIntermediatePointsHandle()
- ResizeAdorner() An adorner with handles to resize the adorned.
- ResizeHandle() A handle that is associated with a corner of the adorner bouding box and allows to resize the adorned by grabbing that corner.
- TextEditAdorner() An adorner for editing string-valued properties of Graph elements.
Attached Objects
Methods
This Adorner creates 4 ResizeHandles, one at each corner of the adorned bouding box. Each ResizeHandle allows to grab that corner of the bounding box and resize the adornee by moving that corner.
TextEditAdorner is an adorner that displays a TextBox for editing a property of a Graph element. The user must provide an attachPoint name for the property which is used to calculate the position of the TextBox, and also a getter and setter of the property at the Graph element. usage: The following code starts editing the "label" attribute of "node", using getLabel/setLabel as accessorsm and "textShape" as value representation for reference when positioning the TextBox
textEditAdorner.setAccessors( function(adorned){ return adorned.getLabel(); }, function(adorned,value){ adorned.setLabel(value); }); textEditAdorner.setComponent("textShape"); textEditAdorner.setAdorned(node);