Class ComponentMouseEvent

java.lang.Object
de.gurkenlabs.litiengine.gui.ComponentMouseEvent

public class ComponentMouseEvent
extends java.lang.Object
A ComponentMouseEvent contains the original MouseEvent and the GuiComponent that sent the event as sender.
  • Constructor Summary

    Constructors 
    ConstructorDescription
    ComponentMouseEvent​(java.awt.event.MouseEvent event, GuiComponent sender)
    Instantiates a new component mouse event.
  • Method Summary

    Modifier and TypeMethodDescription
    java.awt.event.MouseEventgetEvent()
    Gets the event.
    GuiComponentgetSender()
    Gets the sender.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ComponentMouseEvent

      public ComponentMouseEvent​(java.awt.event.MouseEvent event, GuiComponent sender)
      Instantiates a new component mouse event.
      Parameters:
      event - the event
      sender - the sender
  • Method Details

    • getEvent

      public java.awt.event.MouseEvent getEvent()
      Gets the event.
      Returns:
      the event
    • getSender

      public GuiComponent getSender()
      Gets the sender.
      Returns:
      the sender