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

  • Constructor Details

    • CursorStyle

      public CursorStyle(Image image)
      Creates a new CursorStyle from an image.
      Parameters:
      image - Appearance of the cursor when hovering over the canvas.
    • CursorStyle

      public CursorStyle(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