Package net.sf.gridarta.gui.panel.tools
Class BasicAbstractTool<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.panel.tools.AbstractTool<G,A,R>
-
- net.sf.gridarta.gui.panel.tools.BasicAbstractTool<G,A,R>
-
- All Implemented Interfaces:
MouseOpListener<G,A,R>,Tool<G,A,R>
- Direct Known Subclasses:
DeletionTool,InsertionTool,SelectionTool,VoidTool
public abstract class BasicAbstractTool<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractTool<G,A,R>
Base class for the default provided tools.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicAbstractTool(@NotNull java.lang.String id)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringgetId()Returns the id of this tool.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.gridarta.gui.map.event.MouseOpListener
clicked, dragged, moved, pressed, released
-
Methods inherited from interface net.sf.gridarta.gui.panel.tools.Tool
createOptionsView
-
-
-
-
Constructor Detail
-
BasicAbstractTool
protected BasicAbstractTool(@NotNull @NotNull java.lang.String id)Creates a new instance.- Parameters:
id- the ID (used forgetId()as well as for the ActionBuilder)
-
-
Method Detail
-
getId
@NotNull public @NotNull java.lang.String getId()
Description copied from interface:ToolReturns the id of this tool. Each tool needs a unique id which distinguishes this tool from other tools.- Returns:
- id of this tool
-
-