Package net.sf.gridarta.gui.map.mapview
Class DefaultMapViewFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.map.mapview.DefaultMapViewFactory<G,A,R>
-
- All Implemented Interfaces:
MapViewFactory<G,A,R>
public class DefaultMapViewFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements MapViewFactory<G,A,R>
DefaultMapViewFactoryimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultMapViewFactory(@NotNull RendererFactory<G,A,R> rendererFactory, int xScrollDistance, int yScrollDistance, @NotNull PathManager pathManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MapView<G,A,R>newMapView(@NotNull MapControl<G,A,R> mapControl, int viewCounter)Creates a new map view instance for a map control.
-
-
-
Constructor Detail
-
DefaultMapViewFactory
public DefaultMapViewFactory(@NotNull @NotNull RendererFactory<G,A,R> rendererFactory, int xScrollDistance, int yScrollDistance, @NotNull @NotNull PathManager pathManager)Creates a new instance.- Parameters:
rendererFactory- the renderer factory to usexScrollDistance- the x distance when scrollingyScrollDistance- the y distance when scrollingpathManager- the path manager for converting path names
-
-
Method Detail
-
newMapView
@NotNull public @NotNull MapView<G,A,R> newMapView(@NotNull @NotNull MapControl<G,A,R> mapControl, int viewCounter)
Description copied from interface:MapViewFactoryCreates a new map view instance for a map control.- Specified by:
newMapViewin interfaceMapViewFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
mapControl- the map controlviewCounter- the view counter- Returns:
- the new map view
-
-