Packagecom.yworks.resources
Classpublic class CursorProvider

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.