Class ExitConnectorController<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.exitconnector.ExitConnectorController<G,A,R>
-
- All Implemented Interfaces:
MapViewManagerListener<G,A,R>,EditorAction
public class ExitConnectorController<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction, MapViewManagerListener<G,A,R>
The controller of the exit connector.
-
-
Constructor Summary
Constructors Constructor Description ExitConnectorController(@NotNull ExitConnectorActions<G,A,R> exitConnectorActions, @NotNull ExitConnectorModel exitConnectorModel)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactiveMapViewChanged(@Nullable MapView<G,A,R> mapView)This event handler is called when the current map view has changed.voidexitConnect()Action method for "connect exit".voidexitCopy()Action method for "copy exit".voidexitPaste()Action method for "paste exit".voidmapViewClosing(@NotNull MapView<G,A,R> mapView)This event handler is called when a map view is to be closed.voidmapViewCreated(@NotNull MapView<G,A,R> mapView)This event handler is called when a map view was created.voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.
-
-
-
Constructor Detail
-
ExitConnectorController
public ExitConnectorController(@NotNull @NotNull ExitConnectorActions<G,A,R> exitConnectorActions, @NotNull @NotNull ExitConnectorModel exitConnectorModel)Creates a new instance.- Parameters:
exitConnectorActions- the exit connector actions to useexitConnectorModel- the model for this controller
-
-
Method Detail
-
exitCopy
@ActionMethod public void exitCopy()
Action method for "copy exit".
-
exitPaste
@ActionMethod public void exitPaste()
Action method for "paste exit".
-
exitConnect
@ActionMethod public void exitConnect()
Action method for "connect exit".
-
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
-
activeMapViewChanged
public void activeMapViewChanged(@Nullable @Nullable MapView<G,A,R> mapView)Description copied from interface:MapViewManagerListenerThis event handler is called when the current map view has changed.- Specified by:
activeMapViewChangedin interfaceMapViewManagerListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
mapView- the new map view ornullif no opened map view exists
-
mapViewCreated
public void mapViewCreated(@NotNull @NotNull MapView<G,A,R> mapView)Description copied from interface:MapViewManagerListenerThis event handler is called when a map view was created.- Specified by:
mapViewCreatedin interfaceMapViewManagerListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
mapView- the created map view
-
mapViewClosing
public void mapViewClosing(@NotNull @NotNull MapView<G,A,R> mapView)Description copied from interface:MapViewManagerListenerThis event handler is called when a map view is to be closed.- Specified by:
mapViewClosingin interfaceMapViewManagerListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
mapView- the map view that is to be closed
-
-