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 CursorStyleCROSS_HAIRstatic CursorStyleDEFAULTstatic CursorStyleEAST_RESIZEstatic CursorStyleHANDstatic CursorStyleMOVEstatic CursorStyleNORTH_EAST_RESIZEstatic CursorStyleNORTH_RESIZEstatic CursorStyleNORTH_WEST_RESIZEstatic CursorStyleSOUTH_EAST_RESIZEstatic CursorStyleSOUTH_RESIZEstatic CursorStyleSOUTH_WEST_RESIZEstatic CursorStyleTEXTstatic CursorStyleWAITstatic CursorStyleWEST_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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-