|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
net.sf.freecol.client.gui.CanvasMapEditorMouseListener.ScrollThread
private class CanvasMapEditorMouseListener.ScrollThread
Scrolls the view of the Map by moving its focus.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private boolean |
cont
|
private Map.Direction |
direction
|
private MapViewer |
mapViewer
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CanvasMapEditorMouseListener.ScrollThread(MapViewer mapViewer)
The constructor to use. |
|
| Method Summary | |
|---|---|
void |
run()
Performs the actual scrolling. |
void |
setDirection(Map.Direction d)
Sets the direction in which this ScrollThread will scroll. |
void |
stopScrolling()
Makes this ScrollThread stop doing what it is supposed to do. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final MapViewer mapViewer
private Map.Direction direction
private boolean cont
| Constructor Detail |
|---|
public CanvasMapEditorMouseListener.ScrollThread(MapViewer mapViewer)
mapViewer - The GUI that holds information such as screen resolution.| Method Detail |
|---|
public void setDirection(Map.Direction d)
d - The direction in which this ScrollThread will scroll.public void stopScrolling()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||