Package net.sf.gridarta.action
Class StartStopDragAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.action.AbstractMapCursorAction<G,A,R>
-
- net.sf.gridarta.action.StartStopDragAction<G,A,R>
-
- All Implemented Interfaces:
java.util.EventListener,MapViewManagerListener<G,A,R>,MapCursorListener<G,A,R>,EditorAction
public class StartStopDragAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractMapCursorAction<G,A,R> implements EditorAction
AnEditorActionthat toggles a selection process.
-
-
Constructor Summary
Constructors Constructor Description StartStopDragAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.voidstartStopDrag()Action method for "start stop drag".protected voidupdateAction()Called whenever the current map cursor has changed.-
Methods inherited from class net.sf.gridarta.action.AbstractMapCursorAction
activeMapViewChanged, getActiveMapCursor, getActiveMapView, mapCursorChangedGameObject, mapCursorChangedMode, mapCursorChangedPos, mapCursorChangedSize, mapViewClosing, mapViewCreated
-
-
-
-
Method Detail
-
setAction
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)Description copied from interface:EditorActionSets theActioninstance for this editor action.- Specified by:
setActionin interfaceEditorAction- Parameters:
action- the action instancename- the name of the action
-
startStopDrag
@ActionMethod public void startStopDrag()
Action method for "start stop drag".
-
updateAction
protected void updateAction()
Description copied from class:AbstractMapCursorActionCalled whenever the current map cursor has changed.- Specified by:
updateActionin classAbstractMapCursorAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
-
-