Packagecom.senocular.display.transform
Classpublic class ControlUVSkewBar
InheritanceControlUVSkewBar Inheritance ControlUV Inheritance ControlInteractive Inheritance Control Inheritance flash.display.Sprite

Allows the user to skew the target object. Unlike other controls, a ControlUVSkewBar instance is hidden by default. Unlike other ControlUV instances, ControlUVSkewBar uses two UV coordinates for positioning, drawing a "line" from each to represent the active area of the control.



Public Properties
 PropertyDefined By
 Inheritedcursor : Cursor
The cursor to be used when interacting with this control.
ControlInteractive
 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
  mode : String
Skew mode for skewing.
ControlUVSkewBar
 Inheritedoffset : Point
A pixel-based offset (not percentage) for additional positioning for the control on top of UV positioning.
ControlUV
  thickness : Number
The size of the control, or the thickness of the "line" drawn between (u,v) and (u2,v2) that represents the active area of the control.
ControlUVSkewBar
 Inheritedtool : TransformTool
A reference to the TransformTool instance the control was placed, defined in the ADDED_TO_STAGE event.
Control
 Inheritedu : Number
The U value in the UV positioning used by the Control object.
ControlUV
  u2 : Number
A second U position to represent where the skew bar is drawn.
ControlUVSkewBar
 Inheritedv : Number
The V value in the UV positioning used by the Control object.
ControlUV
  v2 : Number
A second V position to represent where the skew bar is drawn.
ControlUVSkewBar
Protected Properties
 PropertyDefined By
 InheritedactiveLocalX : Number
Mouse location in x axis within the target object coordinate space while the control is being dragged.
ControlInteractive
 InheritedactiveLocalY : Number
Mouse location in y axis within the target object coordinate space while the control is being dragged.
ControlInteractive
 InheritedactiveMouseEvent : MouseEvent
The most recent mouse event received by the activeTarget dispatcher when consuming mouse events.
ControlInteractive
 InheritedactiveTarget : IEventDispatcher
The object from which mouse events are consumed.
ControlInteractive
 InheritedactiveX : Number
Mouse location in x axis within the Transform Tool coordinate space while the control is being dragged.
ControlInteractive
 InheritedactiveY : Number
Mouse location in y axis within the Transform Tool coordinate space while the control is being dragged.
ControlInteractive
 InheritedbaseLocalMatrixInverted : Matrix
Inverted base matrix used to convert locations in the Transform Tool coordinate space into locations within the target object coordinate space.
ControlInteractive
 InheritedbaseLocalRegistration : Point
Registration point location within the target object coordinate space when the control is first clicked.
ControlInteractive
 InheritedbaseLocalX : Number
Mouse location in x axis within the target object coordinate space after offsets are applied when the control is first clicked.
ControlInteractive
 InheritedbaseLocalY : Number
Mouse location in y axis within the target object coordinate space when the control is first clicked.
ControlInteractive
 InheritedbaseRegistration : Point
Registration point location within the Transform Tool coordinate space when the control is first clicked.
ControlInteractive
 InheritedbaseX : Number
Mouse location in x axis within the Transform Tool coordinate space when the control is first clicked.
ControlInteractive
 InheritedbaseY : Number
Mouse location in y axis within the Transform Tool coordinate space when the control is first clicked.
ControlInteractive
 InheritedlocalMouse : Point
Mouse location within the target object coordinate space when the control is first clicked.
ControlInteractive
 Inheritedmouse : Point
Mouse location within the Transform Tool coordinate space when the control is first clicked.
ControlInteractive
 InheritedoffsetMouse : Point
Offset for the mouse position.
ControlInteractive
Public Methods
 MethodDefined By
  
ControlUVSkewBar(u:Number = 0, v:Number = 0, u2:Number = 1, v2:Number = 0, mode:String, cursor:Cursor = null)
Constructor for creating new ControlUVRotate instances.
ControlUVSkewBar
  
draw():void
[override] Draws the visuals of the control.
ControlUVSkewBar
 Inherited
getLocalUVPosition(u:Number, v:Number, target:DisplayObject):Point
Returns the UV position within the local coordinate space of a target DisplayObject instance.
ControlUV
 Inherited
getUVPosition(u:Number, v:Number, offset:Point = null):Point
Returns the position of the control within the coordinate space of the Transform Tool for the current target object given values for UV and offsets.
ControlUV
  
redraw(event:Event):void
[override] Handler for the TransformTool.REDRAW event.
ControlUVSkewBar
Protected Methods
 MethodDefined By
  
activeMouseMove(event:MouseEvent):void
[override] Handler for the MouseEvent.MOUSE_MOVE event from the activeTarget object.
ControlUVSkewBar
 Inherited
activeMouseUp(event:MouseEvent):void
Handler for the MouseEvent.MOUSE_UP event (capture and no capture) from the activeTarget object.
ControlInteractive
 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
calculateAndUpdate(commit:Boolean = true, enforceNegativeScaling:Boolean = true):void
Calls calculateTransform and update from the parent TransformTool instance.
ControlInteractive
 Inherited
Clears variables and listeners for tracking the mouse location.
ControlInteractive
 Inherited
Cleanup steps when defining a new cursor value.
ControlInteractive
 Inherited
Cleanup steps when defining a new tool value.
Control
 Inherited
