Documentation of 'visad.collab.DisplayMonitor' Java class
DisplayMonitor
visad.collab

Interface DisplayMonitor

    • Field Detail

      • UNKNOWN_LISTENER_ID

        static final int UNKNOWN_LISTENER_ID
        Connection ID used to indicate errors
        See Also:
        Constant Field Values
    • Method Detail

      • addListener

        void addListener(MonitorCallback callback,
                         int id)
                  throws java.rmi.RemoteException,
                         VisADException
        Adds the specified listener to receive MonitorEvents when the monitored Display's state changes.
        Parameters:
        callback - The object to which events are delivered.
        id - The unique identifier.
        Throws:
        java.rmi.RemoteException - If there was an RMI-related problem.
        VisADException - If the listener Vector is uninitialized.
      • addListener

        void addListener(RemoteDisplay rd,
                         int id)
                  throws java.rmi.RemoteException,
                         VisADException
        Adds the specified remote display to receive MonitorEvents when the monitored Display's state changes.
        Parameters:
        rd - The remote display to add.
        id - The unique listener identifier.
        Throws:
        java.rmi.RemoteException - If there was an RMI-related problem.
        VisADException - If the listener Vector is uninitialized.
      • addRemoteListener

        void addRemoteListener(RemoteDisplay rd)
                        throws java.rmi.RemoteException,
                               RemoteVisADException
        Initializes links so that MonitorEvents will be exchanged with the specified remote Display.
        Parameters:
        rd - The remote Display to synchronize.
        Throws:
        java.rmi.RemoteException - If there was an RMI-related problem.
        RemoteVisADException - If the inter-Display links could not be made.
      • checkID

        int checkID(int id)
             throws java.rmi.RemoteException
        Returns a suggestion for a unique listener identifier which is equal to or greater than the supplied ID.
        Parameters:
        id - The identifier to check.
        Throws:
        java.rmi.RemoteException - If there was an RMI-related problem.
      • getConnectionID

        int getConnectionID(RemoteDisplay rmtDpy)
                     throws java.rmi.RemoteException
        Return the ID associated with the specified RemoteDisplay.
        Returns:
        UNKNOWN_LISTENER_ID if not found; otherwise, returns the ID.
        Throws:
        java.rmi.RemoteException
      • hasEventQueued

        boolean hasEventQueued(Control ctl)
                        throws java.rmi.RemoteException
        Returns true if there is a MonitorEvent for the specified Control waiting to be delivered to any listener.
        Parameters:
        ctl - The Control being found.
        Throws:
        java.rmi.RemoteException - If there was an RMI-related problem.
      • hasEventQueued

        boolean hasEventQueued(int listenerID,
                               Control ctl)
                        throws java.rmi.RemoteException
        Returns true if there is a MonitorEvent for the specified Control waiting to be delivered to the listener with the specified id.
        Parameters:
        listenerID - The identifier for the listener.
        ctl - The Control being found.
        Throws:
        java.rmi.RemoteException - If there was an RMI-related problem.
      • isEmpty

        boolean isEmpty()
                 throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • notifyListeners

        void notifyListeners(MonitorEvent evt)
                      throws java.rmi.RemoteException,
                             RemoteVisADException
        Forwards the MonitorEvent to all the listeners associated with this DisplayMonitor.
        Parameters:
        evt - The event to forward.
        Throws:
        java.rmi.RemoteException - If there was an RMI-related problem.
        RemoteVisADException - If there is an internal error.
      • setDisplaySync

        void setDisplaySync(DisplaySync sync)
                     throws java.rmi.RemoteException
        Set the display synchronization object for this display
        Throws:
        java.rmi.RemoteException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.