 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.action;
22 import javax.swing.Action;
31 import net.
sf.japi.swing.action.ActionMethod;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Base package of all Gridarta classes.
boolean isAutojoin()
Returns whether "autojoin" is enabled.
Reflects a game object (object on a map).
Container for settings that affect the rendering of maps.
Graphical User Interface of Gridarta.
GameObjects are the objects based on Archetypes found on maps.
An EditorAction that inserts a new game object into the current map.
Interface for MapArchObjects.
boolean insertGameObject(final boolean performAction, @NotNull final BaseObject< G, A, R, ?> gameObject, final boolean insertAtEnd, final boolean join)
Inserts a GameObject before the selected game object.
InsertArchAction(@NotNull final ObjectChooser< G, A, R > objectChooser, @NotNull final MapViewSettings mapViewSettings)
Creates a new instance.
BaseObject< G, A, R, ?> getSelection()
Returns the active arch in the left-side panel.
MapCursor provides methods to move and drag on map.
Abstract base class for actions that have to track the current map cursor.
MapCursor< G, A, R > getActiveMapCursor()
Return the map cursor of the current map view if it is active.
Common base interface for ObjectChoosers.
final ObjectChooser< G, A, R > objectChooser
The object chooser.
void insertArch()
Action method for "insert arch".
final MapViewSettings mapViewSettings
The MapViewSettings instance for looking up options.
Action action
The Action associated with this editor action.
boolean doInsertArch(final boolean performAction)
Executes the "insert arch" action.