Packagecom.senocular.display.transform
Classpublic class ControlConnector
InheritanceControlConnector Inheritance Control Inheritance flash.display.Sprite

Draws a line between two other controls (DisplayObject instances). ControlConnector styling does not support fill styles.



Public Properties
 PropertyDefined By
  control1 : DisplayObject
The first of two control objects that a this ControlConnector instance draws a line between.
ControlConnector
  control2 : DisplayObject
The second of two control objects that a this ControlConnector instance draws a line between.
ControlConnector
 InheritedfillAlpha : Number
The alpha of the color used for filled shapes in dynamically drawn control graphics.
Control
 InheritedfillColor : uint
The color to be used for filled shapes in dynamically drawn control graphics.
Control
 InheritedlineAlpha : Number
The alpha of the color used for outlines in dynamically drawn control graphics.
Control
 InheritedlineColor : uint
The color to be used for outlines in dynamically drawn control graphics.
Control
 InheritedlineThickness : Number
The thickness used for outlines in dynamically drawn control graphics.
Control
 Inheritedtool : TransformTool
A reference to the TransformTool instance the control was placed, defined in the ADDED_TO_STAGE event.
Control
Public Methods
 MethodDefined By
  
ControlConnector(control1:DisplayObject = null, control2:DisplayObject = null)
Constructor for creating new ControlConnector instances.
ControlConnector
 Inherited
draw():void
Draws the visuals of the control.
Control
  
redraw(event:Event):void
[override] Handler for the TransformTool.REDRAW event.
ControlConnector
Protected Methods
 MethodDefined By
 Inherited
added(event:Event):void
Handler for the Event.ADDED event (capture).
Control
 Inherited
addedToStage(event:Event):void
Handler for the Event.ADDED_TO_STAGE event.
Control
 Inherited
Cleanup steps when defining a new tool value.
Control
 Inherited
removedFromStage(event:Event):void
Handler for the Event.REMOVED_FROM_STAGE event.
Control
  
setupTool():void
[override] Setup steps when defining a new tool value.
ControlConnector
 Inherited
targetChanged(event:Event):void
Handler for the TransformTool.TARGET_CHANGED event.
Control
Property Detail
control1property
control1:DisplayObject

The first of two control objects that a this ControlConnector instance draws a line between. Both control1 and control2 need to be valid objects before a line is drawn to connect them.


Implementation
    public function get control1():DisplayObject
    public function set control1(value:DisplayObject):void
control2property 
control2:DisplayObject

The second of two control objects that a this ControlConnector instance draws a line between. Both control1 and control2 need to be valid objects before a line is drawn to connect them.


Implementation
    public function get control2():DisplayObject
    public function set control2(value:DisplayObject):void
Constructor Detail
ControlConnector()Constructor
public function ControlConnector(control1:DisplayObject = null, control2:DisplayObject = null)

Constructor for creating new ControlConnector instances.

Parameters
control1:DisplayObject (default = null) — One of two controls the connector line is drawn between.
 
control2:DisplayObject (default = null) — The second of two controls the connector line is drawn between.
Method Detail
redraw()method
override 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

setupTool()method 
override 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.