Packagecom.kapit.diagram.ui
Classpublic class TransformUI
InheritanceTransformUI Inheritance DiagramObjectUI Inheritance mx.core.UIComponent
ImplementsIDiagramObjectUI



Public Properties
 PropertyDefined by
 Inheritedinnerheight : Number
The inner height of this component.
DiagramObjectUI
 Inheritedinnerleft : Number
The inner left position (X coordinate).
DiagramObjectUI
 Inheritedinnertop : Number
The inner top position (Y coordinate).
DiagramObjectUI
 Inheritedinnerwidth : Number
The inner width of this component.
DiagramObjectUI
  locked : Boolean
[read-only]
TransformUI
 Inheritedouterheight : Number
The outer height of this component.
DiagramObjectUI
 Inheritedouterwidth : Number
The outer width of this component.
DiagramObjectUI
 Inheritedsource : DiagramObject
Source property that defines the Diagram Object to which this DiagramObjectUI is linked.
DiagramObjectUI
Protected Properties
 PropertyDefined by
 Inherited_activated : Boolean = false
Activation status of the DiagramObjectUI.
DiagramObjectUI
  _cssinitialized : Boolean
[static] True if CSS style are successfully initialized.
TransformUI
  _knobfill : Number
[static] Knob fill style property (color number).
TransformUI
  _knobfillopacity : Number
[static] Knob fill opacity style property (color number).
TransformUI
  _knoblinecolor : Number
[static] Knob line color style property (color number).
TransformUI
  _knoblineopacity : Number
[static] Knob line opacity style property (percentage number).
TransformUI
  _knoblinewidth : Number
[static] Knob line width style property.
TransformUI
 Inherited_source : DiagramObject = null
The Diagram Object to which this DiagramObjectUI is linked.
DiagramObjectUI
  _styleselector : String = "null"
[static] Used style selector String representation.
TransformUI
  styleselector : String
[static] Style Selector property that defines the used style selector (style properties) as a String representation.
TransformUI
Public Methods
 MethodDefined by
  
TransformUI
  
activate(a:Boolean):void
TransformUI
  
clear():void
TransformUI
 Inherited
Clears selection by updating the selection index.
DiagramObjectUI
  
draw():void
TransformUI
  
execute(k:int, event:MouseEvent = null):void
TransformUI
  
fitToObject(dob:DiagramObject = null):void
TransformUI
  
TransformUI
  
hitTest(p:Point):int
TransformUI
  
Redraws this DiagramSpriteUI and its children (link bar and annotation button) when library styles and assets change given a SVGAssetLibraryEvent.
TransformUI
 Inherited
unlink():void
Unlinks and removes the Diagram Object UI from its parent (usually used when deleting Diagram Objects).
DiagramObjectUI
 Inherited
update():void
DiagramObjectUI
Protected Methods
 MethodDefined by
 Inherited
Defining Diagram Object UI behaviour and children status while a given action is running (after detecting an ActionManagerEvent).
DiagramObjectUI
 Inherited
Defining Diagram Object UI behaviour and children status when a given action stops running (after detecting an ActionManagerEvent).
DiagramObjectUI
  
addKnob(x:Number, y:Number, element:SVGPathElement, commandIndex:uint, svgElementIndex:uint):void
Draws a Knob given its position while taking into consideration styling properties (fill color, opacity, line color, size...).
TransformUI
  
computeSVGBoundingBox(svgElement:SVGAsset):Rectangle
TransformUI
  
TransformUI
  
cssInitialize():Boolean
[static] Initialises SVG libraries (icons and graphics) and sets new style properties (CSS).
TransformUI
  
knobMouseDownHandler(event:MouseEvent):void
TransformUI
  
knobMouseMoveHandler(event:MouseEvent):void
TransformUI
  
knobMouseUpHandler(event:MouseEvent):void
TransformUI
 Inherited
mouseDownHandler(event:MouseEvent):void
Detects a mouse down event and executes a defined action set in the execute method according to hitTest result.
DiagramObjectUI
  
