|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.view.ViewMode | +--y.view.NavigationMode
A view mode that allows to navigate in a view
Field Summary |
Fields inherited from class y.view.ViewMode |
lastClickEvent, lastDragEvent, lastPressEvent, lastReleaseEvent, originalX, originalY, view |
Constructor Summary | |
NavigationMode()
Initializes a new NavigationMode. |
|
NavigationMode(ViewContainer vc)
Initializes a new NavigationMode for the given ViewContainer. |
Method Summary | |
void |
activate(boolean b)
When activated disables scrollbars in Graph2DView |
PopupMode |
getPopupMode()
Returns the popup mode associated with this mode. |
void |
mouseDraggedLeft(double x,
double y)
Moves the viewport of this view. |
void |
mouseDraggedRight(double x,
double y)
Moves the viewport of this view in an animated fashion. |
void |
mousePressedLeft(double x,
double y)
Initiates a navigation action. |
void |
mousePressedRight(double x,
double y)
Either activates a popup mode or an animated scroller for the view. |
void |
mouseReleasedLeft(double x,
double y)
Terminates a navigation action. |
void |
mouseReleasedRight(double x,
double y)
Terminates a navigation action. |
void |
setPopupMode(PopupMode pl)
Sets the popup mode for this mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NavigationMode(ViewContainer vc)
public NavigationMode()
Method Detail |
public void activate(boolean b)
activate
in class ViewMode
b
- set true
when mode should be activated
false
otherwisepublic PopupMode getPopupMode()
public void setPopupMode(PopupMode pl)
public void mousePressedLeft(double x, double y)
mousePressedLeft
in class ViewMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.public void mousePressedRight(double x, double y)
mousePressedRight
in class ViewMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.public void mouseReleasedRight(double x, double y)
mouseReleasedRight
in class ViewMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.public void mouseReleasedLeft(double x, double y)
mouseReleasedLeft
in class ViewMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.public void mouseDraggedLeft(double x, double y)
mouseDraggedLeft
in class ViewMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.public void mouseDraggedRight(double x, double y)
mouseDraggedRight
in class ViewMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |