diva.canvas.interactor
Interface SelectionRenderer

All Known Implementing Classes:
AnimationRenderer, BasicSelectionRenderer, DebugRenderer

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: SelectionRenderer.java 38798 2005-07-08 20:00:01Z cxh $
Author:
John Reekie

Method Summary
 boolean isRenderedSelected(Figure f)
          Test if the given figure is currently rendered selected.
 void renderDeselected(Figure f)
          Set the rendering of the figure as deselected.
 void renderSelected(Figure f)
          Set the rendering of the figure as selected.
 

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.