Packagecom.kapit.diagram.view
Classpublic class DiagramAnnotation
InheritanceDiagramAnnotation Inheritance DiagramSprite Inheritance DiagramObject Inheritance mx.core.UIComponent
SubclassesDiagramLinkAnnotation



Public Properties
 PropertyDefined by
 InheritedaffilatedSprites : Array
Sprites that are affilated logically to this DiagramSprite.
DiagramSprite
 Inheritedallowannotation : Boolean
Indicates whether annotation is allowed for this DiagramObject.
DiagramObject
 Inheritedallowcomposite : Boolean
Indicates whether this DiagramObject can be a composite (holding composition members).
DiagramObject
 Inheritedallowcomposition : Boolean
Indicates whether this DiagramObject can be part of a composition.
DiagramObject
  allowgrouping : Boolean
[read-only] A DiagramAnnotation cannot be grouped if its master is selected
DiagramAnnotation
  allowinputlinks : Boolean
[read-only]
DiagramAnnotation
  allowoutputlinks : Boolean
[read-only]
DiagramAnnotation
 Inheritedanchors : Array
An array containing the AnchorPoints of this DiagramObject.
DiagramObject
 Inheritedannotation : DiagramAnnotation
DiagramAnnotation belonging to this DiagramObject.
DiagramObject
 InheritedcanShowLinkBar : Boolean
DiagramObject
 Inheritedcolumn : DiagramColumn
Diagram Column to which this DiagramObject belongs.
DiagramObject
 InheritedcompositionBoundIndex : int
Position of object in composition.
DiagramObject
 InheritedcompositionElements : int
DiagramObject
 Inheritedcurrentcolumn : DiagramColumn
The current scope of this DiagramObject which is the DiagramLane containing the DiagramLayer container .
DiagramObject
 Inheritedcurrentscope : DiagramLane
The current scope of this DiagramObject which is the DiagramLane containing the DiagramLayer container .
DiagramObject
 Inheriteddataobjectid : String
Data object id of the diagram object.
DiagramObject
 Inheriteddid : String
The diagram unique identifier of this DiagramObject.
DiagramObject
 Inheriteddragenabled : Boolean
DiagramSprite
 Inheriteddragging : Boolean
Indicates whether this DiagramObject is currently being dragged.
DiagramObject
 Inheritedgrouped : Boolean
Indicates whether this DiagramObject belongs to a DiagramGroup.
DiagramObject
 Inheritedinnerbottom : Number
DiagramObject
 Inheritedinnerbox : Rectangle
The rectangle specified by the innerleft, innertop, innerwidth and innerheight properties.
DiagramObject
 Inheritedinnercenter : Point
DiagramObject
 Inheritedinnerheight : Number
The inner height of this DiagramSprite.
DiagramSprite
 Inheritedinnerleft : Number
The inner left position (X coordinate).
DiagramSprite
 Inheritedinnerright : Number
DiagramObject
 Inheritedinnertop : Number
The inner top position (Y coordinate).
DiagramSprite
 Inheritedinnerwidth : Number
The inner width of this DiagramSprite.
DiagramSprite
 Inheritedinnerxcenter : Number
DiagramObject
 Inheritedinnerycenter : Number
DiagramObject
 Inheritedinputlinks : Array
DiagramObject
 Inheritedlane : DiagramLane
The DiagagramLane that contains thsi DiagramObject.
DiagramObject
 Inheritedlayer : DiagramLayer
The DiagramLayer that contains this DiagramSprite.
DiagramSprite
 Inheritedloading : Boolean
Indicates whether the DiagramObject is currently loading.
DiagramObject
 Inheritedmaster : AnchorPoint
Master AnchorPoint of this DiagramObject.
DiagramObject
 Inheritedmasterobject : DiagramObject
Master DiagramObject to which the master AnchorPoint depends.
DiagramObject
 Inheritedmodifications : XML
DiagramSprite
 InheritedmoveInsideMaster : Boolean
If true, the object must move inside his master innerbox.
DiagramObject
 Inheritedoutputlinks : Array
