Package net.sf.gridarta.action
Class SubFromSelectionAction<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.SubFromSelectionAction<G,A,R>
-
- All Implemented Interfaces:
java.util.EventListener,MapViewManagerListener<G,A,R>,MapCursorListener<G,A,R>,EditorAction
public class SubFromSelectionAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractSelectionAction<G,A,R> implements EditorAction
AnEditorActionthat removes the current pre-selection from the selection.
-
-
Constructor Summary
Constructors Constructor Description SubFromSelectionAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.voidsubFromSelection()Removes the current pre-selection from the selection.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
-
subFromSelection
@ActionMethod public void subFromSelection()
Removes the current pre-selection from 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>>
-
-