| Package | com.senocular.display.transform |
| Class | public class CursorScale |
| Inheritance | CursorScale Cursor flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
![]() | fillAlpha : Number
The alpha of the color used for filled shapes in dynamically drawn
cursor graphics. | Cursor | |
![]() | fillColor : uint
The color to be used for filled shapes in dynamically drawn
cursor graphics. | Cursor | |
![]() | lineAlpha : Number
The alpha of the color used for outlines in dynamically drawn
cursor graphics. | Cursor | |
![]() | lineColor : uint
The color to be used for outlines in dynamically drawn cursor
graphics. | Cursor | |
![]() | lineThickness : 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 | ||
![]() | tool : TransformTool
A reference to the TransformTool instance used by the control
containing the cursor. | Cursor | |
| Method | Defined 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 | ||
| mode | property |
mode:StringScale 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.
public function get mode():String public function set mode(value:String):void| rotationOffset | property |
rotationOffset:NumberA 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.
public function get rotationOffset():Number public function set rotationOffset(value:Number):void| CursorScale | () | Constructor |
public function CursorScale(mode:String = both, rotationOffset:Number = 0)Constructor for creating new CursorScale instances.
Parametersmode:String (default = both) | |
rotationOffset:Number (default = 0) |
| draw | () | method |
override public function draw():voidDraws 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):voidHandler 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 |