Class UIEventHandler

java.lang.Object
heronarts.glx.ui.UIEventHandler
Direct Known Subclasses:
UIObject

public abstract class UIEventHandler extends Object
  • Constructor Details

    • UIEventHandler

      public UIEventHandler()
  • Method Details

    • onMousePressed

      protected void onMousePressed(MouseEvent mouseEvent, float mx, float my)
      Subclasses override to receive mouse events
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
    • onMouseReleased

      protected void onMouseReleased(MouseEvent mouseEvent, float mx, float my)
      Subclasses override to receive mouse events
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
    • onMouseDragged

      protected void onMouseDragged(MouseEvent mouseEvent, float mx, float my, float dx, float dy)
      Subclasses override to receive mouse events
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
      dx - movement in x
      dy - movement in y
    • onMouseMoved

      protected void onMouseMoved(MouseEvent mouseEvent, float mx, float my)
      Subclasses override to receive mouse events
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
    • onMouseOver

      protected void onMouseOver(MouseEvent mouseEvent)
      Subclasses override to receive events when mouse moves over this object
      Parameters:
      mouseEvent - Mouse Event
    • onMouseOut

      protected void onMouseOut(MouseEvent mouseEvent)
      Subclasses override to receive events when mouse moves out of this object
      Parameters:
      mouseEvent - Mouse Event
    • onMouseScroll

      protected void onMouseScroll(MouseEvent mouseEvent, float mx, float my, float dx, float dy)
      Subclasses override to receive mouse events
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
      dx - Amount of horizontal scroll
      dy - Amount of vertical scroll
    • onKeyPressed

      protected void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
      Subclasses override to receive key events
      Parameters:
      keyEvent - Key event
      keyChar - Key character
      keyCode - Key code value
    • onKeyReleased

      protected void onKeyReleased(KeyEvent keyEvent, char keyChar, int keyCode)
      Subclasses override to receive key events
      Parameters:
      keyEvent - Key event
      keyChar - Key character
      keyCode - Key code value