Gridarta Editor
|
Public Member Functions | |
void | activeMapViewChanged (@Nullable final MapView< G, A, R > mapView) |
void | addBookmark () |
AddBookmarkAction (@NotNull final AbstractMapMenuPreferences bookmarksMapMenuPreferences) | |
void | mapViewClosing (@NotNull final MapView< G, A, R > mapView) |
void | mapViewCreated (@NotNull final MapView< G, A, R > mapView) |
void | setAction (@NotNull final Action action, @NotNull final String name) |
Private Member Functions | |
boolean | doAddBookmark (final boolean performAction) |
void | updateAction () |
Private Attributes | |
Action | action |
final AbstractMapMenuPreferences | bookmarksMapMenuPreferences |
MapView< G, A, R > | currentMapView |
An EditorAction that creates a new bookmark for the current map.
Definition at line 43 of file AddBookmarkAction.java.
net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.AddBookmarkAction | ( | @NotNull final AbstractMapMenuPreferences | bookmarksMapMenuPreferences | ) |
Creates a new instance.
bookmarksMapMenuPreferences | the map menu preferences defining the bookmarks menu entries |
Definition at line 69 of file AddBookmarkAction.java.
void net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged | ( | @Nullable final MapView< G, A, R > | mapView | ) |
This event handler is called when the current map view has changed.
mapView | the new map view or null
|
Definition at line 128 of file AddBookmarkAction.java.
References net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, and net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
void net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addBookmark | ( | ) |
Action method for "addBookmark". Creates a new bookmark for the currently opened map.
Definition at line 78 of file AddBookmarkAction.java.
|
private |
Preforms the action "add bookmark".
performAction | whether the action should be performed |
Definition at line 102 of file AddBookmarkAction.java.
References net.sf.gridarta.gui.mapmenu.MapMenuPreferences.addEntry(), net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.bookmarksMapMenuPreferences, net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, net.sf.gridarta.gui.dialog.bookmarks.EditBookmarkDialog.getDescription(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getInternalFrame(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapArchObject(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapControl(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapFile(), net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), and net.sf.gridarta.gui.dialog.bookmarks.EditBookmarkDialog.showDialog().
Referenced by net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addBookmark(), and net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
void net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewClosing | ( | @NotNull final MapView< G, A, R > | mapView | ) |
This event handler is called when a map view is to be closed.
mapView | the map view that is to be closed |
Definition at line 138 of file AddBookmarkAction.java.
void net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewCreated | ( | @NotNull final MapView< G, A, R > | mapView | ) |
This event handler is called when a map view was created.
mapView | the created map view |
Definition at line 134 of file AddBookmarkAction.java.
void net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction | ( | @NotNull final Action | action, |
@NotNull final String | name | ||
) |
Sets the Action instance for this editor action.
action | the action instance |
name | the name of the action |
Implements net.sf.gridarta.utils.EditorAction.
Definition at line 83 of file AddBookmarkAction.java.
References net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
|
private |
Updates the enabled state of all actions.
Definition at line 91 of file AddBookmarkAction.java.
References net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAddBookmark().
Referenced by net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged(), and net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction().
|
private |
The action associated with this editor action. Set to
if no action is associated.
Definition at line 62 of file AddBookmarkAction.java.
Referenced by net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction(), and net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
|
private |
The AbstractMapMenuPreferences for adding new bookmarks.
Definition at line 49 of file AddBookmarkAction.java.
Referenced by net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.AddBookmarkAction(), and net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAddBookmark().
|
private |
The currently active MapView or
if none is active.
Definition at line 55 of file AddBookmarkAction.java.
Referenced by net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged(), and net.sf.gridarta.action.AddBookmarkAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAddBookmark().