Gridarta Editor
|
Public Member Functions | |
void | releaseDrag () |
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 | doReleaseDrag (final boolean performAction) |
Private Attributes | |
Action | action |
An EditorAction that finishes a selection process when the mouse button is released.
Definition at line 38 of file ReleaseDragAction.java.
|
private |
Executes the "release drag" action.
performAction | whether the action should be performed |
Definition at line 66 of file ReleaseDragAction.java.
References net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.deactivate(), net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.dragRelease(), net.sf.gridarta.action.AbstractMapCursorAction< G, A, R >.getActiveMapCursor(), net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getLocation(), net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.isDragging(), and net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setLocation().
Referenced by net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.releaseDrag(), and net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
void net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.releaseDrag | ( | ) |
Action method for "release drag".
Definition at line 57 of file ReleaseDragAction.java.
void net.sf.gridarta.action.ReleaseDragAction< 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 48 of file ReleaseDragAction.java.
References net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
|
protected |
Definition at line 86 of file ReleaseDragAction.java.
References net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doReleaseDrag().
|
private |
The Action associated with this editor action. Set to
if no action is associated.
Definition at line 45 of file ReleaseDragAction.java.
Referenced by net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction(), and net.sf.gridarta.action.ReleaseDragAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().