20 package net.sf.gridarta.action;
22 import javax.swing.Action;
29 import net.
sf.japi.swing.action.ActionMethod;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
47 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
66 if (mapCursor == null) {
void dragSelect(@NotNull final SelectionMode selectionMode, final boolean forceSelect)
Leave drag mode and select pre-selection using selectionMode.
MapCursor< G, A, R > getActiveMapCursor()
Return the map cursor of the current map view if it is active.
An EditorAction that toggles a selection process.
MapCursor provides methods to move and drag on map.
boolean doStartStopDrag(final boolean performAction)
Executes the "start stop drag" action.
void startStopDrag()
Action method for "start stop drag".
Base package of all Gridarta classes.
Reflects a game object (object on a map).
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
GameObjects are the objects based on Archetypes found on maps.
FLIP
All squares that are preselected change state of selection.
final Point dragStart
Position where dragging has started.
Modes that describe how squares get selected.
Abstract base class for actions that have to track the current map cursor.
boolean isDragging()
Returns whether the cursor is currently being dragged.
Action action
The Action associated with this editor action.
Interface for MapArchObjects.