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()
Tool
public void deactivate()
Tool
protected abstract void processClick(GMLShape shape)
shape
- The shape that was clicked.protected abstract boolean shouldHighlight(GMLShape shape)
shape
- The shape to check.