Interface IDisplayLayer<T>

    • Method Detail

      • update

        void update​(LayoutUpdater updater)
        Updates the layout, styles etc. of the displayed objects.
        Parameters:
        updater - used to update the layout and position information
      • applyUpdates

        void applyUpdates()
        Applies the latest set of updates to the displayed objects. Depending on the semantics of the display, this may or may not be necessary.
      • addObject

        void addObject​(Object obj)
        Adds the specified object to the layer.
        Parameters:
        obj - the object to add
      • removeObject

        void removeObject​(Object obj)
        Removes the specified objecdt from the layer.
        Parameters:
        obj - the object to remove
      • getVisualItem

        T getVisualItem​(Object obj)
        Gets the visual representation of this object.
        Parameters:
        obj - the object whose visual representation we want to get
        Returns:
        the visual representation of this object.