| Package | com.senocular.display.transform |
| Class | public class ControlConnector |
| Inheritance | ControlConnector Control flash.display.Sprite |
| Property | Defined 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 | ||
![]() | 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 | ||
|---|---|---|---|
ControlConnector(control1:DisplayObject = null, control2:DisplayObject = null)
Constructor for creating new ControlConnector instances. | ControlConnector | ||
![]() | draw():void
Draws the visuals of the control. | Control | |
redraw(event:Event):void [override]
Handler for the TransformTool.REDRAW event. | ControlConnector | ||
| 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 [override]
Setup steps when defining a new tool value. | ControlConnector | ||
![]() | targetChanged(event:Event):void
Handler for the TransformTool.TARGET_CHANGED event. | Control | |
| control1 | property |
control1:DisplayObjectThe 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.
public function get control1():DisplayObject public function set control1(value:DisplayObject):void| control2 | property |
control2:DisplayObjectThe 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.
public function get control2():DisplayObject public function set control2(value:DisplayObject):void| ControlConnector | () | Constructor |
public function ControlConnector(control1:DisplayObject = null, control2:DisplayObject = null)Constructor for creating new ControlConnector instances.
Parameterscontrol1: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.
|
| redraw | () | method |
override 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 |
| setupTool | () | method |
override 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.