Packagecom.kapit.diagram.ui
Classpublic class DragRectangleUI
InheritanceDragRectangleUI Inheritance mx.core.UIComponent



Public Properties
 PropertyDefined by
  rectangle : Rectangle
[read-only] Rectangle property that defines the properties of the rectangle UI.
DragRectangleUI
Protected Properties
 PropertyDefined by
  _controller : IUIController = null
Used UI Controller.
DragRectangleUI
  _fill : Number
[static] Drag-Rectangle fill style property (color number).
DragRectangleUI
  _fillopacity : Number
[static] Drag-Rectangle opacity fill style property (percentage number).
DragRectangleUI
  _height : Number = 0
Drag-Rectangle Height
DragRectangleUI
  _initialized : Boolean
[static]
DragRectangleUI
  _linecolor : Number
[static] Drag-Rectangle line color property (color number).
DragRectangleUI
  _lineopacity : Number
[static] Drag-Rectangle line opacity property (percentage number).
DragRectangleUI
  _linewidth : Number
[static] Drag-Rectangle line width property.
DragRectangleUI
  _styleselector : String = "null"
[static] Used style selector String representation.
DragRectangleUI
  styleselector : String
[static] Style Selector property that defines the used style selector (style properties) as a String representation.
DragRectangleUI
  _width : Number = 0
Drag-Rectangle Width.
DragRectangleUI
Public Methods
 MethodDefined by
  
Defines a Drag Rectangle UI operation using its controller and style properties.
DragRectangleUI
  
clear():void
Clears the graphics that were drawn to this Graphics object.
DragRectangleUI
  
draw():void
Draws this DragRectangleUI elements while respecting style and size constraints.
DragRectangleUI
  
run(event:MouseEvent):void
Starts drawing a drag rectangle by defining the default width and height (0 valued) and applying mouse listeners.
DragRectangleUI
Protected Methods
 MethodDefined by
  
initialize():Boolean
[static] Initialises SVG libraries (icons and graphics) and sets new style properties (CSS).
DragRectangleUI
  
mouseMoveHandler(event:MouseEvent):void
Applies scaling operations while moving the cursor (Dragging operation).
DragRectangleUI
  
mouseUpHandler(event:MouseEvent):void
Finalizes the scaling operation after a mouse up event, removes all listeners and clears stage from drawn rectangle (selection done).
DragRectangleUI
  
[static] Changes the current used CSS style once an SVGAssetLibraryEvent is flagged.
DragRectangleUI
Property detail
_controllerproperty
protected var _controller:IUIController = null

Used UI Controller.

_fillproperty 
protected static var _fill:Number

Drag-Rectangle fill style property (color number).

_fillopacityproperty 
protected static var _fillopacity:Number

Drag-Rectangle opacity fill style property (percentage number).

_heightproperty 
protected var _height:Number = 0

Drag-Rectangle Height

_initializedproperty 
protected static var _initialized:Boolean
_linecolorproperty 
protected static var _linecolor:Number

Drag-Rectangle line color property (color number).

_lineopacityproperty 
protected static var _lineopacity:Number

Drag-Rectangle line opacity property (percentage number).

_linewidthproperty 
protected static var _linewidth:Number

Drag-Rectangle line width property.

rectangleproperty 
rectangle:Rectangle  [read-only]

Rectangle property that defines the properties of the rectangle UI.

Implementation
    public function get rectangle():Rectangle
_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
_widthproperty 
protected var _width:Number = 0

Drag-Rectangle Width.

Constructor detail
DragRectangleUI()constructor
public function DragRectangleUI(controller:IUIController)

Defines a Drag Rectangle UI operation using its controller and style properties.

Parameters
controller:IUIController — Used IUIController that defines the drag operation process.
Method detail
clear()method
public function clear():void

Clears the graphics that were drawn to this Graphics object.

draw()method 
public function draw():void

Draws this DragRectangleUI elements while respecting style and size constraints.

initialize()method 
protected static function initialize():Boolean

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

Returns
Boolean — CSS properties loading status (success/failure).
mouseMoveHandler()method 
protected function mouseMoveHandler(event:MouseEvent):void

Applies scaling operations while moving the cursor (Dragging operation).

Parameters
event:MouseEvent — Detected Mouse Event.
mouseUpHandler()method 
protected function mouseUpHandler(event:MouseEvent):void

Finalizes the scaling operation after a mouse up event, removes all listeners and clears stage from drawn rectangle (selection done).

Parameters
event:MouseEvent — Detected Mouse Event.
run()method 
public function run(event:MouseEvent):void

Starts drawing a drag rectangle by defining the default width and height (0 valued) and applying mouse listeners.

Parameters
event:MouseEvent — Detected Mouse Event.
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.