yu.ac.bg.etf.javaqx.qswing
Class Cursor

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.Cursor

public class Cursor
extends java.lang.Object

Cursor Class.

NOTE: This class is not full compatible with java.awt.Cursor class!

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
static int BLANK_CURSOR
          The blank cursor type.
static int CROSSHAIR_CURSOR
          The crosshair cursor type.
static int CUSTOM_CURSOR
          The blank cursor type.
static int DEFAULT_CURSOR
          The default cursor type.
static int E_RESIZE_CURSOR
          The east-resize cursor type.
static int FORBIDDEN_CURSOR
          The forbidden cursor type.
static int H_SPLIT_CURSOR
          The horizontal cursor type.
static int HAND_CURSOR
          The hand cursor type.
static int MOVE_CURSOR
          The move cursor type.
static int N_RESIZE_CURSOR
          The north-resize cursor type.
static int NE_RESIZE_CURSOR
          The north-east-resize cursor type.
static int NW_RESIZE_CURSOR
          The north-west-resize cursor type.
static int S_RESIZE_CURSOR
          The south-resize cursor type.
static int SE_RESIZE_CURSOR
          The south-east-resize cursor type.
static int SW_RESIZE_CURSOR
          The south-west-resize cursor type.
static int TEXT_CURSOR
          The text cursor type.
static int UP_ARROW_CURSOR
          The up arrow cursor type.
static int V_SPLIT_CURSOR
          The vertical split cursor type.
static int W_RESIZE_CURSOR
          The west-resize cursor type.
static int WAIT_CURSOR
          The wait cursor type.
static int WHATS_THIS_CURSOR
          The whats this cursor type.
 
Constructor Summary
Cursor(int type)
          Constructs new Cursor object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
static Cursor getDefaultCursor()
          Returns the system default cursor.
 java.lang.String getName()
          Returns cursor name.
static Cursor getPredefinedCursor(int type)
          Returns predefined cursor.
 int getType()
          Returns cursor type.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CURSOR

public static final int DEFAULT_CURSOR
The default cursor type.

See Also:
Constant Field Values

CROSSHAIR_CURSOR

public static final int CROSSHAIR_CURSOR
The crosshair cursor type.

See Also:
Constant Field Values

TEXT_CURSOR

public static final int TEXT_CURSOR
The text cursor type.

See Also:
Constant Field Values

WAIT_CURSOR

public static final int WAIT_CURSOR
The wait cursor type.

See Also:
Constant Field Values

SW_RESIZE_CURSOR

public static final int SW_RESIZE_CURSOR
The south-west-resize cursor type.

See Also:
Constant Field Values

SE_RESIZE_CURSOR

public static final int SE_RESIZE_CURSOR
The south-east-resize cursor type.

See Also:
Constant Field Values

NW_RESIZE_CURSOR

public static final int NW_RESIZE_CURSOR
The north-west-resize cursor type.

See Also:
Constant Field Values

NE_RESIZE_CURSOR

public static final int NE_RESIZE_CURSOR
The north-east-resize cursor type.

See Also:
Constant Field Values

N_RESIZE_CURSOR

public static final int N_RESIZE_CURSOR
The north-resize cursor type.

See Also:
Constant Field Values

S_RESIZE_CURSOR

public static final int S_RESIZE_CURSOR
The south-resize cursor type.

See Also:
Constant Field Values

W_RESIZE_CURSOR

public static final int W_RESIZE_CURSOR
The west-resize cursor type.

See Also:
Constant Field Values

E_RESIZE_CURSOR

public static final int E_RESIZE_CURSOR
The east-resize cursor type.

See Also:
Constant Field Values

HAND_CURSOR

public static final int HAND_CURSOR
The hand cursor type.

See Also:
Constant Field Values

MOVE_CURSOR

public static final int MOVE_CURSOR
The move cursor type.

See Also:
Constant Field Values

UP_ARROW_CURSOR

public static final int UP_ARROW_CURSOR
The up arrow cursor type.

See Also:
Constant Field Values

FORBIDDEN_CURSOR

public static final int FORBIDDEN_CURSOR
The forbidden cursor type.

See Also:
Constant Field Values

WHATS_THIS_CURSOR

public static final int WHATS_THIS_CURSOR
The whats this cursor type.

See Also:
Constant Field Values

V_SPLIT_CURSOR

public static final int V_SPLIT_CURSOR
The vertical split cursor type.

See Also:
Constant Field Values

H_SPLIT_CURSOR

public static final int H_SPLIT_CURSOR
The horizontal cursor type.

See Also:
Constant Field Values

BLANK_CURSOR

public static final int BLANK_CURSOR
The blank cursor type.

See Also:
Constant Field Values

CUSTOM_CURSOR

public static final int CUSTOM_CURSOR
The blank cursor type.

See Also:
Constant Field Values
Constructor Detail

Cursor

public Cursor(int type)
Constructs new Cursor object.

Parameters:
type - the cursor type
Throws:
java.lang.IllegalArgumentException - if the type is invalid
Method Detail

getType

public int getType()
Returns cursor type.

Returns:
cursor type

getName

public java.lang.String getName()
Returns cursor name.

Returns:
cursor name

getPredefinedCursor

public static Cursor getPredefinedCursor(int type)
Returns predefined cursor.

Parameters:
type - the cursor type
Returns:
predefined cursor
Throws:
java.lang.IllegalArgumentException - if the type is invalid

getDefaultCursor

public static Cursor getDefaultCursor()
Returns the system default cursor.

Returns:
the system default cursor.

hashCode

public int hashCode()


equals

public boolean equals(java.lang.Object obj)


toString

public java.lang.String toString()



Copyright © 2007 ETF and contributors. All Rights Reserved.