mouseDown(event:MouseEvent):void
Handler for the MouseEvent.ROLL_OUT event for the control object.
ControlInteractive
 Inherited
mouseUp(event:MouseEvent):void
Handler for the MouseEvent.MOUSE_UP event for the control object.
ControlInteractive
 Inherited
move():void
Moves the transform using the current mouse position (applied to postTransform).
ControlInteractive
 Inherited
Moves the registration point using the current mouse position.
ControlInteractive
 Inherited
removedFromStage(event:Event):void
[override] Handler for the Event.REMOVED_FROM_STAGE event.
ControlInteractive
 Inherited
restrict(event:Event):void
Handler for the TransformTool.RESTRICT event.
ControlInteractive
 Inherited
rollOut(event:MouseEvent):void
Handler for the MouseEvent.ROLL_OUT event for the control object.
ControlInteractive
 Inherited
rollOver(event:MouseEvent):void
Handler for the MouseEvent.ROLL_OVER event for the control object.
ControlInteractive
 Inherited
rotate():void
Rotates a transform using the current mouse position (applied to postTransform).
ControlInteractive
 Inherited
scale():void
Scales the transform along both the x and y axes using the current mouse position (applied to preTransform).
ControlInteractive
 Inherited
scaleXAxis():void
Scales the transform along the axis using the current mouse position (applied to preTransform).
ControlInteractive
 Inherited
scaleYAxis():void
Scales the transform along the y axis using the current mouse position (applied to preTransform).
ControlInteractive
  
[override] Sets the position of the control to the current location returned by getUVPosition.
ControlUVSkewBar
 Inherited
Intializes variables and listeners for tracking the mouse location.
ControlInteractive
 Inherited
Setup steps when defining a new cursor value.
ControlInteractive
 Inherited
setupTool():void
[override] Setup steps when defining a new tool value.
ControlInteractive
 Inherited
skewXAxis():void
Skews the transform along the x axis using the current mouse position (applied to preTransform).
ControlInteractive
 Inherited
skewYAxis():void
Skews the transform along the y axis using the current mouse position (applied to preTransform).
ControlInteractive
 Inherited
targetChanged(event:Event):void
[override] Handler for the TransformTool.TARGET_CHANGED event.
ControlInteractive
 Inherited
Scales the transform along both the x and y axes using the current mouse position in a uniform fashion (applied to preTransform).
ControlInteractive
 Inherited
Updates active references for mouse positions.
ControlInteractive
 Inherited
Updates base references for mouse positions.
ControlInteractive
 Inherited
Updates the values of the base references.
ControlInteractive
 Inherited
updateMousePositions(event:MouseEvent = null):void
Updates mouse position references from the provided mouse event.
ControlInteractive
Public Constants
 ConstantDefined By
 InheritedMIN_SCALE_BASE : Number = .1
The minimum distance to allow scaling.
ControlInteractive
  X_AXIS : String = xAxis
[static] Skew mode for skewing on the x axis.
ControlUVSkewBar
  Y_AXIS : String = yAxis
[static] Skew mode for skewing on the y axis.
ControlUVSkewBar
Property Detail
modeproperty
mode:String

Skew mode for skewing. This can beeither X_AXIS, or Y_AXIS.


Implementation
    public function get mode():String
    public function set mode(value:String):void
thicknessproperty 
thickness:Number

The size of the control, or the thickness of the "line" drawn between (u,v) and (u2,v2) that represents the active area of the control.


Implementation
    public function get thickness():Number
    public function set thickness(value:Number):void
u2property 
u2:Number

A second U position to represent where the skew bar is drawn. ControlUVSkewBar instances are drawn between (u,v) and (u2,v2).


Implementation
    public function get u2():Number
    public function set u2(value:Number):void
v2property 
v2:Number

A second V position to represent where the skew bar is drawn. ControlUVSkewBar instances are drawn between (u,v) and (u2,v2).


Implementation
    public function get v2():Number
    public function set v2(value:Number):void
Constructor Detail
ControlUVSkewBar()Constructor
public function ControlUVSkewBar(u:Number = 0, v:Number = 0, u2:Number = 1, v2:Number = 0, mode:String, cursor:Cursor = null)

Constructor for creating new ControlUVRotate instances.

Parameters
u:Number (default = 0) — The U value for positioning one end of the control in the x axis.
 
v:Number (default = 0) — The V value for positioning one end of the control in the y axis.
 
u2:Number (default = 1) — The U value for positioning the other end of the control in the x axis.
 
v2:Number (default = 0) — The V value for positioning the other end of the control in the y axis.
 
mode:String (default = NaN) — The transform mode to use for skewing. This can be either X_AXIS, or Y_AXIS.
 
cursor:Cursor (default = null) — The cursor to be used while interacting with the control instance.
Method Detail
activeMouseMove()method
override protected function activeMouseMove(event:MouseEvent):void

Handler for the MouseEvent.MOUSE_MOVE event from the activeTarget object. This is used to update the active mouse positions.

Parameters

event:MouseEvent

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

setPosition()method 
override protected function setPosition():void

Sets the position of the control to the current location returned by getUVPosition.

Constant Detail
X_AXISConstant
public static const X_AXIS:String = xAxis

Skew mode for skewing on the x axis.

Y_AXISConstant 
public static const Y_AXIS:String = yAxis

Skew mode for skewing on the y axis.