public class GraphGeneral.GraphMouseListener extends Object implements MouseListener
Constructor and Description |
---|
GraphMouseListener() |
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(MouseEvent e)
Picks up a mouse-click.
|
void |
mouseEntered(MouseEvent e)
Picks up a mouse-Entered event.
|
void |
mouseExited(MouseEvent e)
Picks up a mouse-Exited event.
|
void |
mousePressed(MouseEvent e)
Picks up a mouse-pressed event.
|
void |
mouseReleased(MouseEvent e)
Stops dragging if we are actually dragging, does nothing otherwise.
|
boolean |
startDrag(boolean active,
int x,
int y,
int w,
int h)
Picks up a mouse-drag event.
|
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- mouse-click eventpublic void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
e
- mouse eventpublic void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
e
- mouse eventpublic boolean startDrag(boolean active, int x, int y, int w, int h)
active
- true if we activated an item, e.g. a label.x
- x-positiony
- y-positionw
- width of the object which will be draggedh
- height of the object which will be draggedpublic void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- mouse eventpublic void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- mouse eventJas4pp 1.5 © Java Analysis Studio for Particle Physics