| Package | com.yworks.resources |
| Class | public class CursorProvider |
| 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.
Parametersname: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.
name:String — The name of the mapped cursor.
|
Cursor |
| DEFAULT | constant |
public static const DEFAULT:String = "default"The name of the default cursor icon
| HAND | constant |
public static const HAND:String = "hand"The name of a hand cursor icon.
| SIZE_ALL | constant |
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_NESW | constant |
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_NS | constant |
public static const SIZE_NS:String = "sizeNS"The name of a cursor icon that is used for resizing something in vertical direction.
| SIZE_NWSE | constant |
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_WE | constant |
public static const SIZE_WE:String = "sizeWE"The name of a cursor icon that is used for resizing something in horizontal direction.