Packagecom.senocular.display.transform
Classpublic class Cursor
InheritanceCursor Inheritance flash.display.Sprite
Subclasses CursorMove, CursorRegistration, CursorRotate, CursorScale, CursorSkew

Base class for Transform Tool cursors. Cursors can be any DisplayObject instance. The Cursor class provides a styling properties and a basic framework for updates and drawing.



Public Properties
 PropertyDefined 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
  tool : TransformTool
A reference to the TransformTool instance used by the control containing the cursor.
Cursor
Public Methods
 MethodDefined By
  
Constructor for creating new Cursor instances.
Cursor
  
draw():void
Draws the visuals of the cursor.
Cursor
  
redraw(event:Event):void
Handler for redrawing the cursor.
Cursor
Protected Methods
 MethodDefined By
  
added(event:Event):void
Handler for the Event.ADDED event (capture).
Cursor
Property Detail
fillAlphaproperty
fillAlpha:Number

The alpha of the color used for filled shapes in dynamically drawn cursor graphics.


Implementation
    public function get fillAlpha():Number
    public function set fillAlpha(value:Number):void
fillColorproperty 
fillColor:uint

The color to be used for filled shapes in dynamically drawn cursor graphics.


Implementation
    public function get fillColor():uint
    public function set fillColor(value:uint):void
lineAlphaproperty 
lineAlpha:Number

The alpha of the color used for outlines in dynamically drawn cursor graphics.


Implementation
    public function get lineAlpha():Number
    public function set lineAlpha(value:Number):void
lineColorproperty 
lineColor:uint

The color to be used for outlines in dynamically drawn cursor graphics.


Implementation
    public function get lineColor():uint
    public function set lineColor(value:uint):void
lineThicknessproperty 
lineThickness:Number

The thickness used for outlines in dynamically drawn cursor graphics.


Implementation
    public function get lineThickness():Number
    public function set lineThickness(value:Number):void
toolproperty 
tool:TransformTool

A reference to the TransformTool instance used by the control containing the cursor. It is the responsibility of the control to provide a reference of the TransformTool to the cursor.


Implementation
    public function get tool():TransformTool
    public function set tool(value:TransformTool):void
Constructor Detail
Cursor()Constructor
public function Cursor()

Constructor for creating new Cursor instances.

Method Detail
added()method
protected function added(event:Event):void

Handler for the Event.ADDED event (capture). This is used to recognize when child display objects have been added to the display list so that a call to draw can be made.

Parameters

event:Event

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