com.sibvisions.rad.ui.qt.impl
Class QtCursor

java.lang.Object
  extended by com.sibvisions.rad.ui.qt.impl.QtResource<QCursor>
      extended by com.sibvisions.rad.ui.qt.impl.QtCursor
All Implemented Interfaces:
ICursor, IResource

public class QtCursor
extends QtResource<QCursor>
implements ICursor

The QtCursor encapsulates the representation of the mouse cursor.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
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
QtCursor(QCursor pCursor)
          Creates an instance of QtCursor based on a QCursor.
 
Method Summary
 String getName()
          Returns the name of this cursor.
static QtCursor getPredefinedCursor(int pType)
          Returns a cursor object with the specified predefined type.
static QtCursor 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.qt.impl.QtResource
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

QtCursor

public QtCursor(QCursor pCursor)
Creates an instance of QtCursor based on a QCursor.

Parameters:
pCursor - QCursor
See Also:
QCursor
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 QtCursor 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 QtCursor getSystemCustomCursor(String pCursorName)
Returns a system-specific custom cursor object matching the specified name. Cursor names are, for example: "whats_this"

Parameters:
pCursorName - name a string describing the desired system-specific custom cursor
Returns:
the system specific custom cursor named
See Also:
QCursor, Qt.CursorShape


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.