com.sibvisions.rad.ui.awt.impl
Class AwtCursor
java.lang.Object
com.sibvisions.rad.ui.awt.impl.AwtResource<java.awt.Cursor>
com.sibvisions.rad.ui.awt.impl.AwtCursor
- All Implemented Interfaces:
- ICursor, IResource
public class AwtCursor
- extends AwtResource<java.awt.Cursor>
- implements ICursor
A class to encapsulate the representation of the mouse cursor.
Fields inherited from interface javax.rad.ui.ICursor |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Constructor Summary |
AwtCursor(java.awt.Cursor pCursor)
Creates an instance of AwtCursor based on
a java.awt.Cursor . |
Method Summary |
java.lang.String |
getName()
Returns the name of this cursor. |
static AwtCursor |
getPredefinedCursor(int pType)
Returns a cursor object with the specified predefined type. |
static AwtCursor |
getSystemCustomCursor(java.lang.String pCursorName)
Returns a system-specific custom cursor object matching the
specified name. |
int |
getType()
Returns the type for this cursor. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AwtCursor
public AwtCursor(java.awt.Cursor pCursor)
- Creates an instance of
AwtCursor
based on
a java.awt.Cursor
.
- Parameters:
pCursor
- java.awt.Cursor- See Also:
Cursor
getType
public int getType()
- Returns the type for this cursor.
- Specified by:
getType
in interface ICursor
- Returns:
- the cursor type.
getName
public java.lang.String getName()
- Returns the name of this cursor.
- Specified by:
getName
in interface ICursor
- Returns:
- a localized description of this cursor.
getPredefinedCursor
public static AwtCursor getPredefinedCursor(int pType)
- Returns a cursor object with the specified predefined type.
- Parameters:
pType
- the type of predefined cursor
- Returns:
- the specified predefined cursor
getSystemCustomCursor
public static AwtCursor getSystemCustomCursor(java.lang.String pCursorName)
- Returns a system-specific custom cursor object matching the
specified name. Cursor names are, for example: "Invalid.16x16"
- Parameters:
pCursorName
- name a string describing the desired system-specific custom cursor
- Returns:
- the system specific custom cursor named
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.