Package net.sf.gridarta.action
Class DeleteArchAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.action.AbstractMapCursorAction<G,A,R>
-
- net.sf.gridarta.action.DeleteArchAction<G,A,R>
-
- All Implemented Interfaces:
java.util.EventListener,MapViewManagerListener<G,A,R>,MapCursorListener<G,A,R>,EditorAction
public class DeleteArchAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractMapCursorAction<G,A,R> implements EditorAction
AnEditorActionthat deletes the currently selected game object.
-
-
Constructor Summary
Constructors Constructor Description DeleteArchAction(@NotNull MapViewSettings mapViewSettings)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteArch()Action method for "delete arch".voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.protected voidupdateAction()Called whenever the current map cursor has changed.-
Methods inherited from class net.sf.gridarta.action.AbstractMapCursorAction
activeMapViewChanged, getActiveMapCursor, getActiveMapView, mapCursorChangedGameObject, mapCursorChangedMode, mapCursorChangedPos, mapCursorChangedSize, mapViewClosing, mapViewCreated
-
-
-
-
Constructor Detail
-
DeleteArchAction
public DeleteArchAction(@NotNull @NotNull MapViewSettings mapViewSettings)Creates a new instance.- Parameters:
mapViewSettings- the map view settings for querying options
-
-
Method Detail
-
setAction
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)Description copied from interface:EditorActionSets theActioninstance for this editor action.- Specified by:
setActionin interfaceEditorAction- Parameters:
action- the action instancename- the name of the action
-
deleteArch
@ActionMethod public void deleteArch()
Action method for "delete arch".
-
updateAction
protected void updateAction()
Description copied from class:AbstractMapCursorActionCalled whenever the current map cursor has changed.- Specified by:
updateActionin classAbstractMapCursorAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
-
-