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
EditorAction
that toggles the current pre-selection in the
selection.Constructor and Description |
---|
SelectSquareAction() |
Modifier and Type | Method and Description |
---|---|
void |
selectSquare()
Toggles the current pre-selection in the selection.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
protected void |
updateAction()
Called whenever the current map cursor has changed.
|
doSelection
activeMapViewChanged, getActiveMapCursor, getActiveMapView, mapCursorChangedGameObject, mapCursorChangedMode, mapCursorChangedPos, mapCursorChangedSize, mapViewClosing, mapViewCreated
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)
EditorAction
Action
instance for this editor action.setAction
in interface EditorAction
action
- the action instancename
- the name of the action@ActionMethod public void selectSquare()
protected void updateAction()
AbstractMapCursorAction
updateAction
in class AbstractMapCursorAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>