Package codedraw

Class CursorStyle

java.lang.Object
codedraw.CursorStyle

public class CursorStyle extends Object
CursorStyle is used to specify how the cursor looks like when hovering over the CodeDraw canvas.
  • Field Details

    • DEFAULT

      public static final CursorStyle DEFAULT
    • CROSS_HAIR

      public static final CursorStyle CROSS_HAIR
    • TEXT

      public static final CursorStyle TEXT
    • WAIT

      public static final CursorStyle WAIT
    • SOUTH_WEST_RESIZE

      public static final CursorStyle SOUTH_WEST_RESIZE
    • SOUTH_EAST_RESIZE

      public static final CursorStyle SOUTH_EAST_RESIZE
    • NORTH_WEST_RESIZE

      public static final CursorStyle NORTH_WEST_RESIZE
    • NORTH_EAST_RESIZE

      public static final CursorStyle NORTH_EAST_RESIZE
    • NORTH_RESIZE

      public static final CursorStyle NORTH_RESIZE
    • SOUTH_RESIZE

      public static final CursorStyle SOUTH_RESIZE
    • WEST_RESIZE

      public static final CursorStyle WEST_RESIZE
    • EAST_RESIZE

      public static final CursorStyle EAST_RESIZE
    • HAND

      public static final CursorStyle HAND
    • MOVE

      public static final CursorStyle MOVE
  • Constructor Details

    • CursorStyle

      public CursorStyle(Image image)
      Creates a new CursorStyle from an image. The top left corner of the image will be the click position.
      Parameters:
      image - any image
    • CursorStyle

      public CursorStyle(Image image, int x, int y)
      Creates a new CursorStyle from an image.
      Parameters:
      image - any image
      x - The click position relative to the top of the image.
      y - The click position relative to the left of the image.
  • Method Details