 |
Gridarta Editor
|
Go to the documentation of this file.
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;
68 if (mapCursor ==
null) {
Base package of all Gridarta classes.
final void deactivate()
Cursor gets deactivated.
An EditorAction that finishes a selection process when the mouse button is released.
Reflects a game object (object on a map).
boolean doReleaseDrag(final boolean performAction)
Executes the "release drag" action.
GameObjects are the objects based on Archetypes found on maps.
boolean isDragging()
Returns whether the cursor is currently being dragged.
Interface for MapArchObjects.
Point getLocation()
Get position of cursor.
MapCursor provides methods to move and drag on map.
Abstract base class for actions that have to track the current map cursor.
void setLocation(@NotNull final Point p)
Move cursor to a new location.
MapCursor< G, A, R > getActiveMapCursor()
Return the map cursor of the current map view if it is active.
Action action
The Action associated with this editor action.
void releaseDrag()
Action method for "release drag".
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.