public class TICMouseAdapter extends Object implements TICMouseListener
Constructor and Description |
---|
TICMouseAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(TICMouseEvent event)
This method is called if the mouse is moved over the component while a mouse button is held down.
|
void |
mouseEntered(TICMouseEvent event)
This method is called when a mouse button is pressed down.
|
void |
mouseExited(TICMouseEvent event)
This method is called when a mouse button is pressed down.
|
void |
mouseMoved(TICMouseEvent event)
This method is called if the mouse is moved over the component while no mouse button is pressed.
|
void |
mousePressed(TICMouseEvent event)
This method is called when a mouse button is pressed down.
|
void |
mouseReleased(TICMouseEvent event)
This method is called when a mouse button is released.
|
public TICMouseAdapter()
public void mousePressed(TICMouseEvent event)
TICMouseListener
mousePressed
in interface TICMouseListener
event
- the object containing information about the eventpublic void mouseReleased(TICMouseEvent event)
TICMouseListener
mouseReleased
in interface TICMouseListener
event
- the object containing information about the eventpublic void mouseEntered(TICMouseEvent event)
TICMouseListener
mouseEntered
in interface TICMouseListener
event
- the object containing information about the eventpublic void mouseExited(TICMouseEvent event)
TICMouseListener
mouseExited
in interface TICMouseListener
event
- the object containing information about the eventpublic void 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 eventpublic void 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 event