Package codedraw
Class CursorStyle
java.lang.Object
codedraw.CursorStyle
public class CursorStyle
extends java.lang.Object
CursorStyle is used to specify how the cursor looks when hovering over the CodeDraw canvas.
-
Field Summary
Fields Modifier and Type Field Description static CursorStyle
CROSS_HAIR
static CursorStyle
DEFAULT
static CursorStyle
EAST_RESIZE
static CursorStyle
HAND
static CursorStyle
MOVE
static CursorStyle
NORTH_EAST_RESIZE
static CursorStyle
NORTH_RESIZE
static CursorStyle
NORTH_WEST_RESIZE
static CursorStyle
SOUTH_EAST_RESIZE
static CursorStyle
SOUTH_RESIZE
static CursorStyle
SOUTH_WEST_RESIZE
static CursorStyle
TEXT
static CursorStyle
WAIT
static CursorStyle
WEST_RESIZE
-
Constructor Summary
Constructors Constructor Description CursorStyle(java.awt.Image image)
Creates a new CursorStyle from an image.CursorStyle(java.awt.Image image, int x, int y)
Creates a new CursorStyle from an image. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
DEFAULT
-
CROSS_HAIR
-
TEXT
-
WAIT
-
SOUTH_WEST_RESIZE
-
SOUTH_EAST_RESIZE
-
NORTH_WEST_RESIZE
-
NORTH_EAST_RESIZE
-
NORTH_RESIZE
-
SOUTH_RESIZE
-
WEST_RESIZE
-
EAST_RESIZE
-
HAND
-
MOVE
-
-
Constructor Details
-
CursorStyle
public CursorStyle(java.awt.Image image)Creates a new CursorStyle from an image.- Parameters:
image
- Appearance of the cursor when hovering over the canvas.
-
CursorStyle
public CursorStyle(java.awt.Image image, int x, int y)Creates a new CursorStyle from an image.- Parameters:
image
- Appearance of the cursor when hovering over the canvas.x
- The click position relative to the image.y
- The click position relative to the image.
-
-
Method Details
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-