Gridarta Editor
net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

An EditorAction that removes the current pre-selection from the selection. More...

+ Inheritance diagram for net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void setAction (@NotNull final Action action, @NotNull final String name)
 Sets the Action instance for this editor action. More...
 
void subFromSelection ()
 Removes the current pre-selection from the selection. More...
 

Protected Member Functions

void updateAction ()
 
- Protected Member Functions inherited from net.sf.gridarta.action.AbstractSelectionAction< G, A, R >
boolean doSelection (final boolean performAction, @NotNull final SelectionMode mode)
 Executes an action for changing the selection. More...
 

Private Member Functions

boolean doSubFromSelection (final boolean performAction)
 Executes the action. More...
 

Private Attributes

Action action
 The Action associated with this editor action. More...
 

Detailed Description

An EditorAction that removes the current pre-selection from the selection.

Author
Andreas Kirschbaum

Definition at line 37 of file SubFromSelectionAction.java.

Member Function Documentation

◆ doSubFromSelection()

boolean net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSubFromSelection ( final boolean  performAction)
private

◆ setAction()

void net.sf.gridarta.action.SubFromSelectionAction< 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.

Parameters
actionthe action instance
namethe name of the action

Implements net.sf.gridarta.utils.EditorAction.

Definition at line 47 of file SubFromSelectionAction.java.

References net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action.

◆ subFromSelection()

void net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.subFromSelection ( )

Removes the current pre-selection from the selection.

Definition at line 55 of file SubFromSelectionAction.java.

References net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSubFromSelection().

+ Here is the call graph for this function:

◆ updateAction()

void net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction ( )
protected

Member Data Documentation

◆ action

Action net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action
private

The Action associated with this editor action.

Set to

null

if no action is associated.

Definition at line 44 of file SubFromSelectionAction.java.

Referenced by net.sf.gridarta.action.SubFromSelectionAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction().


The documentation for this class was generated from the following file: