Class DefaultRendererFactory
- java.lang.Object
-
- net.sf.gridarta.var.daimonin.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 MultiPositionData multiPositionData, @NotNull IsoMapSquareInfo isoMapSquareInfo, @NotNull GridMapSquarePainter gridMapSquarePainter, @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull ResourceIcons resourceIcons)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull IsoMapRenderer<GameObject,MapArchObject,Archetype>newMapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull MapGrid mapGrid)Creates a newMapRenderersuitable for painting maps.@NotNull IsoPickmapRenderer<GameObject,MapArchObject,Archetype>newPickmapRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull MapGrid mapGrid)Creates a newMapRenderersuitable 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.
-
-
-
Constructor Detail
-
DefaultRendererFactory
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)Creates a new instance.- Parameters:
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
-
-
Method Detail
-
newSimpleMapRenderer
@NotNull public @NotNull SimpleIsoMapRenderer<GameObject,MapArchObject,Archetype> 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 IsoMapRenderer<GameObject,MapArchObject,Archetype> 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 IsoPickmapRenderer<GameObject,MapArchObject,Archetype> 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
-
-