diva.canvas.interactor
Interface SelectionRenderer

All Known Implementing Classes:
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:
$Revision: 1.8 $
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.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.