diva.canvas.interactor
Interface SelectionRenderer

All Known Implementing Classes:
AnimationRenderer, BasicSelectionRenderer

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,v 1.5 2004/04/13 06:25:27 cxh Exp $
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

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


renderDeselected

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


renderSelected

public 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.