Gridarta Editor
|
Public Member Functions | |
void | insertArch () |
InsertArchAction (@NotNull final ObjectChooser< G, A, R > objectChooser, @NotNull final MapViewSettings mapViewSettings) | |
void | setAction (@NotNull final Action action, @NotNull final String name) |
![]() | |
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 | |
void | updateAction () |
![]() | |
MapCursor< G, A, R > | getActiveMapCursor () |
MapView< G, A, R > | getActiveMapView () |
abstract void | updateAction () |
Private Member Functions | |
boolean | doInsertArch (final boolean performAction) |
Private Attributes | |
Action | action |
final MapViewSettings | mapViewSettings |
final ObjectChooser< G, A, R > | objectChooser |
An EditorAction that inserts a new game object into the current map.
Definition at line 39 of file InsertArchAction.java.
net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.InsertArchAction | ( | @NotNull final ObjectChooser< G, A, R > | objectChooser, |
@NotNull final MapViewSettings | mapViewSettings | ||
) |
Creates a new instance.
objectChooser | the object chooser |
mapViewSettings | the map view settings instance for looking up options |
Definition at line 66 of file InsertArchAction.java.
References net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewSettings, and net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.objectChooser.
|
private |
Executes the "insert arch" action.
performAction | whether the action should be performed |
Definition at line 90 of file InsertArchAction.java.
References net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.getActiveMapCursor(), net.sf.gridarta.gui.panel.objectchooser.ObjectChooser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelection(), net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insertGameObject(), net.sf.gridarta.model.mapviewsettings.MapViewSettings.isAutojoin(), net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewSettings, and net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.objectChooser.
Referenced by net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insertArch(), and net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
void net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insertArch | ( | ) |
Action method for "insert arch".
Definition at line 81 of file InsertArchAction.java.
void net.sf.gridarta.action.InsertArchAction< 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 72 of file InsertArchAction.java.
References net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
|
protected |
Definition at line 97 of file InsertArchAction.java.
References net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doInsertArch().
|
private |
The Action associated with this editor action. Set to
if no action is associated.
Definition at line 58 of file InsertArchAction.java.
Referenced by net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction(), and net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
|
private |
The MapViewSettings instance for looking up options.
Definition at line 51 of file InsertArchAction.java.
Referenced by net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doInsertArch(), and net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.InsertArchAction().
|
private |
The object chooser.
Definition at line 45 of file InsertArchAction.java.
Referenced by net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doInsertArch(), and net.sf.gridarta.action.InsertArchAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.InsertArchAction().