Gridarta Editor
|
Public Member Functions | |
void | activeMapViewChanged (@Nullable final MapView< G, A, R > mapView) |
void | mapCursorChangedGameObject (@Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject) |
void | mapCursorChangedMode () |
void | mapCursorChangedPos (@NotNull final Point location) |
void | mapCursorChangedSize () |
void | mapViewClosing (@NotNull final MapView< G, A, R > mapView) |
void | mapViewCreated (@NotNull final MapView< G, A, R > mapView) |
Protected Member Functions | |
MapCursor< G, A, R > | getActiveMapCursor () |
MapView< G, A, R > | getActiveMapView () |
abstract void | updateAction () |
Private Attributes | |
MapView< G, A, R > | currentMapView |
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 | ||
) |
@noinspection 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 | ( | ) |
@noinspection 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 | ) |
@noinspection 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 | ) |
@noinspection 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 >.mapCursorChangedMode(), and net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.mapCursorChangedPos().
|
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 >.activeMapViewChanged(), net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.getActiveMapCursor(), and net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.getActiveMapView().