DiagramObject
 InheritedownerSprite : DiagramSprite
Owner Sprite to which this DiagramSprite is affiflated.
DiagramSprite
 Inheritedresizeenabled : Boolean
Tells if the diagram object is resize enabled.
DiagramObject
  scaleAsMaster : Boolean
[read-only] A DiagramAnnotation doesn't scale as its master
DiagramAnnotation
 Inheritedselectable : Boolean
Tells if the diagram object is selectable.
DiagramObject
 Inheritedselected : Boolean
Indicates whether this DiagramObject is currently selected.
DiagramObject
 Inheritedsprite : Sprite
The SVG Image, an SVGAsset, representing this DiagramSprite instance.
DiagramSprite
  spriteid : String
This DiagramSprite ID equal to "annotation".
DiagramAnnotation
  stayInsideMaster : Boolean
[read-only]
DiagramAnnotation
  text : String
Text of the DiagramAnnotation.
DiagramAnnotation
 Inheritedtoplevelgroup : DiagramGroup
The top level DiagramGroup in which this DiagramObject is embedded.
DiagramObject
 InheritedtransformUILocked : Boolean
DiagramObject
 Inheritedui : DiagramObjectUI
The DiagramObjectUI controlling this DiagramObject.
DiagramObject
 Inheritedview : DiagramView
The DiagramView that contains this DiagramObject.
DiagramObject
 Inheritedx : Number
The absolute horizontal coordinate of this DiagramObject.
DiagramObject
 Inheritedy : Number
The absolute vertical coordinate of this DiagramObject.
DiagramObject
Protected Properties
 PropertyDefined by
 Inherited_allowannotation : Boolean = true
Indicates whether annotation is supported by this DiagramObject.
DiagramObject
 Inherited_allowcomposite : Boolean = false
Indicates whether this DiagramObject can be a composite (result of a composition of objects).
DiagramObject
 Inherited_allowcomposition : Boolean = false
Indicates whether this DiagramObject can be a member of a composition.
DiagramObject
 Inherited_allowinputlinks : Boolean = true
Indicates whether input links are allowed for this DiagramObject.
DiagramObject
 Inherited_allowoutputlinks : Boolean = true
Indicates whether output links are allowed for this DiagramObject.
DiagramObject
 Inherited_anchors : Object = null
Array of DiagramLink linked to this DiagramObject
DiagramObject
 Inherited_annotation : DiagramAnnotation = null
Annotation attached to this DiagramObject.
DiagramObject
 Inherited__annotationid : String = "null"
Annotation ID of this DiagramObject where this DiagramObject is a DiagramAnnotation.
DiagramObject
 Inherited_clickhandler : Boolean = false
Indicates whether "Mouse Down" mouse event must be considered.
DiagramSprite
 Inherited_columnAffiliation : DiagramColumn
Diagram Column to which this DiagramObject belongs.
DiagramObject
 Inherited_compositeBounds : Array = null
DiagramObject
 Inherited_compositionBoundIndex : int = -1
DiagramObject
 Inherited_curaction : String = "null"
Current action peformed by the view ActionManger on this DiagramSprite.
DiagramSprite
 Inherited_doubleclickhandler : Boolean = false
Indicates whether "Double Click" mouse event must be considered.
DiagramSprite
 Inherited_dragenabled : Boolean = true
DiagramSprite
 Inherited_dragging : Boolean = false
Indicates whether this DiagramObject is curretly being dragged.
DiagramObject
 Inherited_dx : Number
Horizontal coordinate of the DiagramSprite component in its parent coordinate system.
DiagramSprite
 Inheriteddx : Number
The horizontal coordinate of the DiagramSprite component in its parent coordinate system.
DiagramSprite
 Inherited_dy : Number
Vertical coordinate of the DiagramSprite component in its parent coordinate system.
DiagramSprite
 Inheriteddy : Number
The vertical coordinate of the DiagramSprite component in its parent coordinate system.
DiagramSprite
 Inherited_feedbackstyleselector : String = ".feedback-sprite"
CSS style selector (defined in the library), feedback mode
DiagramSprite
 Inherited_fillcolorfeedback : Number
