com.sibvisions.rad.ui.awt.impl
Class AwtCursor
java.lang.Object
com.sibvisions.rad.ui.awt.impl.AwtResource<Cursor>
com.sibvisions.rad.ui.awt.impl.AwtCursor
- All Implemented Interfaces:
- ICursor, IResource
public class AwtCursor
- extends AwtResource<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(Cursor pCursor)
Creates an instance of AwtCursor based on
a java.awt.Cursor . |
AwtCursor
public AwtCursor(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 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(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.