Class DefaultRendererFactory
- java.lang.Object
-
- net.sf.gridarta.var.crossfire.gui.map.renderer.DefaultRendererFactory
-
- All Implemented Interfaces:
RendererFactory<GameObject,MapArchObject,Archetype>
public class DefaultRendererFactory extends java.lang.Object implements RendererFactory<GameObject,MapArchObject,Archetype>
Factory for creatingMapRendererinstances.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull FlatMapRenderernewMapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull MapGrid mapGrid)Creates a newMapRenderersuitable for painting maps.@NotNull FlatPickmapRenderernewPickmapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull MapGrid mapGrid)Creates a newMapRenderersuitable for painting pickmaps.@NotNull SimpleFlatMapRenderernewSimpleMapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel)Creates a new map renderer instance which paints only squares but no grid, cursor, selection, or errors.
-
-
-
Constructor Detail
-
DefaultRendererFactory
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)Creates a new instance.- Parameters:
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
-
-
Method Detail
-
newSimpleMapRenderer
@NotNull public @NotNull SimpleFlatMapRenderer newSimpleMapRenderer(@NotNull @NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel)
Description copied from interface:RendererFactoryCreates a new map renderer instance which paints only squares but no grid, cursor, selection, or errors.- Specified by:
newSimpleMapRendererin interfaceRendererFactory<GameObject,MapArchObject,Archetype>- Parameters:
mapModel- the map model to render- Returns:
- the new map renderer
-
newMapRenderer
@NotNull public @NotNull FlatMapRenderer newMapRenderer(@NotNull @NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull @NotNull MapGrid mapGrid)
Description copied from interface:RendererFactoryCreates a newMapRenderersuitable for painting maps.- Specified by:
newMapRendererin interfaceRendererFactory<GameObject,MapArchObject,Archetype>- Parameters:
mapModel- the map model to rendermapGrid- the map grid to render- Returns:
- the new map renderer
-
newPickmapRenderer
@NotNull public @NotNull FlatPickmapRenderer newPickmapRenderer(@NotNull @NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull @NotNull MapGrid mapGrid)
Description copied from interface:RendererFactoryCreates a newMapRenderersuitable for painting pickmaps.- Specified by:
newPickmapRendererin interfaceRendererFactory<GameObject,MapArchObject,Archetype>- Parameters:
mapModel- the map model to rendermapGrid- the map grid to render- Returns:
- the new map renderer
-
-