Color for the sprite in feedback mode
DiagramSprite
 Inherited_fillopacityfeedback : Number
DiagramSprite
 Inherited_grouped : Boolean = false
Indicates whether this DiagramObject is a group.
DiagramObject
 Inherited_lastmatrix : Matrix = null
Last transformation matrix used to define the position and the size of this DiagramObject.
DiagramObject
 Inherited_layer : DiagramLayer = null
Layer in which this DiagramObject is embedded.
DiagramObject
 Inherited__layerid : String = "null"
Layer ID of this DiagramObject where this DiagramObject is a DiagramLayer.
DiagramObject
 Inherited_loading : Boolean = false
Indicates whether the DiagramObject is currently loading.
DiagramObject
 Inherited_master : AnchorPoint = null
Master anchor point of this DiagramObject used to anchor DiagramAnnotation and DiagramLink components.
DiagramObject
 Inherited__masterid : String = "null"
Master Anchor ID of this DiagramObject where this DiagramObject is a AnchorPoint.
DiagramObject
 Inherited_moveInsideMaster : Boolean = false
Indicates whether this DiagramObject move inside his master.
DiagramObject
 Inherited_ogrect : Rectangle = null
Original surrounding rectangle of the DiagramGroup to which this DiagramObject belongs.
DiagramObject
 Inherited_orect : Rectangle = null
Original surrounding rectangle of this DiagramObject.
DiagramObject
 Inherited_overlay : Shape = null
Shape used to highlight component.
DiagramSprite
 Inherited_resizeenabled : Boolean = true
Indicates whether this DiagramObject is resizable.
DiagramObject
 Inherited__savedColumn : DiagramColumn = null
DiagramObject
 Inherited__savedlayer : DiagramLayer = null
Layer to which this DiagramObject belongs to without considering user runtime modifications.
DiagramObject
 Inherited_selectable : Boolean = true
Indicates whether this DiagramObject is selectable.
DiagramObject
 Inherited_selected : Boolean = false
Indicates whether this DiagramObject is selected.
DiagramObject
 Inherited_selectedByMouseOver : Boolean = false
true if object was selected by mouse over
DiagramObject
 Inherited_stayInsideMaster : Boolean = true
Indicates whether this DiagramObject stay inside his master.
DiagramObject
 Inherited_svgasset : SVGAsset = null
SVGAsset representing the graphical representation of this DiagramSprite component.
DiagramSprite
 Inherited_transformui : DiagramObjectUI = null
Transform UI that can be used only in transform mode.
DiagramObject
 Inherited_triggers : Array = null
Array of SVGElements depending to this DiagramSprite component and that triggers mouse events.
DiagramSprite
 Inherited_ui : DiagramObjectUI = null
DiagramObjectUI controlling this DiagramObject and used as an tool that user can interact with in order to customize this DiagramObject properties (links, size, styles...).
DiagramObject
 Inherited_view : DiagramView = null
Diagram View to which this DiagramObject belongs.
DiagramObject
 Inherited_x : Number
X coordinate of this DiagramObject.
DiagramObject
 Inherited_y : Number
Y coordinate of this DiagramObject.
DiagramObject
Public Methods
 MethodDefined by
  
Creates a new DiagramAnnotation instance.
DiagramAnnotation
 Inherited
acceptActionBounds(target:DisplayObject, nearestPoint:Point = null, reserve:Boolean = false, compositionBound:int = -1):Array
DiagramSprite
 Inherited
activateTransformUI(a:Boolean):void
Activates or deactivates the Transform UI in Transform Mode.
DiagramObject
 Inherited
activateUI(a:Boolean):void
Activates or deactivates this DiagramObject.
DiagramObject
 Inherited
addChildAt(child:DisplayObject, idx:int):DisplayObject
DiagramObject
 Inherited
addStyleClass(styleclass:String):void
DiagramSprite
 Inherited
Removes an AnchorPoint from this DiagramObject AnchorPoints array.
DiagramObject
 Inherited
