public class DefaultRendererFactory extends java.lang.Object implements RendererFactory<GameObject,MapArchObject,Archetype>
MapRenderer
instances.Constructor and Description |
---|
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)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull IsoMapRenderer<GameObject,MapArchObject,Archetype> |
newMapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel,
@NotNull MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting maps. |
@NotNull IsoPickmapRenderer<GameObject,MapArchObject,Archetype> |
newPickmapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel,
@NotNull MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting pickmaps. |
@NotNull SimpleIsoMapRenderer<GameObject,MapArchObject,Archetype> |
newSimpleMapRenderer(@NotNull 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 @NotNull MapViewSettings mapViewSettings, @NotNull @NotNull FilterControl<GameObject,MapArchObject,Archetype> filterControl, @NotNull @NotNull MultiPositionData multiPositionData, @NotNull @NotNull IsoMapSquareInfo isoMapSquareInfo, @NotNull @NotNull GridMapSquarePainter gridMapSquarePainter, @NotNull @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull @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 @NotNull SimpleIsoMapRenderer<GameObject,MapArchObject,Archetype> newSimpleMapRenderer(@NotNull @NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel)
RendererFactory
newSimpleMapRenderer
in interface RendererFactory<GameObject,MapArchObject,Archetype>
mapModel
- the map model to render@NotNull public @NotNull IsoMapRenderer<GameObject,MapArchObject,Archetype> newMapRenderer(@NotNull @NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull @NotNull MapGrid mapGrid)
RendererFactory
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 @NotNull IsoPickmapRenderer<GameObject,MapArchObject,Archetype> newPickmapRenderer(@NotNull @NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull @NotNull MapGrid mapGrid)
RendererFactory
MapRenderer
suitable for painting pickmaps.newPickmapRenderer
in interface RendererFactory<GameObject,MapArchObject,Archetype>
mapModel
- the map model to rendermapGrid
- the map grid to render