public class TICMouseEventComponentForwarder extends AbstractEventComponentForwarder implements TICMouseListener
TICMouseEvent
s to a set TICComponent
s.Constructor and Description |
---|
TICMouseEventComponentForwarder(java.util.Set<TICComponent> components) |
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.
|
dispatchEvent, getComponents
public TICMouseEventComponentForwarder(java.util.Set<TICComponent> components)
public boolean mousePressed(TICMouseEvent event)
TICMouseListener
mousePressed
in interface TICMouseListener
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.)public boolean mouseReleased(TICMouseEvent event)
TICMouseListener
mouseReleased
in interface TICMouseListener
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.)public boolean mouseEntered(TICMouseEvent event)
TICMouseListener
mouseEntered
in interface TICMouseListener
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.)public boolean mouseExited(TICMouseEvent event)
TICMouseListener
mouseExited
in interface TICMouseListener
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.)public boolean mouseMoved(TICMouseEvent event)
TICMouseListener
TICMouseListener.mouseDragged(TICMouseEvent)
is called instead.
In contrast to drag events this event is only fired, if the mouse is located over the component.
mouseMoved
in interface TICMouseListener
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.)public boolean mouseDragged(TICMouseEvent event)
TICMouseListener
TICMouseListener.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.
mouseDragged
in interface TICMouseListener
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.)