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, setResolutionScale
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
public void unlink() throws VisADException
VisADException
public void busyDisplay(LocalDisplay d)
busyDisplay
in interface ActivityHandler
d
- Busy Display.public void idleDisplay(LocalDisplay d)
idleDisplay
in interface ActivityHandler
d
- Idle Display.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.