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 Details

  • 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 class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object