|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
y.view.Mouse2DEvent
public class Mouse2DEvent
Event object that closely resembles MouseEvent, but offers double precision
coordinates.
![]() |
![]() |
| Field Summary | |
|---|---|
static int |
MOUSE_CLICKED
|
static int |
MOUSE_DRAGGED
|
static int |
MOUSE_ENTERED
|
static int |
MOUSE_EXITED
|
static int |
MOUSE_MOVED
|
static int |
MOUSE_PRESSED
|
static int |
MOUSE_RELEASED
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
Mouse2DEvent(Object source,
double x,
double y,
MouseEvent me)
Constructs an event using the values obtained from the MouseEvent. |
|
Mouse2DEvent(Object source,
int id,
long when,
int modifiers,
double x,
double y,
int button,
int clickCount,
boolean isPopupTrigger)
Constructs a Mouse2DEvent. |
|
| Method Summary | |
|---|---|
int |
getButton()
The button constant as defined in MouseEvent.getButton(). |
int |
getClickCount()
The button constant as defined in MouseEvent.getClickCount(). |
int |
getId()
Returns the id constant for this event. |
int |
getModifiers()
The modifiers mask as defined in InputEvent.getModifiersEx() |
long |
getWhen()
Returns the time when this event happened. |
double |
getX()
Returns the x coordinates of the event. |
double |
getY()
Returns the y coordinates of the event. |
boolean |
isPopupTrigger()
Whether the event is considered a popup trigger. |
String |
toString()
|
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MOUSE_PRESSED
public static final int MOUSE_DRAGGED
public static final int MOUSE_RELEASED
public static final int MOUSE_CLICKED
public static final int MOUSE_ENTERED
public static final int MOUSE_EXITED
public static final int MOUSE_MOVED
| Constructor Detail |
|---|
public Mouse2DEvent(Object source,
int id,
long when,
int modifiers,
double x,
double y,
int button,
int clickCount,
boolean isPopupTrigger)
source - The object on which the Event initially occurred.id - the type of the eventwhen - the time when the event occuredmodifiers - the modifiers maskx - the x coordinate in world coordinatesy - the x coordinate in world coordinatesbutton - the button maskclickCount - the number of clicksisPopupTrigger - whether the event was a popup trigger
public Mouse2DEvent(Object source,
double x,
double y,
MouseEvent me)
source - the source to use for the eventx - the x coordinate in the world coordinate systemy - the y coordinate in the world coordinate systemme - the mouse event to get the other values from| Method Detail |
|---|
public double getX()
public double getY()
public int getId()
MOUSE_CLICKED, MOUSE_DRAGGED,
MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_ENTERED,
MOUSE_EXITED, or MOUSE_MOVED.public long getWhen()
System.currentTimeMillis()public int getModifiers()
InputEvent.getModifiersEx()
public int getButton()
MouseEvent.getButton().
public int getClickCount()
MouseEvent.getClickCount().
public boolean isPopupTrigger()
public String toString()
toString in class EventObject
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||