 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.map.mapview;
32 import net.
sf.japi.swing.action.ActionBuilder;
33 import net.
sf.japi.swing.action.ActionBuilderFactory;
34 import org.jetbrains.annotations.NotNull;
46 private static final ActionBuilder
ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder(
"net.sf.gridarta");
90 renderer.setFocusable(
true);
91 final MapView<G, A, R> mapView =
new DefaultMapView<>(mapControl, viewCounter,
pathManager, mapGrid,
new MapCursor<>(mapGrid, mapModel), renderer,
xScrollDistance,
yScrollDistance);
A MapModel reflects the data of a map.
A getMapArchObject()
Returns the Map Arch Object with the meta information about the map.
final RendererFactory< G, A, R > rendererFactory
The RendererFactory to use.
Base package of all Gridarta classes.
MapView< G, A, R > newMapView(@NotNull final MapControl< G, A, R > mapControl, final int viewCounter)
This class contains methods for converting relative map paths to absolute map paths and vice versa.
Default MapViewFactory implementation.
Reflects a game object (object on a map).
DefaultMapViewFactory(@NotNull final RendererFactory< G, A, R > rendererFactory, final int xScrollDistance, final int yScrollDistance, @NotNull final PathManager pathManager)
Creates a new instance.
Graphical User Interface of Gridarta.
AbstractMapRenderer< G, A, R > newPickmapRenderer(@NotNull MapModel< G, A, R > mapModel, @NotNull MapGrid mapGrid)
Creates a new MapRenderer suitable for painting pickmaps.
Abstract base class for classes implementing MapRenderer.
final int xScrollDistance
The x distance when scrolling.
GameObjects are the objects based on Archetypes found on maps.
AbstractMapRenderer< G, A, R > newMapRenderer(@NotNull MapModel< G, A, R > mapModel, @NotNull MapGrid mapGrid)
Creates a new MapRenderer suitable for painting maps.
Interface for MapArchObjects.
MapCursor provides methods to move and drag on map.
Reading and writing of maps, handling of paths.
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
Default MapView implementation.
static final ActionBuilder ACTION_BUILDER
Action Builder to create Actions.
final int yScrollDistance
The y distance when scrolling.
JInternalFrame getInternalFrame()
Returns the JInternalFrame instance for this map view.
Factory for creating MapRenderer instances.
final PathManager pathManager
The PathManager for converting path names.
Base classes for rendering maps.
A factory for creating MapView instances.
Currently nothing more than a marker interface for unification.