Packagecom.senocular.display.transform
Classpublic class CursorScale
InheritanceCursorScale Inheritance Cursor Inheritance flash.display.Sprite

Cursor for scale controls.



Public Properties
 PropertyDefined By
 InheritedfillAlpha : Number
The alpha of the color used for filled shapes in dynamically drawn cursor graphics.
Cursor
 InheritedfillColor : uint
The color to be used for filled shapes in dynamically drawn cursor graphics.
Cursor
 InheritedlineAlpha : Number
The alpha of the color used for outlines in dynamically drawn cursor graphics.
Cursor
 InheritedlineColor : uint
The color to be used for outlines in dynamically drawn cursor graphics.
Cursor
 InheritedlineThickness : Number
The thickness used for outlines in dynamically drawn cursor graphics.
Cursor
  mode : String
Scale mode used by the scale control this cursor is associated with.
CursorScale
  rotationOffset : Number
A rotation offset for the cursor.
CursorScale
 Inheritedtool : TransformTool
A reference to the TransformTool instance used by the control containing the cursor.
Cursor
Public Methods
 MethodDefined By
  
CursorScale(mode:String = both, rotationOffset:Number = 0)
Constructor for creating new CursorScale instances.
CursorScale
  
draw():void
[override] Draws the visuals of the cursor.
CursorScale
  
redraw(event:Event):void
[override] Handler for redrawing the cursor.
CursorScale
Protected Methods
 MethodDefined By
 Inherited
added(event:Event):void
Handler for the Event.ADDED event (capture).
Cursor
Property Detail
modeproperty
mode:String

Scale mode used by the scale control this cursor is associated with. The scale mode is used to determine cursor rotation. This can be either ControlUVScale.X_AXIS, ControlUVSkewBar.Y_AXIS ControlUVScale.BOTH, or ControlUVScale.UNIFORM.


Implementation
    public function get mode():String
    public function set mode(value:String):void
rotationOffsetproperty 
rotationOffset:Number

A rotation offset for the cursor. Depending on the position of the scale control, you may want to rotate the cursor to point in another direction.


Implementation
    public function get rotationOffset():Number
    public function set rotationOffset(value:Number):void
Constructor Detail
CursorScale()Constructor
public function CursorScale(mode:String = both, rotationOffset:Number = 0)

Constructor for creating new CursorScale instances.

Parameters
mode:String (default = both)
 
rotationOffset:Number (default = 0)
Method Detail
draw()method
override public function draw():void

Draws the visuals of the cursor. This is called when an instance of Cursor is first created or when a child is added to its own display list. It can be called at any time to redraw the graphics of the cursor.

redraw()method 
override public function redraw(event:Event):void

Handler for redrawing the cursor. Controls are responsible for calling this handler, typically from within their own TransformTool.REDRAW handler. Cursors do not listen for this event on their own.

Parameters

event:Event