Package net.sf.gridarta.action
Class SelectSquareAction<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.AbstractSelectionAction<G,A,R>
-
- net.sf.gridarta.action.SelectSquareAction<G,A,R>
-
- All Implemented Interfaces:
java.util.EventListener,MapViewManagerListener<G,A,R>,MapCursorListener<G,A,R>,EditorAction
public class SelectSquareAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractSelectionAction<G,A,R> implements EditorAction
AnEditorActionthat toggles the current pre-selection in the selection.
-
-
Constructor Summary
Constructors Constructor Description SelectSquareAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidselectSquare()Toggles the current pre-selection in the selection.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.AbstractSelectionAction
doSelection
-
Methods inherited from class net.sf.gridarta.action.AbstractMapCursorAction
activeMapViewChanged, getActiveMapCursor, getActiveMapView, mapCursorChangedGameObject, mapCursorChangedMode, mapCursorChangedPos, mapCursorChangedSize, mapViewClosing, mapViewCreated
-
-
-
-
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
-
selectSquare
@ActionMethod public void selectSquare()
Toggles the current pre-selection in the selection.
-
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>>
-
-