Packagecom.yworks.resources
Classpublic class CursorProvider
InheritanceCursorProvider Inheritance Object

Provides a global mapping from cursor names to cursor instances.



Public Methods
 MethodDefined By
  
addCursor(name:String, cursor:Cursor):void
[static] Add a mapping from a cursor name to a cursor.
CursorProvider
  
getCursor(name:String):Cursor
[static] Returns the cursor mapped to the given name or null if no such mapping exists.
CursorProvider
Public Constants
 ConstantDefined By
  DEFAULT : String = default
[static] The name of the default cursor icon
CursorProvider
  HAND : String = hand
[static] The name of a hand cursor icon.
CursorProvider
  SIZE_ALL : String = sizeAll
[static] The name of a cursor icon that is used for resizing or moving something in all possible directions.
CursorProvider
  SIZE_NESW : String = sizeNESW
[static] The name of a cursor icon that is used for resizing something in diagonal direction direction (top right to bottom left).
CursorProvider
  SIZE_NS : String = sizeNS
[static] The name of a cursor icon that is used for resizing something in vertical direction.
CursorProvider
  SIZE_NWSE : String = sizeNWSE
[static] The name of a cursor icon that is used for resizing something in diagonal direction direction (top left to bottom right)
CursorProvider
  SIZE_WE : String = sizeWE
[static] The name of a cursor icon that is used for resizing something in horizontal direction.
CursorProvider
Method Detail
addCursor()method
public static function addCursor(name:String, cursor:Cursor):void

Add a mapping from a cursor name to a cursor.

Parameters

name:String — The name of the cursor to map.
 
cursor:Cursor — The cursor to map.

getCursor()method 
public static function getCursor(name:String):Cursor

Returns the cursor mapped to the given name or null if no such mapping exists.

Parameters

name:String — The name of the mapped cursor.

Returns
Cursor
Constant Detail
DEFAULTConstant
public static const DEFAULT:String = default

The name of the default cursor icon

HANDConstant 
public static const HAND:String = hand

The name of a hand cursor icon.

SIZE_ALLConstant 
public static const SIZE_ALL:String = sizeAll

The name of a cursor icon that is used for resizing or moving something in all possible directions.

SIZE_NESWConstant 
public static const SIZE_NESW:String = sizeNESW

The name of a cursor icon that is used for resizing something in diagonal direction direction (top right to bottom left).

SIZE_NSConstant 
public static const SIZE_NS:String = sizeNS

The name of a cursor icon that is used for resizing something in vertical direction.

SIZE_NWSEConstant 
public static const SIZE_NWSE:String = sizeNWSE

The name of a cursor icon that is used for resizing something in diagonal direction direction (top left to bottom right)

SIZE_WEConstant 
public static const SIZE_WE:String = sizeWE

The name of a cursor icon that is used for resizing something in horizontal direction.