Gridarta Editor
|
Public Member Functions | |
void | setAction (@NotNull final Action action, @NotNull final String name) |
void | startStopDrag () |
![]() | |
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 | doStartStopDrag (final boolean performAction) |
Private Attributes | |
Action | action |
An EditorAction that toggles a selection process.
Definition at line 37 of file StartStopDragAction.java.
|
private |
Executes the "start stop drag" action.
performAction | whether the action should be performed |
Definition at line 65 of file StartStopDragAction.java.
References net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.dragSelect(), net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.dragStart, net.sf.gridarta.model.mapgrid.SelectionMode.FLIP, net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.getActiveMapCursor(), and net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.isDragging().
Referenced by net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.startStopDrag(), and net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
void net.sf.gridarta.action.StartStopDragAction< 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 StartStopDragAction.java.
References net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
void net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.startStopDrag | ( | ) |
Action method for "start stop drag".
Definition at line 56 of file StartStopDragAction.java.
|
protected |
Definition at line 83 of file StartStopDragAction.java.
References net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doStartStopDrag().
|
private |
The Action associated with this editor action. Set to
if no action is associated.
Definition at line 44 of file StartStopDragAction.java.
Referenced by net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction(), and net.sf.gridarta.action.StartStopDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().