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
EditorAction
that inserts a new game object into the current map.Constructor and Description |
---|
InsertArchAction(@NotNull ObjectChooser<G,A,R> objectChooser,
@NotNull MapViewSettings mapViewSettings)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
insertArch()
Action method for "insert arch".
|
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.
|
activeMapViewChanged, getActiveMapCursor, getActiveMapView, mapCursorChangedGameObject, mapCursorChangedMode, mapCursorChangedPos, mapCursorChangedSize, mapViewClosing, mapViewCreated
public InsertArchAction(@NotNull @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull @NotNull MapViewSettings mapViewSettings)
objectChooser
- the object choosermapViewSettings
- the map view settings instance for looking up
optionspublic 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 insertArch()
protected void updateAction()
AbstractMapCursorAction
updateAction
in class AbstractMapCursorAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>