Gridarta Editor
|
Public Member Functions | |
void | activeMapViewChanged (@Nullable final MapView< G, A, R > mapView) |
void | archAttributes () |
ArchAttributesAction (@NotNull final GameObjectAttributesDialogFactory< G, A, R > gameObjectAttributesDialogFactory) | |
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) |
void | setAction (@NotNull final Action action, @NotNull final String name) |
Private Member Functions | |
boolean | doArchAttributes (final boolean performAction) |
void | updateActions () |
Private Attributes | |
Action | action |
MapView< G, A, R > | currentMapView |
final GameObjectAttributesDialogFactory< G, A, R > | gameObjectAttributesDialogFactory |
An EditorAction that opens the game object attributes dialog for the currently selected game object.
Definition at line 43 of file ArchAttributesAction.java.
net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ArchAttributesAction | ( | @NotNull final GameObjectAttributesDialogFactory< G, A, R > | gameObjectAttributesDialogFactory | ) |
Creates a new instance.
gameObjectAttributesDialogFactory | the factory for creating game object attributes dialog instances |
Definition at line 69 of file ArchAttributesAction.java.
void net.sf.gridarta.action.ArchAttributesAction< 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 120 of file ArchAttributesAction.java.
References net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateActions().
void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archAttributes | ( | ) |
Action method for "arch attributes".
Definition at line 77 of file ArchAttributesAction.java.
|
private |
Executes the "arch attributes" action.
performAction | whether the action should be performed |
Definition at line 101 of file ArchAttributesAction.java.
References net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObjectAttributesDialogFactory, net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getGameObject(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapCursor(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialogFactory< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.showAttributeDialog().
Referenced by net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archAttributes(), and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateActions().
void net.sf.gridarta.action.ArchAttributesAction< 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 | ||
) |
Called whenever the selected game object has changed. This function is not called if mapCursorChangedPos(Point) occurs concurrently.
mapSquare | the newly selected map square or null
|
gameObject | the newly selected game object or null
|
Definition at line 146 of file ArchAttributesAction.java.
void net.sf.gridarta.action.ArchAttributesAction< 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 141 of file ArchAttributesAction.java.
void net.sf.gridarta.action.ArchAttributesAction< 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 136 of file ArchAttributesAction.java.
void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedSize | ( | ) |
Called whenever the map cursor's map grid size has changed.
Definition at line 151 of file ArchAttributesAction.java.
void net.sf.gridarta.action.ArchAttributesAction< 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 131 of file ArchAttributesAction.java.
void net.sf.gridarta.action.ArchAttributesAction< 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 126 of file ArchAttributesAction.java.
void net.sf.gridarta.action.ArchAttributesAction< 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 82 of file ArchAttributesAction.java.
References net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateActions().
|
private |
Updates the enabled state of action.
Definition at line 90 of file ArchAttributesAction.java.
References net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doArchAttributes().
Referenced by net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged(), net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedPos(), and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction().
|
private |
The associated Action. Set to
if none is associated.
Definition at line 62 of file ArchAttributesAction.java.
Referenced by net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction(), and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateActions().
|
private |
The active map view, or
if no map view exists.
Definition at line 55 of file ArchAttributesAction.java.
Referenced by net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged(), and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doArchAttributes().
|
private |
The factory for creating game object attributes dialog instances.
Definition at line 49 of file ArchAttributesAction.java.
Referenced by net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ArchAttributesAction(), and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doArchAttributes().