 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.exitconnector;
22 import java.awt.Point;
23 import javax.swing.Action;
34 import net.
sf.japi.swing.action.ActionMethod;
35 import org.jetbrains.annotations.NotNull;
36 import org.jetbrains.annotations.Nullable;
81 public void exitLocationChanged(@Nullable
final ExitLocation exitLocation) {
86 public void pasteExitNameChanged(
final boolean pasteExitName) {
91 public void autoCreateExitChanged(
final boolean pasteExitName) {
96 public void exitArchetypeNameChanged(@NotNull
final String exitArchetypeName) {
158 if (mapView ==
null) {
174 if (mapView ==
null) {
189 if (mapView ==
null) {
198 public void setAction(@NotNull
final Action action, @NotNull
final String
name) {
213 throw new IllegalArgumentException(
"unsupported action name: " +
name);
Action aExitCopy
The action for "copy exit".
final ExitConnectorModelListener exitConnectorModelListener
The ExitConnectorModelListener registered to the model.
Stores information about a remembered exit location.
MapControl< G, A, R > getMapControl()
Return the controller of this view.
Base package of all Gridarta classes.
void activeMapViewChanged(@Nullable final MapView< G, A, R > mapView)
This event handler is called when the current map view has changed.
void exitCopy()
Action method for "copy exit".
Interface for listeners interested in events related to {} instances.
Reflects a game object (object on a map).
boolean doExitCopy(final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point location)
Executes the "exit copy" action.
Graphical User Interface of Gridarta.
MapCursor< G, A, R > getMapCursor()
Returns the MapCursor of this view.
boolean doExitCopy(final boolean performAction)
Performs or checks availability of the "exit copy" action.
Action aExitConnect
The action for "connect exits".
GameObjects are the objects based on Archetypes found on maps.
void mapViewClosing(@NotNull final MapView< G, A, R > mapView)
This event handler is called when a map view is to be closed.
Interface for MapArchObjects.
Point getLocation()
Get position of cursor.
A map view consists of a map grid and a map cursor, and is attached to a map control.
boolean doExitPaste(final boolean performAction)
Performs or checks availability of the "exit paste" action.
void exitPaste()
Action method for "paste exit".
void refreshActions()
Updates the enabled state of all actions.
void exitConnect()
Action method for "connect exit".
Utility class implementing actions that operate on ExitConnectorModels.
ExitConnectorController(@NotNull final ExitConnectorActions< G, A, R > exitConnectorActions, @NotNull final ExitConnectorModel exitConnectorModel)
Creates a new instance.
Action aExitPaste
The action for "paste exit".
Base classes for rendering maps.
The controller of the exit connector.
boolean doExitConnect(final boolean performAction)
Performs or checks availability of the "exit connect" action.
void mapViewCreated(@NotNull final MapView< G, A, R > mapView)
This event handler is called when a map view was created.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Stores information needed by the exit connector.
final ExitConnectorActions< G, A, R > exitConnectorActions
The actions for this controller.
Interface for listeners interested in ExitConnectorModel related events.
boolean doExitConnect(final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point targetLocation)
Executes the "exit connect" action.
MapView< G, A, R > currentMapView
The active MapView or.
boolean doExitPaste(final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point targetLocation)
Executes the "exit paste" action.