Packagecom.senocular.display.transform
Classpublic class Control
InheritanceControl Inheritance flash.display.Sprite
Subclasses ControlBorder, ControlBoundingBox, ControlConnector, ControlGhostOutline, ControlInteractive, ControlOrigin, ControlReset

Base class for standard Transform Tool controls. The base class includes basic styling properties and the core framework for updates. For interactive controls, use ControlInteractive. It is not required for controls to extend the Control class to be used as a control of the Transform Tool.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
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
Protected Methods
 MethodDefined 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
  
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
Property Detail
fillAlphaproperty
fillAlpha:Number

The alpha of the color used for filled shapes in dynamically drawn control graphics.


Implementation
    public function get fillAlpha():Number
    public function set fillAlpha(value:Number):void
fillColorproperty 
fillColor:uint

The color to be used for filled shapes in dynamically drawn control graphics.


Implementation
    public function get fillColor():uint
    public function set fillColor(value:uint):void
lineAlphaproperty 
lineAlpha:Number

The alpha of the color used for outlines in dynamically drawn control graphics.


Implementation
    public function get lineAlpha():Number
    public function set lineAlpha(value:Number):void
lineColorproperty 
lineColor:uint

The color to be used for outlines in dynamically drawn control graphics.


Implementation
    public function get lineColor():uint
    public function set lineColor(value:uint):void
lineThicknessproperty 
lineThickness:Number

The thickness used for outlines in dynamically drawn control graphics.


Implementation
    public function get lineThickness():Number
    public function set lineThickness(value:Number):void
toolproperty 
tool:TransformTool

A 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.


Implementation
    public function get tool():TransformTool
    public function set tool(value:TransformTool):void
Constructor Detail
Control()Constructor
public function Control()

Constructor for creating new Control instances.

Method Detail
added()method
protected function added(event:Event):void

Handler 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):void

Handler 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():void

Cleanup 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():void

Draws 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):void

Handler 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):void

Handler 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():void

Setup 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):void

Handler for the TransformTool.TARGET_CHANGED event. This has no default behavior and is to be overriden by subclasses if needed.

Parameters

event:Event