com.sibvisions.rad.ui.awt.impl
Class AwtCursor

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<Cursor>
      extended by 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.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
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.
 
Method Summary
 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(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 com.sibvisions.rad.ui.awt.impl.AwtResource
equals, getResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

AwtCursor

public AwtCursor(Cursor pCursor)
Creates an instance of AwtCursor based on a java.awt.Cursor.

Parameters:
pCursor - java.awt.Cursor
See Also:
Cursor
Method Detail

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.