Packagecom.kapit.diagram.ui
Interfacepublic interface IDiagramObjectUI
ImplementorsDiagramLinkUI, DiagramObjectUI, DiagramSpriteUI, TransformUI



Public Properties
 PropertyDefined by
  parent : DisplayObjectContainer
[read-only] Parent property that defines the parent (container) of a Diagram UI.
IDiagramObjectUI
  source : DiagramObject
[read-only] Source property that defines the Diagram Object to which the Diagram UI class is linked.
IDiagramObjectUI
Public Methods
 MethodDefined by
  
activate(a:Boolean):void
Activates or desactivates this Diagram UI by adding or removing action and mouse listeners to the source Diagram Object View.
IDiagramObjectUI
  
clear():void
Clears the graphics that were drawn to this Graphics object.
IDiagramObjectUI
  
Clears selection by updating the selection index.
IDiagramObjectUI
  
draw():void
Draws this Diagram UI elements while respecting position, style and size properties.
IDiagramObjectUI
  
execute(k:int, event:MouseEvent = null):void
Executes a scaling, modification, dragging, transformation...
IDiagramObjectUI
  
fitToObject(p:DiagramObject = null):void
Updates position or/and size in order to fit its container or its correspondant DiagramObject.
IDiagramObjectUI
  
hitTest(p:Point):int
Determines the Diagram hit type given a point (cursor hit position) meaning determining what the cursor hits.
IDiagramObjectUI
  
Redraws this Diagram UI and its children when library styles and assets change given a SVGAssetLibraryEvent.
IDiagramObjectUI
  
update():void
IDiagramObjectUI
Property detail
parentproperty
parent:DisplayObjectContainer  [read-only]

Parent property that defines the parent (container) of a Diagram UI.

Implementation
    public function get parent():DisplayObjectContainer
sourceproperty 
source:DiagramObject  [read-only]

Source property that defines the Diagram Object to which the Diagram UI class is linked.

Implementation
    public function get source():DiagramObject
Method detail
activate()method
public function activate(a:Boolean):void

Activates or desactivates this Diagram UI by adding or removing action and mouse listeners to the source Diagram Object View.

Parameters
a:Boolean — New Activation status (True if this Diagram UI msut be activated).
clear()method 
public function clear():void

Clears the graphics that were drawn to this Graphics object.

clearSelection()method 
public function clearSelection():void

Clears selection by updating the selection index.

draw()method 
public function draw():void

Draws this Diagram UI elements while respecting position, style and size properties.

execute()method 
public function execute(k:int, event:MouseEvent = null):void

Executes a scaling, modification, dragging, transformation... operations given a mouse event and a Diagram Hit Type defined internally by the Diagram UI classes or the DiagramHitType class.

Parameters
k:int — Diagram Hit Type.
 
event:MouseEvent (default = null) — Detected Mouse Event.
fitToObject()method 
public function fitToObject(p:DiagramObject = null):void

Updates position or/and size in order to fit its container or its correspondant DiagramObject.

Parameters
p:DiagramObject (default = null) — DiagramObject to fit with (not used in this class).
hitTest()method 
public function hitTest(p:Point):int

Determines the Diagram hit type given a point (cursor hit position) meaning determining what the cursor hits. The hitTest function returns a Diagram Hit type index defined in the DiagramHitType class or in the the Diagram UI classes.

Parameters
p:Point — Hit point (cursor hit position).

Returns
int — Diagram Hit Type index.
libraryStylesChanged()method 
public function libraryStylesChanged(event:SVGAssetLibraryEvent):void

Redraws this Diagram UI and its children when library styles and assets change given a SVGAssetLibraryEvent.

Parameters
event:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling a change in asset library properties.
update()method 
public function update():void