|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
y.view.MoveLabelMode.MoveLabelEvent
public static class MoveLabelMode.MoveLabelEvent
An event that indicates that a label has been moved to a new location.
| Constructor Summary | |
|---|---|
MoveLabelMode.MoveLabelEvent(MoveLabelMode source,
YLabel label,
int modifiers,
double x,
double y,
boolean snappingEnabled)
Initializes a new move event. |
|
| Method Summary | |
|---|---|
YLabel |
getLabel()
Returns the label that should be moved. |
int |
getModifiers()
Returns the extended modifier mask for this event. |
MoveLabelMode |
getMoveLabelMode()
Returns the event's source move label mode. |
double |
getX()
Returns the x-coordinate of the event in the world coordinates of the view that is associated to the event's source move label mode. |
double |
getY()
Returns the y-coordinate of the event in the world coordinates of the view that is associated to the event's source move label mode. |
boolean |
isSnappingEnabled()
Determines whether or not the label movement should allow for snapping. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MoveLabelMode.MoveLabelEvent(MoveLabelMode source,
YLabel label,
int modifiers,
double x,
double y,
boolean snappingEnabled)
source - the MoveLabelMode instance that emitted the
event.label - the label that is moved.modifiers - the extended modifier mask of the triggering mouse event.x - the x-coordinate of the event in the world coordinates of the
view that is associated to the event's source move label mode.y - the y-coordinate of the event in the world coordinates of the
view that is associated to the event's source move label mode.snappingEnabled - true if the triggering mouse event
allowed for snapping; false otherwise.getModifiers(),
getX(),
getY(),
MoveLabelMode.isDisableSnappingModifierPressed(java.awt.event.MouseEvent)| Method Detail |
|---|
public MoveLabelMode getMoveLabelMode()
public YLabel getLabel()
public int getModifiers()
InputEvent.getModifiersEx()public double getX()
public double getY()
public boolean isSnappingEnabled()
true if the event should allow for snapping;
false otherwise.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||