[static] Changes the current used CSS style once an SVGAssetLibraryEvent is flagged.
TransformUI
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
TransformUI
Protected Constants
 ConstantDefined by
  KNOBSIZE : Number = 8
[static] Used Knob size.
TransformUI
Property detail
_cssinitializedproperty
protected static var _cssinitialized:Boolean

True if CSS style are successfully initialized.

_knobfillproperty 
protected static var _knobfill:Number

Knob fill style property (color number).

_knobfillopacityproperty 
protected static var _knobfillopacity:Number

Knob fill opacity style property (color number).

_knoblinecolorproperty 
protected static var _knoblinecolor:Number

Knob line color style property (color number).

_knoblineopacityproperty 
protected static var _knoblineopacity:Number

Knob line opacity style property (percentage number).

_knoblinewidthproperty 
protected static var _knoblinewidth:Number

Knob line width style property.

lockedproperty 
locked:Boolean  [read-only]Implementation
    public function get locked():Boolean
_styleselectorproperty 
protected static var _styleselector:String = "null"

Used style selector String representation.

styleselectorproperty 
styleselector:String  [read-write]

Style Selector property that defines the used style selector (style properties) as a String representation.

Implementation
    protected static function get styleselector():String
    protected function set styleselector(value:String):void
Constructor detail
TransformUI()constructor
public function TransformUI(dob:DiagramObject)Parameters
dob:DiagramObject
Method detail
activate()method
public override function activate(a:Boolean):voidParameters
a:Boolean
addKnob()method 
protected function addKnob(x:Number, y:Number, element:SVGPathElement, commandIndex:uint, svgElementIndex:uint):void

Draws a Knob given its position while taking into consideration styling properties (fill color, opacity, line color, size...).

Parameters
x:Number — Knob X coordinate.
 
y:Number — Knob Y coordinate.
 
element:SVGPathElement
 
commandIndex:uint
 
svgElementIndex:uint
clear()method 
public override function clear():void
computeSVGBoundingBox()method 
protected function computeSVGBoundingBox(svgElement:SVGAsset):RectangleParameters
svgElement:SVGAsset

Returns
Rectangle
createChildren()method 
protected override function createChildren():void
cssInitialize()method 
protected static function cssInitialize():Boolean

Initialises SVG libraries (icons and graphics) and sets new style properties (CSS).

Returns
Boolean — CSS properties loading status (success/failure).
draw()method 
public override function draw():void
execute()method 
public override function execute(k:int, event:MouseEvent = null):voidParameters
k:int
 
event:MouseEvent (default = null)
fitToObject()method 
public override function fitToObject(dob:DiagramObject = null):voidParameters
dob:DiagramObject (default = null)
getModifications()method 
public function getModifications():XML

Returns
XML
hitTest()method 
public override function hitTest(p:Point):intParameters
p:Point

Returns
int
knobMouseDownHandler()method 
protected function knobMouseDownHandler(event:MouseEvent):voidParameters
event:MouseEvent
knobMouseMoveHandler()method 
protected function knobMouseMoveHandler(event:MouseEvent):voidParameters
event:MouseEvent
knobMouseUpHandler()method 
protected function knobMouseUpHandler(event:MouseEvent):voidParameters
event:MouseEvent
libraryStylesChanged()method 
public override function libraryStylesChanged(event:SVGAssetLibraryEvent):void

Redraws this DiagramSpriteUI and its children (link bar and annotation button) when library styles and assets change given a SVGAssetLibraryEvent.

Parameters
event:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling a change in asset library properties.
styleChanged()method 
protected static function styleChanged(event:SVGAssetLibraryEvent):void

Changes the current used CSS style once an SVGAssetLibraryEvent is flagged.

Parameters
event:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling that new style poroperties were loaded.
updateDisplayList()method 
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number
 
unscaledHeight:Number
Constant detail
KNOBSIZEconstant
protected static const KNOBSIZE:Number = 8

Used Knob size.