public abstract class ShapeTool extends AbstractTool
editor| Constructor and Description |
|---|
ShapeTool(ScenarioEditor editor)
Construct a ShapeTool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activate this tool.
|
void |
deactivate()
Deactivate this tool.
|
protected abstract void |
processClick(GMLShape shape)
Handle a click on a shape.
|
protected abstract boolean |
shouldHighlight(GMLShape shape)
Find out if a shape should be highlighted or not.
|
public ShapeTool(ScenarioEditor editor)
editor - The editor instance.public void activate()
Toolpublic void deactivate()
Toolprotected abstract void processClick(GMLShape shape)
shape - The shape that was clicked.protected abstract boolean shouldHighlight(GMLShape shape)
shape - The shape to check.