 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.action;
22 import javax.swing.Action;
33 import net.
sf.japi.swing.action.ActionMethod;
34 import org.jetbrains.annotations.NotNull;
35 import org.jetbrains.annotations.Nullable;
53 @SuppressWarnings(
"FieldCanBeLocal")
58 mapModel = mapControl ==
null ? null : mapControl.getMapModel();
63 public void mapCreated(@NotNull
final MapControl<G, A, R> mapControl,
final boolean interactive) {
127 private boolean doAction(
final boolean performAction) {
Action action
The Action for this instance.
A MapModel reflects the data of a map.
Shows an image of the current map and allows the user to save it.
A MapManager manages all opened maps.
Base package of all Gridarta classes.
Interface for listeners listening to MapManager changes.
MapRenderer newSimpleMapRenderer(@NotNull MapModel< G, A, R > mapModel)
Creates a new map renderer instance which paints only squares but no grid, cursor,...
void updateAction()
Updates the enabled state of action.
The map preview of the level editor.
Reflects a game object (object on a map).
MapModel< G, A, R > mapModel
The currently active MapModel.
Graphical User Interface of Gridarta.
boolean doAction(final boolean performAction)
Executes the action.
GameObjects are the objects based on Archetypes found on maps.
final MapManagerListener< G, A, R > mapManagerListener
The map manager listener.
Interface for MapArchObjects.
void zoom()
The action method for "zoom".
Factory for creating MapRenderer instances.
Base classes for rendering maps.
final RendererFactory< G, A, R > rendererFactory
The ReloadFacesAction for creating map images.
Currently nothing more than a marker interface for unification.
ZoomAction(@NotNull final MapManager< G, A, R > mapManager, @NotNull final RendererFactory< G, A, R > rendererFactory)
Creates a new instance.
BufferedImage getFullImage()
Returns an image of the entire map view.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.