20 package net.sf.gridarta.action;
22 import javax.swing.Action;
32 import net.
sf.japi.swing.action.ActionMethod;
33 import org.jetbrains.annotations.NotNull;
34 import org.jetbrains.annotations.Nullable;
65 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
92 if (mapView == null) {
Graphical User Interface of Gridarta.
boolean doGoLocation(final boolean performAction)
Executes the "go location" action.
GoLocationAction(@NotNull final MapViewManager< G, A, R > mapViewManager)
Creates a new instance.
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.
Maintains (dialog) instance associated to map view instances.
An EditorAction that openes the "go location" dialog.
final AbstractPerMapDialogManager< G, A, R, GoLocationDialog< G, A, R > > goLocationDialogManager
The AbstractPerMapDialogManager to track go location dialog instances.
Base classes for rendering maps.
void goLocation()
Opens the "go location" dialog.
A map view consists of a map grid and a map cursor, and is attached to a map control.
A dialog to ask the user for coordinates to move the cursor to.
Manager for GoLocationDialog instances.
Action action
The Action associated with this editor action.
Abstract base class for actions that have to track the current map cursor.
MapView< G, A, R > getActiveMapView()
Return the current map view.
Interface for MapArchObjects.
void showDialog(final MapView< G, A, R > mapView)
Show a dialog for positioning the cursor of a map.