jsky.app.jskycat
Class JSkyCatRemoteControl
java.lang.Object
java.lang.Thread
jsky.app.jskycat.JSkyCatRemoteControl
- All Implemented Interfaces:
- Runnable, EventListener, ChangeListener, ImageGraphicsHandler
public class JSkyCatRemoteControl
- extends Thread
- implements ImageGraphicsHandler, ChangeListener
Implements a remote control socket interface for JSkyCat.
- Version:
- $Revision: 1.4 $
- Author:
- Allan Brighton
Constructor Summary |
JSkyCatRemoteControl(int portNum,
JSkyCat jskycat)
Listen on the given port for remote commands to the given
JSkyCat instance. |
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 |
JSkyCatRemoteControl
public JSkyCatRemoteControl(int portNum,
JSkyCat jskycat)
throws IOException
- Listen on the given port for remote commands to the given
JSkyCat instance.
- Throws:
IOException
stateChanged
public void stateChanged(ChangeEvent e)
- Called when the image processor settings are changed.
Try to improve performance by not automatically scanning the image to find the
best cut levels (tell it that the user set the cut levels and they should
not be changed).
- Specified by:
stateChanged
in interface ChangeListener
drawImageGraphics
public void drawImageGraphics(BasicImageDisplay imageDisplay,
Graphics2D g)
- Called each time the image is repainted. This feature is
(mis)used to get notification when the image has been
displayed, since the graphics handlers are called after the
image is painted. This is used to delay the reply for image
display commands and avoid overwriting an image while the data
is being read. With tiling, this can still happen, but only if
the user is scrolling at the time.
- Specified by:
drawImageGraphics
in interface ImageGraphicsHandler
run
public void run()
- Start accepting client connections.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.