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>
Constructor and Description |
---|
ExitConnectorController(ExitConnectorActions<G,A,R> exitConnectorActions,
ExitConnectorModel exitConnectorModel)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
activeMapViewChanged(MapView<G,A,R> mapView)
This event handler is called when the current map view has changed.
|
void |
exitConnect()
Action method for "connect exit".
|
void |
exitCopy()
Action method for "copy exit".
|
void |
exitPaste()
Action method for "paste exit".
|
void |
mapViewClosing(MapView<G,A,R> mapView)
This event handler is called when a map view is to be closed.
|
void |
mapViewCreated(MapView<G,A,R> mapView)
This event handler is called when a map view was created.
|
void |
setAction(javax.swing.Action action,
java.lang.String name)
Sets the
Action instance for this editor action. |
public ExitConnectorController(@NotNull ExitConnectorActions<G,A,R> exitConnectorActions, @NotNull ExitConnectorModel exitConnectorModel)
exitConnectorActions
- the exit connector actions to useexitConnectorModel
- the model for this controller@ActionMethod public void exitCopy()
@ActionMethod public void exitPaste()
@ActionMethod public void exitConnect()
public void setAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)
Action
instance for this editor action.setAction
in interface EditorAction
action
- the action instancename
- the name of the actionpublic void activeMapViewChanged(@Nullable MapView<G,A,R> mapView)
activeMapViewChanged
in interface MapViewManagerListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
mapView
- the new map view or null
if no opened map view
existspublic void mapViewCreated(@NotNull MapView<G,A,R> mapView)
mapViewCreated
in interface MapViewManagerListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
mapView
- the created map viewpublic void mapViewClosing(@NotNull MapView<G,A,R> mapView)
mapViewClosing
in interface MapViewManagerListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
mapView
- the map view that is to be closed