public class BasicSelectionRenderer extends Object implements SelectionRenderer
Constructor and Description |
---|
BasicSelectionRenderer()
Create a new selection renderer with the default prototype
decorator.
|
BasicSelectionRenderer(FigureDecorator d)
Create a new renderer with the given prototype decorator.
|
Modifier and Type | Method and Description |
---|---|
FigureDecorator |
getDecorator()
Get the prototype decorator.
|
boolean |
isRenderedSelected(Figure figure)
Test if the given figure is currently rendered selected.
|
void |
renderDeselected(Figure figure)
Set the rendering of the figure as deselected.
|
void |
renderSelected(Figure figure)
Set the rendering of the figure as selected.
|
void |
setDecorator(FigureDecorator d)
Set the prototype decorator.
|
public BasicSelectionRenderer()
public BasicSelectionRenderer(FigureDecorator d)
public FigureDecorator getDecorator()
public boolean isRenderedSelected(Figure figure)
isRenderedSelected
in interface SelectionRenderer
public void renderDeselected(Figure figure)
renderDeselected
in interface SelectionRenderer
public void renderSelected(Figure figure)
renderSelected
in interface SelectionRenderer
public void setDecorator(FigureDecorator d)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.