static class JCanvas3D.ResizeThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
(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
|
| Modifier | Constructor and Description |
|---|---|
private |
JCanvas3D.ResizeThread()
Creates a new ResizeThread object.
|
|
JCanvas3D.ResizeThread(int width,
int height,
int delay,
JCanvas3D canvas)
Creates a new ResizeThread object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, yieldJCanvas3D canvas
boolean sizeChanged
int delay
int height
int width
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 checkedpublic 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!Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.