| Package | com.senocular.display.transform |
| Class | public class Control |
| Inheritance | Control flash.display.Sprite |
| Subclasses | ControlBorder, ControlBoundingBox, ControlConnector, ControlGhostOutline, ControlInteractive, ControlOrigin, ControlReset |
| Property | Defined By | ||
|---|---|---|---|
| fillAlpha : Number
The alpha of the color used for filled shapes in dynamically drawn
control graphics. | Control | ||
| fillColor : uint
The color to be used for filled shapes in dynamically drawn
control graphics. | Control | ||
| lineAlpha : Number
The alpha of the color used for outlines in dynamically drawn
control graphics. | Control | ||
| lineColor : uint
The color to be used for outlines in dynamically drawn control
graphics. | Control | ||
| lineThickness : Number
The thickness used for outlines in dynamically drawn control
graphics. | Control | ||
| tool : TransformTool
A reference to the TransformTool instance the control was placed,
defined in the ADDED_TO_STAGE event. | Control | ||
| Method | Defined By | ||
|---|---|---|---|
Control()
Constructor for creating new Control instances. | Control | ||
draw():void
Draws the visuals of the control. | Control | ||
redraw(event:Event):void
Handler for the TransformTool.REDRAW event. | Control | ||
| Method | Defined By | ||
|---|---|---|---|
added(event:Event):void
Handler for the Event.ADDED event (capture). | Control | ||
addedToStage(event:Event):void
Handler for the Event.ADDED_TO_STAGE event. | Control | ||
cleanupTool():void
Cleanup steps when defining a new tool value. | Control | ||
removedFromStage(event:Event):void
Handler for the Event.REMOVED_FROM_STAGE event. | Control | ||
setupTool():void
Setup steps when defining a new tool value. | Control | ||
targetChanged(event:Event):void
Handler for the TransformTool.TARGET_CHANGED event. | Control | ||
| fillAlpha | property |
fillAlpha:NumberThe alpha of the color used for filled shapes in dynamically drawn control graphics.
public function get fillAlpha():Number public function set fillAlpha(value:Number):void| fillColor | property |
fillColor:uintThe color to be used for filled shapes in dynamically drawn control graphics.
public function get fillColor():uint public function set fillColor(value:uint):void| lineAlpha | property |
lineAlpha:NumberThe alpha of the color used for outlines in dynamically drawn control graphics.
public function get lineAlpha():Number public function set lineAlpha(value:Number):void| lineColor | property |
lineColor:uintThe color to be used for outlines in dynamically drawn control graphics.
public function get lineColor():uint public function set lineColor(value:uint):void| lineThickness | property |
lineThickness:NumberThe thickness used for outlines in dynamically drawn control graphics.
public function get lineThickness():Number public function set lineThickness(value:Number):void| tool | property |
tool:TransformToolA reference to the TransformTool instance the control was placed, defined in the ADDED_TO_STAGE event. The control must be a direct child of a TransformTool instance for it to be recognized.
public function get tool():TransformTool public function set tool(value:TransformTool):void| Control | () | Constructor |
public function Control()Constructor for creating new Control instances.
| added | () | method |
protected function added(event:Event):voidHandler for the Event.ADDED event (capture). This is used to recognize when child display objects have been added to the display list so that a call to draw can be made.
Parameters
event:Event |
| addedToStage | () | method |
protected function addedToStage(event:Event):voidHandler for the Event.ADDED_TO_STAGE event. By default, this is used to define the tool reference. If valid, draw() is called.
Parameters
event:Event |
| cleanupTool | () | method |
protected function cleanupTool():voidCleanup steps when defining a new tool value. You may need to override this method to control the order of operations when adding content to the set tool setter. This is called before a new tool value is set.
| draw | () | method |
public function draw():voidDraws the visuals of the control. This is called when first added to the stage as a child of a TransformTool instance and when a child is added to the control's own display list. It can be called at any time to redraw the graphics of the control.
| redraw | () | method |
public function redraw(event:Event):voidHandler for the TransformTool.REDRAW event. This has no default behavior and is to be overriden by subclasses if needed.
Parameters
event:Event |
| removedFromStage | () | method |
protected function removedFromStage(event:Event):voidHandler for the Event.REMOVED_FROM_STAGE event. By default, this is used to clear the tool reference.
Parameters
event:Event |
| setupTool | () | method |
protected function setupTool():voidSetup steps when defining a new tool value. You may need to override this method to control the order of operations when adding content to the set tool setter. This is called after a new tool value is set.
| targetChanged | () | method |
protected function targetChanged(event:Event):voidHandler for the TransformTool.TARGET_CHANGED event. This has no default behavior and is to be overriden by subclasses if needed.
Parameters
event:Event |