appendToSVGDocument(doc:SVGSVGElement):void
Adds this DiagramSprite object in SVG format to an SVGSVGElement object.
DiagramSprite
 Inherited
backToMaster():void
DiagramSprite
 Inherited
checkTagName(xml:XML):Boolean
Checks if an XML object tag name is equal to this DiagramObject tag name.
DiagramObject
 Inherited
cleanup():void
Cleans up listeners.
DiagramSprite
 Inherited
Cleans up listeners.
DiagramSprite
 Inherited
DiagramObject
 Inherited
clearUI():void
Hides UI elements (knobs, link bar, etc) until next screen update
DiagramObject
 Inherited
Creates a new AnchorPoint having this DiagramObject as master and target as target.
DiagramObject
 Inherited
Creates a DiagramAnnotation
DiagramObject
 Inherited
Creates a new AnchorPoint having the DiagramObject dob as master and this DiagramSprite object as target.
DiagramSprite
 Inherited
doDrag(event:MouseEvent):void
Updates the position of the DiagramObject after the dragging action is finished.
DiagramSprite
 Inherited
dragStarted(event:MouseEvent):void
Notifies the start of a dragging operation of this DiagramObject.
DiagramObject
 Inherited
dragStopped(event:MouseEvent):void
Checks if sprite stops on a link, after the dragging action is finished.
DiagramSprite
 Inherited
DiagramSprite
  
fromXML(xml:XML):void
Parses this DiagramAnnotation from an XML object.
DiagramAnnotation
 Inherited
getActionBounds(target:DisplayObject, index:int):Rectangle
DiagramSprite
 Inherited
getAffilationBounds():Rectangle
DiagramSprite
 Inherited
Returns an array of available groups of linkable Sprite IDs.
DiagramSprite
 Inherited
getSVGShape(shapeid:String):SVGElement
DiagramSprite
  
getTagName():String
Returns This DiagramAnnotation tagname equal to "annotation".
DiagramAnnotation
 Inherited
grouping(group:DiagramGroup):void
Inflicts adding this DiagramObject to a DiagramGroup, to the original and original group rectangles by updating their values.
DiagramObject
 Inherited
groupSizing(w:Number, h:Number, update:Boolean = true):void
Inflicts DiagramGroup sizing to this DiagramObject if this DiagramObject belongs to that DiagramGroup.
DiagramObject
 Inherited
hideFeedBack():void
Hides feedback effect on sprite
DiagramSprite
 Inherited
hitTest(p:Point, strict:Boolean = false, selectableOnly:Boolean = false):Boolean
Evaluates the DiagramSprite to see if it overlaps or intersects with the specified point.
DiagramSprite
 Inherited
hitTestUI(p:Point):int
Determines the Diagram hit type given a point (cursor hit position) meaning determining what the cursor hits.
DiagramObject
 Inherited
initDelta():void
Initializes the position (dx,dx) of the DiagramSprite component in its parent coordinate system.
DiagramSprite
 Inherited
initTriggers():void
Adds mouse listeners and allows required actions for this DiagramSprite component.
DiagramSprite
 Inherited
intersectsRect(rect:Rectangle):Boolean
Indicates whether the DiagramObject intersects with a given rectangle.
DiagramObject
 Inherited
isInLink():Boolean
Checks if sprite is involved in a link
DiagramSprite
 Inherited
isInsideRect(rect:Rectangle):Boolean
Indicates whether the DiagramObject is inside a given rectangle.
DiagramObject
 Inherited
Redraws this DiagramSprite when library styles and assets change given a SVGAssetLibraryEvent.
DiagramSprite
 Inherited
linkCreated():void
DiagramObject
 Inherited
Changes the position of this DiagramSprite component after that its AnchorPoint has been updated.
DiagramSprite
 Inherited
Removes this DiagramSprite when is master is removed.
DiagramSprite
 Inherited
masterUpdated(anchor:AnchorPoint, scaleX:Number = 1, scaleY:Number = 1):void
Changes the size of this DiagramSprite component after that its master has been updated.
DiagramSprite
 Inherited
Detects and notifies changes in the scope of this DiagramObject.
DiagramObject
 Inherited
