public class DefaultRendererFactory extends java.lang.Object implements RendererFactory<GameObject,MapArchObject,Archetype>
MapRenderer
instances.Constructor and Description |
---|
DefaultRendererFactory(MapViewSettings mapViewSettings,
FilterControl<GameObject,MapArchObject,Archetype> filterControl,
MultiPositionData multiPositionData,
IsoMapSquareInfo isoMapSquareInfo,
GridMapSquarePainter gridMapSquarePainter,
GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser,
ResourceIcons resourceIcons)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
IsoMapRenderer<GameObject,MapArchObject,Archetype> |
newMapRenderer(MapModel<GameObject,MapArchObject,Archetype> mapModel,
MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting maps. |
IsoPickmapRenderer<GameObject,MapArchObject,Archetype> |
newPickmapRenderer(MapModel<GameObject,MapArchObject,Archetype> mapModel,
MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting pickmaps. |
SimpleIsoMapRenderer<GameObject,MapArchObject,Archetype> |
newSimpleMapRenderer(MapModel<GameObject,MapArchObject,Archetype> mapModel)
Creates a new map renderer instance which paints only squares but no
grid, cursor, selection, or errors.
|
public DefaultRendererFactory(@NotNull MapViewSettings mapViewSettings, @NotNull FilterControl<GameObject,MapArchObject,Archetype> filterControl, @NotNull MultiPositionData multiPositionData, @NotNull IsoMapSquareInfo isoMapSquareInfo, @NotNull GridMapSquarePainter gridMapSquarePainter, @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull ResourceIcons resourceIcons)
mapViewSettings
- the map view settings to usefilterControl
- the filter control to usemultiPositionData
- the multi position data to query for multi-part
objectsisoMapSquareInfo
- the iso square info to usegridMapSquarePainter
- the grid square painter to usegameObjectParser
- the game object parser for creating tooltip
informationresourceIcons
- the resource icons for creating icons@NotNull public SimpleIsoMapRenderer<GameObject,MapArchObject,Archetype> newSimpleMapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel)
newSimpleMapRenderer
in interface RendererFactory<GameObject,MapArchObject,Archetype>
mapModel
- the map model to render@NotNull public IsoMapRenderer<GameObject,MapArchObject,Archetype> newMapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull MapGrid mapGrid)
MapRenderer
suitable for painting maps.newMapRenderer
in interface RendererFactory<GameObject,MapArchObject,Archetype>
mapModel
- the map model to rendermapGrid
- the map grid to render@NotNull public IsoPickmapRenderer<GameObject,MapArchObject,Archetype> newPickmapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull MapGrid mapGrid)
MapRenderer
suitable for painting pickmaps.newPickmapRenderer
in interface RendererFactory<GameObject,MapArchObject,Archetype>
mapModel
- the map model to rendermapGrid
- the map grid to render