| Package | com.yworks.resources |
| Class | public class CursorProvider |
| Inheritance | CursorProvider Object |
| Method | Defined By | ||
|---|---|---|---|
[static]
Add a mapping from a cursor name to a cursor. | CursorProvider | ||
[static]
Returns the cursor mapped to the given name or null if no such mapping exists. | CursorProvider | ||
| Constant | Defined 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 | ||
| addCursor | () | method |
public static function addCursor(name:String, cursor:Cursor):voidAdd 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.
|
Cursor |
| DEFAULT | Constant |
public static const DEFAULT:String = defaultThe name of the default cursor icon
| HAND | Constant |
public static const HAND:String = handThe name of a hand cursor icon.
| SIZE_ALL | Constant |
public static const SIZE_ALL:String = sizeAllThe name of a cursor icon that is used for resizing or moving something in all possible directions.
| SIZE_NESW | Constant |
public static const SIZE_NESW:String = sizeNESWThe name of a cursor icon that is used for resizing something in diagonal direction direction (top right to bottom left).
| SIZE_NS | Constant |
public static const SIZE_NS:String = sizeNSThe name of a cursor icon that is used for resizing something in vertical direction.
| SIZE_NWSE | Constant |
public static const SIZE_NWSE:String = sizeNWSEThe name of a cursor icon that is used for resizing something in diagonal direction direction (top left to bottom right)
| SIZE_WE | Constant |
public static const SIZE_WE:String = sizeWEThe name of a cursor icon that is used for resizing something in horizontal direction.