redispatchEvent(event:Event):void
Redispatches a received event to the DiagramObjectUI controlling this DiagramObject _ui.
DiagramObject
 Inherited
releaseActionBounds(index:int):void
DiagramObject
 Inherited
removeStyleClass(styleclass:String):void
DiagramSprite
 Inherited
setPlacement(rect:Rectangle, update:Boolean = true):void
Changes the location and size of this DiagramSprite so that its innerbox property fits the specified rectangle.
DiagramSprite
 Inherited
setPosition(px:Number, py:Number, silent:Boolean = false):void
Adjusts the location of the DiagramObject, as determined by its top-left corner, to the specified position and calls the updateAnchorsPlacement() and updateScope() methods.
DiagramObject
 Inherited
showFeedBack(nearestpoint:Point, compositionBound:int = -1):void
Show feedback effect on sprite
DiagramSprite
 Inherited
DiagramObject
  
toXML():XML
Writes this DiagramAnnotation into an XML object.
DiagramAnnotation
 Inherited
uiCompleted():void
Finalizes modifications on this DiagramSprite, transmitted by its DiagramSpriteUI.
DiagramSprite
 Inherited
Inflicts removing this DiagramObject from a DiagramGroup, to the original and original group rectangles.
DiagramObject
 Inherited
unlink():void
Removes all link references (master and target anchor points) of this DiagramObject.
DiagramObject
 Inherited
unregister():void
DiagramObject
 Inherited
updateAnchorsPlacement(newbox:Rectangle = null, oldbox:Rectangle = null):void
Updates the placement of all the anchors attached to this DiagramObject after it has been resized.
DiagramObject
 Inherited
Updates the DiagramAnnotation attached to this DiagramObject after a change in its scope.
DiagramObject
  
updateColumnScope(fitContent:Boolean = true):void
DiagramAnnotation
 Inherited
Updates the placement of the DiagramLink objects linked to this DiagramObject.
DiagramObject
 Inherited
Updates links of this DiagramObject according to its scope by applying the updateScope() method on each of its anchors.
DiagramObject
 Inherited
updateScope():void
Updates this DiagramObject according to its new scope by updating :
  • its layer container by calling the view.objectLayerChanged() method
  • its scope dependancy by calling the updateUILayer() method
  • its position
  • its astyle
  • its annotation position by calling the updateAnnotationScope() method
The scope change concerns changes on:
  • DiagramLayer of this DiagramLink
  • DiagramLane, DiagramPanel and DiagramPanelsContainer containers of the DiagramLayer containing this DiagramLink
    • As any DiagramObject is embedded in a DiagramLayer of a DiagramLane, a DiagramPanel or a DiagramPanelsContainer, any detected changes on the container of that DiagramLayer transmit changes to the scope of this DiagramObject
DiagramObject
 Inherited
updateStyle():void
Updates this DiagramObject style according to its scope (layer and dependancy to lane or panel).
DiagramObject
 Inherited
updateUI():void
Marks this DiagramObject so that its updateDisplayList() method gets called during a later screen update.
DiagramObject
 Inherited
updateUILayer(sourcelayer:DiagramLayer, targetlayer:DiagramLayer):void
Inflicts changes in the source layer and target layer on the container (DiagramLane or DiagramPanel) of the DiagramObjectUI _ui controlling this DiagramObject (must be a DiagramLink).
DiagramObject
Protected Methods
 MethodDefined by
 Inherited
actionDoubleClick(event:MouseEvent):void
Handles "Double Click" mouse event on this DiagramSprite by triggering the current selected action in the view ActionManger.
DiagramSprite
 Inherited
actionMouseDown(event:MouseEvent):void
Handles "Mouse Down" mouse event on this DiagramSprite by triggering the current selected action in the view ActionManger.
DiagramSprite
 Inherited
applyTransform(matrix:Matrix, update:Boolean = true):void
Applies the transformation matrix matrix to this DiagramSprite component.
DiagramSprite
 Inherited
DiagramSprite
  
createSprite(id:String):void
Builds this DiagramAnnottation properties by initializing its triggers and defining its SVGAsset (annotation SVG Asset).
DiagramAnnotation
 Inherited
