 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.action;
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;
43 public class ArchAttributesAction<G
extends GameObject<G, A, R>, A extends
MapArchObject<A>, R extends
Archetype<G, A, R>> implements
EditorAction,
MapCursorListener<G, A, R>,
MapViewManagerListener<G, A, R> {
108 if (gameObject ==
null) {
void mapCursorChangedMode()
This event handler is called when MapCursor changes mode (drag, select).
final GameObjectAttributesDialogFactory< G, A, R > gameObjectAttributesDialogFactory
The factory for creating game object attributes dialog instances.
Base package of all Gridarta classes.
void showAttributeDialog(@NotNull final G gameObject)
Shows the game object attributes dialog for a given GameObject instance.
An EditorAction that opens the game object attributes dialog for the currently selected game object.
G getGameObject()
Returns the selected GameObject.
void mapCursorChangedPos(@NotNull final Point location)
This event handler is called when MapCursor has moved.
void mapCursorChangedGameObject(@Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject)
Called whenever the selected game object has changed.
boolean doArchAttributes(final boolean performAction)
Executes the "arch attributes" action.
Interface for listeners interested in events related to {} instances.
Reflects a game object (object on a map).
Interface for listeners listening to MapCursor related events.
Graphical User Interface of Gridarta.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
MapCursor< G, A, R > getMapCursor()
Returns the MapCursor of this view.
void mapViewCreated(@NotNull final MapView< G, A, R > mapView)
This event handler is called when a map view was created.
GameObjects are the objects based on Archetypes found on maps.
void archAttributes()
Action method for "arch attributes".
Interface for MapArchObjects.
ArchAttributesAction(@NotNull final GameObjectAttributesDialogFactory< G, A, R > gameObjectAttributesDialogFactory)
Creates a new instance.
A map view consists of a map grid and a map cursor, and is attached to a map control.
MapCursor provides methods to move and drag on map.
MapView< G, A, R > currentMapView
The active map view, or.
A factory that creates dialogs for editing game object attributes.
void activeMapViewChanged(@Nullable final MapView< G, A, R > mapView)
This event handler is called when the current map view has changed.
void mapViewClosing(@NotNull final MapView< G, A, R > mapView)
This event handler is called when a map view is to be closed.
void updateActions()
Updates the enabled state of action.
Base classes for rendering maps.
Action action
The associated Action.
void mapCursorChangedSize()
Called whenever the map cursor's map grid size has changed.