![JAR search and dependency download from the Maven repository](/logo.png)
de.gurkenlabs.litiengine.gui.ComponentMouseEvent Maven / Gradle / Ivy
package de.gurkenlabs.litiengine.gui;
import java.awt.event.MouseEvent;
/**
* A ComponentMouseEvent contains the original MouseEvent and the GuiComponent that sent the event as sender.
*/
public class ComponentMouseEvent {
/** The event. */
private final MouseEvent event;
/** The sender. */
private final GuiComponent sender;
/**
* Instantiates a new component mouse event.
*
* @param event
* the event
* @param sender
* the sender
*/
public ComponentMouseEvent(final MouseEvent event, final GuiComponent sender) {
this.event = event;
this.sender = sender;
}
/**
* Gets the event.
*
* @return the event
*/
public MouseEvent getEvent() {
return this.event;
}
/**
* Gets the sender.
*
* @return the sender
*/
public GuiComponent getSender() {
return this.sender;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy