ImageScience 3.0.0

imagescience.utility
Class MouseCursor

java.lang.Object
  extended by imagescience.utility.MouseCursor

public class MouseCursor
extends java.lang.Object

Provides custom-made mouse cursors.


Field Summary
static int ARROW
          The custom arrow cursor type.
static int CROSS
          The custom cross cursor type.
static int HAND
          The custom hand cursor type.
static int MAGNIFIER
          The custom magnifier cursor type.
 Messenger messenger
          The object used for message displaying.
static int PLUS
          The custom plus cursor type.
static int SIGHT
          The custom sight cursor type.
 
Constructor Summary
MouseCursor()
          Default constructor.
 
Method Summary
 java.awt.Cursor create(int type)
          Creates a new cursor of the requested custom type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARROW

public static final int ARROW
The custom arrow cursor type.

See Also:
Constant Field Values

PLUS

public static final int PLUS
The custom plus cursor type.

See Also:
Constant Field Values

MAGNIFIER

public static final int MAGNIFIER
The custom magnifier cursor type.

See Also:
Constant Field Values

HAND

public static final int HAND
The custom hand cursor type.

See Also:
Constant Field Values

CROSS

public static final int CROSS
The custom cross cursor type.

See Also:
Constant Field Values

SIGHT

public static final int SIGHT
The custom sight cursor type.

See Also:
Constant Field Values

messenger

public final Messenger messenger
The object used for message displaying.

Constructor Detail

MouseCursor

public MouseCursor()
Default constructor.

Method Detail

create

public java.awt.Cursor create(int type)
Creates a new cursor of the requested custom type.

Parameters:
type - The cursor type. Must be one of the static fields of this class.
Returns:
A new cursor of the requested custom type. If, for any reason, the requested custom cursor can not be created, this method returns a standard replacement cursor provided by the system.
Throws:
java.lang.IllegalArgumentException - If type is not one of the indicated values.

ImageScience 3.0.0

Copyright (C) Erik Meijering. Permission to use this software and corresponding documentation for educational, research, and not-for-profit purposes, without a fee and without a signed licensing agreement, is granted, subject to the following terms and conditions.

IT IS NOT ALLOWED TO REDISTRIBUTE, SELL, OR LEASE THIS SOFTWARE, OR DERIVATIVE WORKS THEREOF, WITHOUT PERMISSION IN WRITING FROM THE COPYRIGHT HOLDER. THE COPYRIGHT HOLDER IS FREE TO MAKE VERSIONS OF THE SOFTWARE AVAILABLE FOR A FEE OR COMMERCIALLY ONLY.

IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OF ANY KIND WHATSOEVER, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE EXPRESS OR IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND CORRESPONDING DOCUMENTATION IS PROVIDED "AS IS". THE COPYRIGHT HOLDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.