|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
ch.unizh.ini.caviar.retina.CommThread
public class CommThread
receives AE from retina and paints the images
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
java.awt.Component |
display
|
java.awt.Graphics |
g
|
int[] |
histogram
|
java.awt.Image |
img
|
java.awt.image.MemoryImageSource |
imgsrc
|
int[] |
pixels
|
java.awt.Component |
topFrame
|
double |
zoomLevel
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
void |
clearImage()
|
int |
getScale()
|
boolean |
isAutoscaleEnabled()
|
boolean |
isColorEnabled()
|
void |
run()
run method. |
void |
setAutoscaleEnabled(boolean autoscaleEnabled)
|
void |
setColorEnabled(boolean colorEnabled)
|
void |
setScale(int scale)
|
void |
stopExecution()
|
void |
updateImage()
makes a new MemoryImageSource using the pixels, then creates an image with that imagesource. |
void |
zoom(double level)
zooms image |
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 |
---|
public java.awt.Image img
public java.awt.image.MemoryImageSource imgsrc
public java.awt.Component display
public java.awt.Component topFrame
public int[] pixels
public int[] histogram
public java.awt.Graphics g
public double zoomLevel
Method Detail |
---|
public void zoom(double level)
level
- zoom factorpublic void stopExecution()
public void clearImage()
public void updateImage()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public boolean isColorEnabled()
public void setColorEnabled(boolean colorEnabled)
public int getScale()
public void setScale(int scale)
public boolean isAutoscaleEnabled()
public void setAutoscaleEnabled(boolean autoscaleEnabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |