 |
Gridarta Editor
|
Go to the documentation of this file.
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);
An Archetype implementation for testing purposes.
InsertionModeSet< TestGameObject, TestMapArchObject, TestArchetype > getInsertionModeSet()
Returns the InsertionModeSet instance.
A MapModel reflects the data of a map.
A getMapArchObject()
Returns the Map Arch Object with the meta information about the map.
Base package of all Gridarta classes.
MapViewSettings getMapViewSettings()
Returns the MapViewSettings instance.
A GameObject implementation for testing purposes.
Helper class for regression tests to create MapModel instances.
static CopyBuffer< TestGameObject, TestMapArchObject, TestArchetype > newCopyBuffer(@NotNull final TestMapControlCreator mapControlCreator)
Returns a new CopyBuffer instance.
static MapView< TestGameObject, TestMapArchObject, TestArchetype > newMapView(@NotNull final MapControl< TestGameObject, TestMapArchObject, TestArchetype > mapControl)
Creates a new MapView instance.
Graphical User Interface of Gridarta.
Helper class for creating MapControl instances for regression tests.
Caches icon and preview images for map files.
GameObjects are the objects based on Archetypes found on maps.
An RendererFactory implementation for testing purposes.
GameObjectFactory< TestGameObject, TestMapArchObject, TestArchetype > getGameObjectFactory()
Returns the GameObjectFactory instance.
A map view consists of a map grid and a map cursor, and is attached to a map control.
static MapViewsManager< TestGameObject, TestMapArchObject, TestArchetype > newMapViewsManager(@NotNull final TestMapControlCreator mapControlCreator)
Creates a new MapViewsManager instance.
MapCursor provides methods to move and drag on map.
Common base implementation of CopyBuffer.
Reading and writing of maps, handling of paths.
Helper class for creating MapControl instances for regression tests.
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
A MapView implementation for regression tests.
Factory for creating MapRenderer instances.
Base classes for rendering maps.
A factory for creating MapView instances.
Currently nothing more than a marker interface for unification.
A MapArchObject implementation for testing purposes.
Creates derived files for caching files.
A CacheFiles implementation for regression test.
TestMapControlCreatorUtils()
Private constructor to prevent instantiation.
A MapViewFactory implementation for testing purposes.
Stores all existing MapViews.
static MapImageCache< TestGameObject, TestMapArchObject, TestArchetype > newMapImageCache(@NotNull final TestMapControlCreator mapControlCreator)
Creates a new MapImageCache instance.