20 package net.sf.gridarta.action;
22 import java.awt.Point;
23 import javax.swing.Action;
29 import net.
sf.japi.swing.action.ActionMethod;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
48 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
67 if (mapCursor == null) {
MapCursor< G, A, R > getActiveMapCursor()
Return the map cursor of the current map view if it is active.
void releaseDrag()
Action method for "release drag".
Action action
The Action associated with this editor action.
An EditorAction that finishes a selection process when the mouse button is released.
MapCursor provides methods to move and drag on map.
Point getLocation()
Get position of cursor.
void setLocation(@NotNull final Point p)
Move cursor to a new location.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
void dragRelease()
Leave drag mode and undo pre-selection.
Abstract base class for actions that have to track the current map cursor.
boolean doReleaseDrag(final boolean performAction)
Executes the "release drag" action.
boolean isDragging()
Returns whether the cursor is currently being dragged.
final void deactivate()
Cursor gets deactivated.
Interface for MapArchObjects.