 |
Gridarta Editor
|
Go to the documentation of this file.
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;
67 if (mapCursor ==
null) {
Action action
The Action associated with this editor action.
Base package of all Gridarta classes.
void dragSelect(@NotNull final SelectionMode selectionMode, final boolean forceSelect)
Leave drag mode and select pre-selection using selectionMode.
final Point dragStart
Position where dragging has started.
FLIP
All squares that are preselected change state of selection.
Reflects a game object (object on a map).
boolean doStartStopDrag(final boolean performAction)
Executes the "start stop drag" action.
GameObjects are the objects based on Archetypes found on maps.
void startStopDrag()
Action method for "start stop drag".
boolean isDragging()
Returns whether the cursor is currently being dragged.
Interface for MapArchObjects.
Modes that describe how squares get selected.
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.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
An EditorAction that toggles a selection process.