Package net.sf.gridarta.gui.panel.tools
Interface Tool<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
-
- All Superinterfaces:
MouseOpListener<G,A,R>
- All Known Implementing Classes:
AbstractTool,BasicAbstractTool,DeletionTool,InsertionTool,SelectionTool,VoidTool
public interface Tool<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends MouseOpListener<G,A,R>
Interface for tools that are used to manipulate maps.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.awt.ComponentcreateOptionsView()Creates a view for changing the options of this tool.@NotNull java.lang.StringgetId()Returns the id of this tool.
-
-
-
Method Detail
-
createOptionsView
@Nullable @Nullable java.awt.Component createOptionsView()
Creates a view for changing the options of this tool.- Returns:
- view for changing the options of this tool or
nullif this tool hasn't any options
-
getId
@NotNull @NotNull java.lang.String getId()
Returns the id of this tool. Each tool needs a unique id which distinguishes this tool from other tools.- Returns:
- id of this tool
-
-