Package net.sf.gridarta.action
Class InsertArchAction<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.InsertArchAction<G,A,R>
-
- All Implemented Interfaces:
java.util.EventListener,MapViewManagerListener<G,A,R>,MapCursorListener<G,A,R>,EditorAction
public class InsertArchAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractMapCursorAction<G,A,R> implements EditorAction
AnEditorActionthat inserts a new game object into the current map.
-
-
Constructor Summary
Constructors Constructor Description InsertArchAction(@NotNull ObjectChooser<G,A,R> objectChooser, @NotNull MapViewSettings mapViewSettings)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinsertArch()Action method for "insert 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
-
InsertArchAction
public InsertArchAction(@NotNull @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull @NotNull MapViewSettings mapViewSettings)Creates a new instance.- Parameters:
objectChooser- the object choosermapViewSettings- the map view settings instance for looking up 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
-
insertArch
@ActionMethod public void insertArch()
Action method for "insert 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>>
-
-