Interface SelectionRenderer

  • All Known Implementing Classes:
    AnimationRenderer, BasicSelectionRenderer, DebugRenderer, ShadowRenderer

    public interface SelectionRenderer
    An interface that defines rendering for selections. An implementation of this class modifies the representation of a figure, or adds additional graphics to the context in which the figure is drawn, to produce selected and deselected renderings of the figure.

    (Should this be made into a more general class?)

    Version:
    $Id$
    Author:
    John Reekie
    • Method Detail

      • isRenderedSelected

        boolean isRenderedSelected​(Figure f)
        Test if the given figure is currently rendered selected.
      • renderDeselected

        void renderDeselected​(Figure f)
        Set the rendering of the figure as deselected. If the figure is not rendered selected, do nothing.
      • renderSelected

        void renderSelected​(Figure f)
        Set the rendering of the figure as selected. If the figure is already rendered that way, update the rendering to reflect the figure's current position and state.