public class TransformedMouseEvent extends EventObject
source
Constructor and Description |
---|
TransformedMouseEvent(Object source,
MouseEvent e,
int indexOfHitPart,
double x,
double y) |
Modifier and Type | Method and Description |
---|---|
int |
getButton()
This is not the same as mouseEvent.getButton() but a version that
works better on various platforms.
|
int |
getIndexOfHitPart()
Tells which part of the component is being dragged.
|
MouseEvent |
getMouseEvent()
A general modifier flag, could correspond to the shift key of a
keyboard being pressed during this drag operation.
|
double |
getX()
The x-coordinate (in user space) of this event's position.
|
double |
getY()
The y-coordinate (in user space) of this event's position.
|
getSource, toString
public TransformedMouseEvent(Object source, MouseEvent e, int indexOfHitPart, double x, double y)
public int getButton()
public int getIndexOfHitPart()
public MouseEvent getMouseEvent()
public double getX()
public double getY()