|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.Scroller
public class Scroller
This is a class which scrolls a view in direction with a certain speed. The speed can be changed via a synchronized method. This class is especially useful when run in a separate thread. A Vector is drawn in the direction of the scrolling.
| Constructor Summary | |
|---|---|
Scroller(Graph2DView view,
double xpress,
double ypress)
Constructs a new Scroller for a given view. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent actionEvent)
Loop, in which the scrolling performs |
void |
dispose()
|
void |
init()
|
void |
setDirection(double x,
double y)
Sets the direction of the scrolling by a direction vector (x,y). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scroller(Graph2DView view,
double xpress,
double ypress)
| Method Detail |
|---|
public void init()
public void dispose()
public void setDirection(double x,
double y)
public void actionPerformed(ActionEvent actionEvent)
actionPerformed in interface ActionListener
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||