Documentation of 'visad.util.ResSwitcher' Java class
ResSwitcher
visad.util

Class ResSwitcher

  • All Implemented Interfaces:
    ActivityHandler


    public class ResSwitcher
    extends DualRes
    implements ActivityHandler
    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.
    • Constructor Detail

      • ResSwitcher

        public ResSwitcher(LocalDisplay d,
                           DataReferenceImpl ref)
                    throws VisADException,
                           java.rmi.RemoteException
        Constructs a resolution switcher for swapping between high- and low- resolution representations for the referenced data on the given display.
        Throws:
        VisADException
        java.rmi.RemoteException
      • ResSwitcher

        public ResSwitcher(LocalDisplay d,
                           DataReferenceImpl ref,
                           DataRenderer renderer,
                           ConstantMap[] cmaps)
                    throws VisADException,
                           java.rmi.RemoteException
        Constructs a resolution switcher for swapping between high- and low- resolution representations for the referenced data on the given display.
        Parameters:
        renderer - The data renderer to be used for the low-res rendering.
        cmaps - The ConstantMaps to be used for the low-res rendering.
        Throws:
        VisADException
        java.rmi.RemoteException
    • Method Detail

      • busyDisplay

        public void busyDisplay(LocalDisplay d)
        Swaps in the low-resolution data when the display is busy.
        Specified by:
        busyDisplay in interface ActivityHandler
        Parameters:
        d - Busy Display.
      • idleDisplay

        public void idleDisplay(LocalDisplay d)
        Swaps in the high-resolution data when the display is idle.
        Specified by:
        idleDisplay in interface ActivityHandler
        Parameters:
        d - Idle Display.
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Run 'java visad.util.ResSwitcher data_file' to test ResSwitcher.
        Throws:
        java.lang.Exception

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.