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 SmoothFaces smoothFaces,
@NotNull GridMapSquarePainter gridMapSquarePainter,
@NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser,
@NotNull FaceObjectProviders faceObjectProviders,
@NotNull ResourceIcons resourceIcons)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull FlatMapRenderer |
newMapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel,
@NotNull MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting maps. |
@NotNull FlatPickmapRenderer |
newPickmapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel,
@NotNull MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting pickmaps. |
@NotNull SimpleFlatMapRenderer |
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 SmoothFaces smoothFaces, @NotNull @NotNull GridMapSquarePainter gridMapSquarePainter, @NotNull @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @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 @NotNull SimpleFlatMapRenderer 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 FlatMapRenderer 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 FlatPickmapRenderer 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