20 package net.sf.gridarta.gui.map.test;
22 import java.awt.Image;
23 import java.awt.image.BufferedImage;
44 import org.jetbrains.annotations.NotNull;
89 return new MapViewsManager<>(mapControlCreator.getMapModelCreator().getMapViewSettings(), mapViewFactory, mapControlCreator.getMapManager(), mapControlCreator.getPickmapManager(), mapControlCreator.getPathManager());
100 final Image defaultIcon =
new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);
101 final Image defaultPreview =
new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);
103 return new MapImageCache<>(mapControlCreator.getMapManager(), defaultIcon, defaultPreview, rendererFactory, cacheFiles);
A MapModel reflects the data of a map.
Graphical User Interface of Gridarta.
Reading and writing of maps, handling of paths.
Helper class for regression tests to create MapModel instances.
An RendererFactory implementation for testing purposes.
Helper class for creating MapControl instances for regression tests.
Creates derived files for caching files.
Stores all existing MapViews.
MapCursor provides methods to move and drag on map.
A MapArchObject implementation for testing purposes.
InsertionModeSet< TestGameObject, TestMapArchObject, TestArchetype > getInsertionModeSet()
Returns the InsertionModeSet instance.
static MapImageCache< TestGameObject, TestMapArchObject, TestArchetype > newMapImageCache(@NotNull final TestMapControlCreator mapControlCreator)
Creates a new MapImageCache instance.
Helper class for creating MapControl instances for regression tests.
Base package of all Gridarta classes.
A CacheFiles implementation for regression test.
GameObjects are the objects based on Archetypes found on maps.
static CopyBuffer< TestGameObject, TestMapArchObject, TestArchetype > newCopyBuffer(@NotNull final TestMapControlCreator mapControlCreator)
Returns a new CopyBuffer instance.
A MapViewFactory implementation for testing purposes.
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
Caches icon and preview images for map files.
Base classes for rendering maps.
Factory for creating MapRenderer instances.
A getMapArchObject()
Returns the Map Arch Object with the meta information about the map.
static MapView< TestGameObject, TestMapArchObject, TestArchetype > newMapView(@NotNull final MapControl< TestGameObject, TestMapArchObject, TestArchetype > mapControl)
Creates a new MapView instance.
Currently nothing more than a marker interface for unification.
A map view consists of a map grid and a map cursor, and is attached to a map control.
MapViewSettings getMapViewSettings()
Returns the MapViewSettings instance.
An Archetype implementation for testing purposes.
A GameObject implementation for testing purposes.
TestMapControlCreatorUtils()
Private constructor to prevent instantiation.
GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > getGameObjectFactory()
Returns the GameObjectFactory instance.
Common base implementation of CopyBuffer.
A MapView implementation for regression tests.
A factory for creating MapView instances.
static MapViewsManager< TestGameObject, TestMapArchObject, TestArchetype > newMapViewsManager(@NotNull final TestMapControlCreator mapControlCreator)
Creates a new MapViewsManager instance.