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