| Package | com.kapit.diagram.ui |
| Class | public class DragRectangleUI |
| Inheritance | DragRectangleUI mx.core.UIComponent |
| Property | Defined by | ||
|---|---|---|---|
| rectangle : Rectangle [read-only]
Rectangle property that defines the properties of the rectangle UI.
| DragRectangleUI | ||
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
DragRectangleUI(controller:IUIController)
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 | ||
| Method | Defined 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 | ||
|
styleChanged(event:SVGAssetLibraryEvent):void
[static]
Changes the current used CSS style once an SVGAssetLibraryEvent is flagged.
| DragRectangleUI | ||
| _controller | property |
protected var _controller:IUIController = nullUsed UI Controller.
| _fill | property |
protected static var _fill:NumberDrag-Rectangle fill style property (color number).
| _fillopacity | property |
protected static var _fillopacity:NumberDrag-Rectangle opacity fill style property (percentage number).
| _height | property |
protected var _height:Number = 0Drag-Rectangle Height
| _initialized | property |
protected static var _initialized:Boolean
| _linecolor | property |
protected static var _linecolor:NumberDrag-Rectangle line color property (color number).
| _lineopacity | property |
protected static var _lineopacity:NumberDrag-Rectangle line opacity property (percentage number).
| _linewidth | property |
protected static var _linewidth:NumberDrag-Rectangle line width property.
| rectangle | property |
rectangle:Rectangle [read-only]Rectangle property that defines the properties of the rectangle UI.
Implementation public function get rectangle():Rectangle
| _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
| _width | property |
protected var _width:Number = 0Drag-Rectangle Width.
| DragRectangleUI | () | constructor |
public function DragRectangleUI(controller:IUIController)Defines a Drag Rectangle UI operation using its controller and style properties.
Parameterscontroller:IUIController — Used IUIController that defines the drag operation process.
|
| clear | () | method |
public function clear():voidClears the graphics that were drawn to this Graphics object.
| draw | () | method |
public function draw():voidDraws this DragRectangleUI elements while respecting style and size constraints.
| initialize | () | method |
protected static function initialize():BooleanInitialises SVG libraries (icons and graphics) and sets new style properties (CSS).
ReturnsBoolean — CSS properties loading status (success/failure).
|
| mouseMoveHandler | () | method |
protected function mouseMoveHandler(event:MouseEvent):voidApplies scaling operations while moving the cursor (Dragging operation).
Parametersevent:MouseEvent — Detected Mouse Event.
|
| mouseUpHandler | () | method |
protected function mouseUpHandler(event:MouseEvent):voidFinalizes the scaling operation after a mouse up event, removes all listeners and clears stage from drawn rectangle (selection done).
Parametersevent:MouseEvent — Detected Mouse Event.
|
| run | () | method |
public function run(event:MouseEvent):voidStarts drawing a drag rectangle by defining the default width and height (0 valued) and applying mouse listeners.
Parametersevent:MouseEvent — Detected Mouse Event.
|
| 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.
|