|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.sun.j3d.exp.swing.JCanvas3D.ResizeThread
static class JCanvas3D.ResizeThread
This Thread handles the resizing changes and handles the timer up to the moment when the resizing has to really occur.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
(package private) JCanvas3D |
canvas
the canvas that has to be checked |
(package private) int |
delay
the delay that has to occur between last size change and real resize |
(package private) int |
height
latest height that was requested |
(package private) boolean |
sizeChanged
A flag indicating that since last check, size got changed again and the delay has to be reset |
(package private) int |
width
latest width that was requested |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
private |
JCanvas3D.ResizeThread()
Creates a new ResizeThread object. |
|
JCanvas3D.ResizeThread(int width,
int height,
int delay,
JCanvas3D canvas)
Creates a new ResizeThread object. |
| Method Summary | |
|---|---|
int |
getHeight()
returns the latest height that is being requested for change |
int |
getWidth()
returns the latest width that is being requested for change |
void |
run()
|
void |
setHeight(int height)
sets height. |
void |
setWidth(int width)
Sets width. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
JCanvas3D canvas
boolean sizeChanged
int delay
int height
int width
| Constructor Detail |
|---|
private JCanvas3D.ResizeThread()
public JCanvas3D.ResizeThread(int width,
int height,
int delay,
JCanvas3D canvas)
width - initial width changeheight - initial height changedelay - delay to be usedcanvas - the canvas that has to be checked| Method Detail |
|---|
public int getHeight()
public int getWidth()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setHeight(int height)
height - the new height.
java.lang.RuntimeException - DOCUMENT ME!public void setWidth(int width)
width - the new width.
java.lang.RuntimeException - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||