Gridarta Editor
|
Public Member Functions | |
void | addToSelection () |
void | setAction (@NotNull final Action action, @NotNull final String name) |
Protected Member Functions | |
void | updateAction () |
![]() | |
boolean | doSelection (final boolean performAction, @NotNull final SelectionMode mode) |
Private Member Functions | |
boolean | doAddToSelection (final boolean performAction) |
Private Attributes | |
Action | action |
An EditorAction that adds the current pre-selection to the selection.
Definition at line 37 of file AddToSelectionAction.java.
void net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addToSelection | ( | ) |
Adds the current pre-selection to the selection.
Definition at line 56 of file AddToSelectionAction.java.
|
private |
Executes the action.
performAction | whether the action should be performed |
Definition at line 65 of file AddToSelectionAction.java.
References net.sf.gridarta.model.mapgrid.SelectionMode.ADD, and net.sf.gridarta.action.AbstractSelectionAction< G, A, R >.doSelection().
Referenced by net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addToSelection(), and net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
void net.sf.gridarta.action.AddToSelectionAction< 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 47 of file AddToSelectionAction.java.
References net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
|
protected |
Definition at line 70 of file AddToSelectionAction.java.
References net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAddToSelection().
|
private |
The Action associated with this editor action. Set to
if no action is associated.
Definition at line 44 of file AddToSelectionAction.java.
Referenced by net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction(), and net.sf.gridarta.action.AddToSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().