public class ResSwitcher extends DualRes implements ActivityHandler
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getHighResReference, getLowResReference, getResolutionScale, rescale, rescale, setResolutionScalepublic ResSwitcher(LocalDisplay d, DataReferenceImpl ref) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic 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.VisADExceptionRemoteExceptionpublic 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.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.