Creates the TransformUI controlling this DiagramSprite component.
DiagramSprite
 Inherited
Creates the DiagramSpriteUI controlling this DiagramSprite component.
DiagramSprite
 Inherited
getLinks(input:Boolean):Array
Returns DiagramLinks whose source or target is this object
DiagramObject
 Inherited
hideUI(event:TimerEvent):void
DiagramSprite
 Inherited
hideUIRollOut(event:MouseEvent):void
DiagramSprite
 Inherited
DiagramSprite
 Inherited
manualLinkRollOut(event:MouseEvent):void
DiagramSprite
 Inherited
manualLinkRollOver(event:MouseEvent):void
DiagramSprite
 Inherited
showUIRollOver(event:MouseEvent):void
DiagramSprite
 Inherited
DiagramSprite
 Inherited
svgLinkActionRollOut(event:MouseEvent):void
Handles "Roll Out" mouse event on this DiagramSprite.
DiagramSprite
 Inherited
svgLinkActionRollOver(event:MouseEvent):void
Handles "Roll Over" mouse event on this DiagramSprite.
DiagramSprite
  
Marks the DiagramAnnotation component so that its updateDisplayList() method gets called during a later screen update to render the new system library styles.
DiagramAnnotation
 Inherited
updateDisplayList(w:Number, h:Number):void
Draws the DiagramObject and/or sizes and positions its children.
DiagramObject
Property detail
allowgroupingproperty
allowgrouping:Boolean  [read-only]

A DiagramAnnotation cannot be grouped if its master is selected

Implementation
    public function get allowgrouping():Boolean
allowinputlinksproperty 
allowinputlinks:Boolean  [read-only]Implementation
    public function get allowinputlinks():Boolean
allowoutputlinksproperty 
allowoutputlinks:Boolean  [read-only]Implementation
    public function get allowoutputlinks():Boolean
scaleAsMasterproperty 
scaleAsMaster:Boolean  [read-only]

A DiagramAnnotation doesn't scale as its master

Implementation
    public function get scaleAsMaster():Boolean
spriteidproperty 
spriteid:String  [read-write]

This DiagramSprite ID equal to "annotation".

Implementation
    public function get spriteid():String
    public function set spriteid(value:String):void
stayInsideMasterproperty 
stayInsideMaster:Boolean  [read-only]Implementation
    public function get stayInsideMaster():Boolean
textproperty 
text:String  [read-write]

Text of the DiagramAnnotation.

Implementation
    public function get text():String
    public function set text(value:String):void
Constructor detail
DiagramAnnotation()constructor
public function DiagramAnnotation(view:DiagramView)

Creates a new DiagramAnnotation instance.

Parameters
view:DiagramView — The DiagramView that contains this DiagramAnnotation.
Method detail
createSprite()method
protected override function createSprite(id:String):void

Builds this DiagramAnnottation properties by initializing its triggers and defining its SVGAsset (annotation SVG Asset).

Parameters
id:String — SVGAsset ID that defines the SVG Image representing this DiagramAnnotation.
fromXML()method 
public override function fromXML(xml:XML):void

Parses this DiagramAnnotation from an XML object.

Parameters
xml:XML — An XML object represeting this DiagramAnnotation.
getTagName()method 
public override function getTagName():String

Returns This DiagramAnnotation tagname equal to "annotation".

Returns
String — This Diagramannotation tagname.
systemLibraryStylesChanged()method 
protected function systemLibraryStylesChanged(event:SVGAssetLibraryEvent):void

Marks the DiagramAnnotation component so that its updateDisplayList() method gets called during a later screen update to render the new system library styles.

Parameters
event:SVGAssetLibraryEvent — An SVGAssetLibraryEvent event.
toXML()method 
public override function toXML():XML

Writes this DiagramAnnotation into an XML object.

Returns
XML — An XML object representing this DiagramAnnotation.
updateColumnScope()method 
public override function updateColumnScope(fitContent:Boolean = true):voidParameters
fitContent:Boolean (default = true)