|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.ViewMode
y.view.NavigationMode
public class NavigationMode
A view mode that allows to navigate in a view
![]() |
![]() |
| Field Summary |
|---|
| Fields inherited from class y.view.ViewMode |
|---|
ACTIVE_PROPERTY, ACTIVE_VIEW_PROPERTY, CHILD_MODE_PROPERTY, EDITING_PROPERTY, GRAB_FOCUS_ENABLED_PROPERTY, lastClickEvent, lastDragEvent, lastMoveEvent, lastPressEvent, lastReleaseEvent, MODIFIER_MASK_PROPERTY, NAME_PROPERTY, originalX, originalY, PARENT_MODE_PROPERTY, 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, when deactivated restores previous scroll bar state and cursor. |
PopupMode |
getPopupMode()
Returns the popup mode associated with this mode. |
boolean |
isAdjustScrollBarPolicy()
Returns true if the scroll bars in Graph2DView will be disabled when this mode is activated (default). |
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 |
setAdjustScrollBarPolicy(boolean adjustScrollBarPolicy)
Whether the scroll bars will be disabled when this mode is activated. |
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 ViewModeb - set true when mode was activated
false otherwisepublic boolean isAdjustScrollBarPolicy()
true if the scroll bars in Graph2DView will be disabled when this mode is activated (default).
true if the scroll bars in Graph2DView will be disabled when this mode is activated (default).public void setAdjustScrollBarPolicy(boolean adjustScrollBarPolicy)
adjustScrollBarPolicy - true if the scroll bars in Graph2DView should be disabled when this mode is activated (default).public PopupMode getPopupMode()
public void setPopupMode(PopupMode pl)
public void mousePressedLeft(double x,
double y)
mousePressedLeft in class ViewModex - 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 ViewModex - 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 ViewModex - 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 ViewModex - 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 ViewModex - 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 ViewModex - the x-coordinate of the mouse event in world coordinates.y - the y-coordinate of the mouse event in world coordinates.
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||