public class GraphGeneral.GraphMouseListener
extends java.lang.Object
implements java.awt.event.MouseListener
Constructor and Description |
---|
GraphMouseListener() |
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(java.awt.event.MouseEvent e)
Picks up a mouse-click.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Picks up a mouse-Entered event.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Picks up a mouse-Exited event.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Picks up a mouse-pressed event.
|
void |
mouseReleased(java.awt.event.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(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- mouse-click eventpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- mouse eventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.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(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- mouse eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- mouse eventJHepSim. A part of HSTOOLS. version-1.2