|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.util.DualRes
visad.util.ResSwitcher
public class ResSwitcher
Handles automatic toggling between a high-resolution representation and a low-resolution one for a data object. When the display is busy, the low-resolution representation is used for faster response time. When the display is idle, the high-resolution representation is used for greater detail.
| Field Summary |
|---|
| Fields inherited from class visad.util.DualRes |
|---|
DEBUG, hi_ref, lo_ref |
| Constructor Summary | |
|---|---|
ResSwitcher(LocalDisplay d,
DataReferenceImpl ref)
Constructs a resolution switcher for swapping between high- and low- resolution representations for the referenced data on the given display. |
|
ResSwitcher(LocalDisplay d,
DataReferenceImpl ref,
DataRenderer renderer,
ConstantMap[] cmaps)
Constructs a resolution switcher for swapping between high- and low- resolution representations for the referenced data on the given display. |
|
| Method Summary | |
|---|---|
void |
busyDisplay(LocalDisplay d)
Swaps in the low-resolution data when the display is busy. |
void |
idleDisplay(LocalDisplay d)
Swaps in the high-resolution data when the display is idle. |
static void |
main(String[] args)
Run 'java visad.util.ResSwitcher data_file' to test ResSwitcher. |
void |
unlink()
Unlinks the resolution switcher from its display. |
| Methods inherited from class visad.util.DualRes |
|---|
getHighResReference, getLowResReference, getResolutionScale, rescale, rescale, setResolutionScale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResSwitcher(LocalDisplay d,
DataReferenceImpl ref)
throws VisADException,
RemoteException
VisADException
RemoteException
public ResSwitcher(LocalDisplay d,
DataReferenceImpl ref,
DataRenderer renderer,
ConstantMap[] cmaps)
throws VisADException,
RemoteException
renderer - The data renderer to be used for the low-res rendering.cmaps - The ConstantMaps to be used for the low-res rendering.
VisADException
RemoteException| Method Detail |
|---|
public void unlink()
throws VisADException
VisADExceptionpublic void busyDisplay(LocalDisplay d)
busyDisplay in interface ActivityHandlerd - Busy Display.public void idleDisplay(LocalDisplay d)
idleDisplay in interface ActivityHandlerd - Idle Display.
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||