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,
SmoothFaces smoothFaces,
GridMapSquarePainter gridMapSquarePainter,
GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser,
FaceObjectProviders faceObjectProviders,
ResourceIcons resourceIcons)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
FlatMapRenderer |
newMapRenderer(MapModel<GameObject,MapArchObject,Archetype> mapModel,
MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting maps. |
FlatPickmapRenderer |
newPickmapRenderer(MapModel<GameObject,MapArchObject,Archetype> mapModel,
MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting pickmaps. |
SimpleFlatMapRenderer |
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 SmoothFaces smoothFaces, @NotNull GridMapSquarePainter gridMapSquarePainter, @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull FaceObjectProviders faceObjectProviders, @NotNull ResourceIcons resourceIcons)
mapViewSettings
- the map view settings to usefilterControl
- the filter control to usesmoothFaces
- the smooth faces to usegridMapSquarePainter
- the grid square painter to usegameObjectParser
- the game object parser for creating tooltip
informationfaceObjectProviders
- the face object providers for looking up
facesresourceIcons
- the resource icons for creating icons@NotNull public SimpleFlatMapRenderer newSimpleMapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel)
newSimpleMapRenderer
in interface RendererFactory<GameObject,MapArchObject,Archetype>
mapModel
- the map model to render@NotNull public FlatMapRenderer 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 FlatPickmapRenderer 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