|
Gridarta Editor
|
An EditorAction that opens the game object attributes dialog for the currently selected game object. More...
Inheritance diagram for net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.action.ArchAttributesAction< 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 | archAttributes () |
| Action method for "arch attributes". More... | |
| ArchAttributesAction (@NotNull final GameObjectAttributesDialogFactory< G, A, R > gameObjectAttributesDialogFactory) | |
| Creates a new instance. More... | |
| void | mapCursorChangedGameObject (@Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject) |
| Called whenever the selected game object has changed. 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 () |
| Called whenever the map cursor's map grid size has changed. More... | |
| void | mapViewClosing (@NotNull final MapView< G, A, R > mapView) |
| This event handler is called when a map view is to be closed. More... | |
| void | mapViewCreated (@NotNull final MapView< G, A, R > mapView) |
| This event handler is called when a map view was created. More... | |
| void | setAction (@NotNull final Action action, @NotNull final String name) |
| Sets the Action instance for this editor action. More... | |
Private Member Functions | |
| boolean | doArchAttributes (final boolean performAction) |
| Executes the "arch attributes" action. More... | |
| void | updateActions () |
| Updates the enabled state of action. More... | |
Private Attributes | |
| Action | action |
| The associated Action. More... | |
| MapView< G, A, R > | currentMapView |
| The active map view, or. More... | |
| final GameObjectAttributesDialogFactory< G, A, R > | gameObjectAttributesDialogFactory |
| The factory for creating game object attributes dialog instances. More... | |
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.
References net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObjectAttributesDialogFactory, and net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateActions().
Here is the call graph for this function:| 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 121 of file ArchAttributesAction.java.
Here is the call graph for this function:| 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 78 of file ArchAttributesAction.java.
Here is the call graph for this function:
|
private |
Executes the "arch attributes" action.
| performAction | whether the action should be performed |
Definition at line 102 of file ArchAttributesAction.java.
References 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 147 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 142 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 137 of file ArchAttributesAction.java.
Here is the call graph for this function:| 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 152 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 132 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 127 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 83 of file ArchAttributesAction.java.
|
private |
Updates the enabled state of action.
Definition at line 90 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(), 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 >.mapCursorChangedPos().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
The associated Action.
Set to
if none is associated.
Definition at line 62 of file ArchAttributesAction.java.
|
private |
The active map view, or.
if no map view exists.
Definition at line 55 of file ArchAttributesAction.java.
|
private |
The factory for creating game object attributes dialog instances.
Definition at line 49 of file ArchAttributesAction.java.