Interface IDisplay

    • Method Detail

      • update

        void update()
        Updates the state of the display to reflect whatever it is that it is displaying.
      • init

        void init()
        Initializes the display. Called once before the display is made visible.
      • setLayout

        void setLayout​(Layout<?,​?> layout)
        Sets the Layout for the display to use.
        Parameters:
        layout - the layout to use
      • addDisplayListener

        void addDisplayListener​(DisplayListener listener)
        Adds a display listener to this display.
        Parameters:
        listener - the listener to add
      • setLayoutFrequency

        void setLayoutFrequency​(IDisplay.LayoutFrequency frequency,
                                int interval)
        Sets the frequency of the layout.
        Parameters:
        frequency - the frequency of the layout
        interval - the interval if the frequency is AT_INTERVAL. The interval is in terms of number of calls to update()
      • getPanel

        JPanel getPanel()
        Gets a panel that contains the actual gui for visualization.
        Returns:
        a panel that contains the actual gui for visualization.
      • registerToolBar

        void registerToolBar​(JToolBar bar)
        Registers the specified toolbar with this IDisplay. This IDisplay can then put buttons etc. are on this toolbar.
        Parameters:
        bar - the bar to register
      • destroy

        void destroy()
        Destroys the display, allowing it to free any resources it may have acquired.
      • iconified

        void iconified()
        Notifies this IDisplay that its associated gui widget has been iconified.
      • deIconified

        void deIconified()
        Notifies this IDisplay that its associated gui widget has been deIconified.
      • closed

        void closed()
        Notifies this IDisplay that its associated gui widget has been closed.
      • addProbeListener

        void addProbeListener​(ProbeListener listener)
        Adds a probe listener to listen for probe events produced by this IDisplay.
        Parameters:
        listener - the listener to add
      • getLayout

        Layout<?,​?> getLayout()
        Gets the layout the display uses
        Returns:
        a layout object
      • createEditor

        DisplayEditorLifecycle createEditor​(JPanel panel)
        Deprecated.
        2D piccolo based code is being removed
        Creates an DisplayEditor appropriate for editing this display.
        Parameters:
        panel - a JPanel with a BorderLayout to which editor components can be added
        Returns:
        an DisplayEditor appropriate for editing this display or null if this display cannot be edited.
      • resetHomeView

        void resetHomeView()
        Resets the home (initial) view of the display