public interface TICMouseListener extends java.util.EventListener
TICComponent
s.Modifier and Type | Method and Description |
---|---|
boolean |
mouseDragged(TICMouseEvent event)
This method is called if the mouse is moved over the component while a mouse button is held down.
|
boolean |
mouseEntered(TICMouseEvent event)
This method is called when a mouse button is pressed down.
|
boolean |
mouseExited(TICMouseEvent event)
This method is called when a mouse button is pressed down.
|
boolean |
mouseMoved(TICMouseEvent event)
This method is called if the mouse is moved over the component while no mouse button is pressed.
|
boolean |
mousePressed(TICMouseEvent event)
This method is called when a mouse button is pressed down.
|
boolean |
mouseReleased(TICMouseEvent event)
This method is called when a mouse button is released.
|
boolean mousePressed(TICMouseEvent event)
event
- the object containing information about the eventtrue
if the event was consumed by this listener, false otherwise
(See
TICComponent
for information on how the return value is used.)boolean mouseReleased(TICMouseEvent event)
event
- the object containing information about the eventtrue
if the event was consumed by this listener, false otherwise
(See
TICComponent
for information on how the return value is used.)boolean mouseEntered(TICMouseEvent event)
event
- the object containing information about the eventtrue
if the event was consumed by this listener, false otherwise
(See
TICComponent
for information on how the return value is used.)boolean mouseExited(TICMouseEvent event)
event
- the object containing information about the eventtrue
if the event was consumed by this listener, false otherwise
(See
TICComponent
for information on how the return value is used.)boolean mouseMoved(TICMouseEvent event)
mouseDragged(TICMouseEvent)
is called instead.
In contrast to drag events this event is only fired, if the mouse is located over the component.
event
- the object containing information about the eventtrue
if the event was consumed by this listener, false otherwise
(See
TICComponent
for information on how the return value is used.)boolean mouseDragged(TICMouseEvent event)
mouseMoved(TICMouseEvent)
is called instead.
Note that drag events are still fired if the mouse has already left the component until the according mouse button is released.
event
- the object containing information about the eventtrue
if the event was consumed by this listener, false otherwise
(See
TICComponent
for information on how the return value is used.)