Class MouseButtonEvent

java.lang.Object
edu.macalester.graphics.events.AbstractEvent
edu.macalester.graphics.events.MouseButtonEvent

public final class MouseButtonEvent extends AbstractEvent
Carries information about the mouse button being pressed or released.
See Also:
  • Constructor Details

    • MouseButtonEvent

      public MouseButtonEvent(MouseEvent sourceEvent)
      For internal use. Translates an underlying AWT event to a kilt-graphics event.
  • Method Details

    • getPosition

      public Point getPosition()
      Returns the location of the mouse pointer when the button event occurred, in CanvasWindow coordinates.
    • toString

      public String toString()
      Overrides:
      toString in class Object