20 package net.sf.gridarta.action;
22 import javax.swing.Action;
35 import net.
sf.japi.swing.action.ActionMethod;
36 import org.jetbrains.annotations.NotNull;
37 import org.jetbrains.annotations.Nullable;
83 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
105 if (mapView == null) {
112 if (mapFile == null) {
121 bookmarksMapMenuPreferences.
addEntry(mapMenuEntry);
130 currentMapView = mapView;
Action action
The action associated with this editor action.
void addBookmark()
Action method for "addBookmark".
String getDescription()
Returns the description.
MapView< G, A, R > currentMapView
The currently active MapView or.
A MapModel reflects the data of a map.
Graphical User Interface of Gridarta.
final AbstractMapMenuPreferences bookmarksMapMenuPreferences
The AbstractMapMenuPreferences for adding new bookmarks.
AddBookmarkAction(@NotNull final AbstractMapMenuPreferences bookmarksMapMenuPreferences)
Creates a new instance.
MapControl< G, A, R > getMapControl()
Return the controller of this view.
void updateAction()
Updates the enabled state of all actions.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
MapModel< G, A, R > getMapModel()
Returns the map model.
Base package of all Gridarta classes.
An EditorAction that creates a new bookmark for the current map.
Reflects a game object (object on a map).
void mapViewClosing(@NotNull final MapView< G, A, R > mapView)
This event handler is called when a map view is to be closed.
A dialog that displays one bookmark and allows to edit the values.
GameObjects are the objects based on Archetypes found on maps.
Interface for listeners interested in events related to MapViewManager instances. ...
boolean doAddBookmark(final boolean performAction)
Preforms the action "add bookmark".
Base classes for rendering maps.
void activeMapViewChanged(@Nullable final MapView< G, A, R > mapView)
This event handler is called when the current map view has changed.
boolean showDialog()
Opens the dialog.
A getMapArchObject()
Returns the Map Arch Object with the meta information about the map.
Currently nothing more than a marker interface for unification.
A map view consists of a map grid and a map cursor, and is attached to a map control.
MapFile getMapFile()
Returns the map file.
void mapViewCreated(@NotNull final MapView< G, A, R > mapView)
This event handler is called when a map view was created.
The location of a map file with a map directory.
Interface for MapArchObjects.
JInternalFrame getInternalFrame()
Returns the JInternalFrame instance for this map view.