| Package | com.kapit.diagram.ui |
| Class | public class TransformUI |
| Inheritance | TransformUI DiagramObjectUI mx.core.UIComponent |
| Implements | IDiagramObjectUI |
| Property | Defined by | ||
|---|---|---|---|
![]() | innerheight : Number
The inner height of this component.
| DiagramObjectUI | |
![]() | innerleft : Number
The inner left position (X coordinate).
| DiagramObjectUI | |
![]() | innertop : Number
The inner top position (Y coordinate).
| DiagramObjectUI | |
![]() | innerwidth : Number
The inner width of this component.
| DiagramObjectUI | |
| locked : Boolean [read-only]
| TransformUI | ||
![]() | outerheight : Number
The outer height of this component.
| DiagramObjectUI | |
![]() | outerwidth : Number
The outer width of this component.
| DiagramObjectUI | |
![]() | source : DiagramObject
Source property that defines the Diagram Object to which this DiagramObjectUI is linked.
| DiagramObjectUI | |
| Property | Defined by | ||
|---|---|---|---|
![]() | _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 | ||
![]() | _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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
TransformUI(dob:DiagramObject)
| TransformUI | ||
|
activate(a:Boolean):void
| TransformUI | ||
|
clear():void
| TransformUI | ||
![]() |
clearSelection():void
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 | ||
|
getModifications():XML
| TransformUI | ||
|
hitTest(p:Point):int
| TransformUI | ||
|
libraryStylesChanged(event:SVGAssetLibraryEvent):void
Redraws this DiagramSpriteUI and its children (link bar and annotation button) when library styles and assets change given a SVGAssetLibraryEvent.
| TransformUI | ||
![]() |
unlink():void
Unlinks and removes the Diagram Object UI from its parent (usually used when deleting Diagram Objects).
| DiagramObjectUI | |
![]() |
update():void
| DiagramObjectUI | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
actionRunningHandler(event:ActionsManagerEvent):void
Defining Diagram Object UI behaviour and children status while a given action is running (after detecting an ActionManagerEvent).
| DiagramObjectUI | |
![]() |
actionStoppedHandler(event:ActionsManagerEvent):void
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 | ||
|
createChildren():void
| 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 | ||
![]() |
mouseDownHandler(event:MouseEvent):void
Detects a mouse down event and executes a defined action set in the execute method according to
hitTest
result. | DiagramObjectUI | |
|
styleChanged(event:SVGAssetLibraryEvent):void
[static]
Changes the current used CSS style once an SVGAssetLibraryEvent is flagged.
| TransformUI | ||
|
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
| TransformUI | ||
| Constant | Defined by | ||
|---|---|---|---|
| KNOBSIZE : Number = 8 [static]
Used Knob size.
| TransformUI | ||
| _cssinitialized | property |
protected static var _cssinitialized:BooleanTrue if CSS style are successfully initialized.
| _knobfill | property |
protected static var _knobfill:NumberKnob fill style property (color number).
| _knobfillopacity | property |
protected static var _knobfillopacity:NumberKnob fill opacity style property (color number).
| _knoblinecolor | property |
protected static var _knoblinecolor:NumberKnob line color style property (color number).
| _knoblineopacity | property |
protected static var _knoblineopacity:NumberKnob line opacity style property (percentage number).
| _knoblinewidth | property |
protected static var _knoblinewidth:NumberKnob line width style property.
| locked | property |
locked:Boolean [read-only]Implementation
public function get locked():Boolean
| _styleselector | property |
protected static var _styleselector:String = "null"Used style selector String representation.
| styleselector | property |
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
| TransformUI | () | constructor |
| 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):voidDraws a Knob given its position while taking into consideration styling properties (fill color, opacity, line color, size...).
Parametersx: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 |
Rectangle |
| createChildren | () | method |
protected override function createChildren():void
| cssInitialize | () | method |
protected static function cssInitialize():BooleanInitialises SVG libraries (icons and graphics) and sets new style properties (CSS).
ReturnsBoolean — 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 |
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):voidRedraws this DiagramSpriteUI and its children (link bar and annotation button) when library styles and assets change given a SVGAssetLibraryEvent.
Parametersevent:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling a change in asset library properties.
|
| styleChanged | () | method |
protected static function styleChanged(event:SVGAssetLibraryEvent):voidChanges the current used CSS style once an SVGAssetLibraryEvent is flagged.
Parametersevent:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling that new style poroperties were loaded.
|
| updateDisplayList | () | method |
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number |
|
unscaledHeight:Number |
| KNOBSIZE | constant |
protected static const KNOBSIZE:Number = 8Used Knob size.