jgnash.ui.util
Class CursorUtils

java.lang.Object
  extended by jgnash.ui.util.CursorUtils

public class CursorUtils
extends java.lang.Object

Static cursor utilities

Version:
$Id$
Author:
Chad McHenry, Craig Cavanaugh

Field Summary
private static java.lang.Object[][] cursorProperties
          Cursor properties.
private static java.awt.Cursor[] predefined
           
static int ZOOM_IN
          Cursor type for a magnifying glass cursor with a '+' in the lens.
static int ZOOM_OUT
          Cursor type for a magnifying glass cursor with a '-' in the lens.
 
Constructor Summary
private CursorUtils()
           
 
Method Summary
static java.awt.Cursor getCursor(int type)
          Returns a custom cursor object of the type specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZOOM_IN

public static final int ZOOM_IN
Cursor type for a magnifying glass cursor with a '+' in the lens.

See Also:
Constant Field Values

ZOOM_OUT

public static final int ZOOM_OUT
Cursor type for a magnifying glass cursor with a '-' in the lens.

See Also:
Constant Field Values

predefined

private static final java.awt.Cursor[] predefined

cursorProperties

private static final java.lang.Object[][] cursorProperties
Cursor properties. Must be {{String, String, int[]}} indicating the name, resource name, and a 2 value int array for the 'hotspot' of the cursor. Yeah, horrible, but it's for internal initialization only.

Constructor Detail

CursorUtils

private CursorUtils()
Method Detail

getCursor

public static java.awt.Cursor getCursor(int type)
Returns a custom cursor object of the type specified.

Parameters:
type - the type of the custom cursor as defined in this class
Returns:
the specified custom cursor
Throws:
java.lang.IllegalArgumentException - if the specified cursor type is invalid