|
Gridarta Editor
|
Abstract base class for actions that have to track the current map cursor. More...
Inheritance diagram for net.sf.gridarta.action.AbstractMapCursorAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.action.AbstractMapCursorAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | activeMapViewChanged (@Nullable final MapView< G, A, R > mapView) |
| This event handler is called when the current map view has changed. More... | |
| void | mapCursorChangedGameObject (@Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject) |
| NoopMethodInAbstractClass More... | |
| void | mapCursorChangedMode () |
| This event handler is called when MapCursor changes mode (drag, select). More... | |
| void | mapCursorChangedPos (@NotNull final Point location) |
| This event handler is called when MapCursor has moved. More... | |
| void | mapCursorChangedSize () |
| NoopMethodInAbstractClass More... | |
| void | mapViewClosing (@NotNull final MapView< G, A, R > mapView) |
| NoopMethodInAbstractClass More... | |
| void | mapViewCreated (@NotNull final MapView< G, A, R > mapView) |
| NoopMethodInAbstractClass More... | |
Protected Member Functions | |
| MapCursor< G, A, R > | getActiveMapCursor () |
| Return the map cursor of the current map view if it is active. More... | |
| MapView< G, A, R > | getActiveMapView () |
| Return the current map view. More... | |
| abstract void | updateAction () |
| Called whenever the current map cursor has changed. More... | |
Private Attributes | |
| MapView< G, A, R > | currentMapView |
| The active map view, or. More... | |
Abstract base class for actions that have to track the current map cursor.
Definition at line 38 of file AbstractMapCursorAction.java.
| void net.sf.gridarta.action.AbstractMapCursorAction< 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 72 of file AbstractMapCursorAction.java.
|
protected |
Return the map cursor of the current map view if it is active.
Definition at line 52 of file AbstractMapCursorAction.java.
|
protected |
Return the current map view.
Definition at line 62 of file AbstractMapCursorAction.java.
| void net.sf.gridarta.action.AbstractMapCursorAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedGameObject | ( | @Nullable final MapSquare< G, A, R > | mapSquare, |
| @Nullable final G | gameObject | ||
| ) |
NoopMethodInAbstractClass
Definition at line 107 of file AbstractMapCursorAction.java.
| void net.sf.gridarta.action.AbstractMapCursorAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedMode | ( | ) |
This event handler is called when MapCursor changes mode (drag, select).
Definition at line 99 of file AbstractMapCursorAction.java.
| void net.sf.gridarta.action.AbstractMapCursorAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedPos | ( | @NotNull final Point | location | ) |
This event handler is called when MapCursor has moved.
| location | the new location |
Definition at line 94 of file AbstractMapCursorAction.java.
| void net.sf.gridarta.action.AbstractMapCursorAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedSize | ( | ) |
NoopMethodInAbstractClass
Definition at line 115 of file AbstractMapCursorAction.java.
| void net.sf.gridarta.action.AbstractMapCursorAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewClosing | ( | @NotNull final MapView< G, A, R > | mapView | ) |
NoopMethodInAbstractClass
Definition at line 89 of file AbstractMapCursorAction.java.
| void net.sf.gridarta.action.AbstractMapCursorAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewCreated | ( | @NotNull final MapView< G, A, R > | mapView | ) |
NoopMethodInAbstractClass
Definition at line 81 of file AbstractMapCursorAction.java.
|
abstractprotected |
Called whenever the current map cursor has changed.
Referenced by net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.activeMapViewChanged(), net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.getActiveMapView(), net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.mapCursorChangedMode(), and net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.mapCursorChangedPos().
Here is the caller graph for this function:
|
private |
The active map view, or.
if no map view exists.
Definition at line 44 of file AbstractMapCursorAction.java.
Referenced by net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.getActiveMapCursor(), and net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.getActiveMapView().