Interface Display<T>

    • Method Detail

      • canDisplay

        boolean canDisplay​(Class<?> c)
        Tests whether the display is capable of visualizing objects of the given class.
        Parameters:
        c - The class to check for visualization capabilities.
        Returns:
        True if the display can handle certain objects of the given class; false if it cannot visualize any objects of that class.
      • canDisplay

        default boolean canDisplay​(Object o)
        Tests whether the display is capable of visualizing the given object.
      • isDisplaying

        default boolean isDisplaying​(Object o)
        Tests whether the display is currently visualizing the given object.

        Note that this method may behave differently than List.contains(java.lang.Object); in general, any time List.contains(java.lang.Object) returns true, this method will also return true, but not vice versa. For example, in ImageJ, an ImageDisplay is a Display<DataView> but calling isDisplaying on a Dataset (which is not a DataView) will return true if the ImageDisplay currently contains a DatasetView that wraps that Dataset.

      • update

        void update()
        Updates and redraws the display onscreen.
      • close

        void close()
        Closes the display and disposes its resources.