Package net.sf.gridarta.gui.map.renderer
Class ImageCreator2<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.map.renderer.ImageCreator2<G,A,R>
-
public class ImageCreator2<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectCreates images from map instances.
-
-
Constructor Summary
Constructors Constructor Description ImageCreator2(@NotNull VolatileSettings volatileSettings, @NotNull ImageCreator<G,A,R> imageCreator)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateImage(@NotNull MapModel<G,A,R> mapModel, @NotNull java.awt.Component component)Creates an image of a map and save it as a file.
-
-
-
Constructor Detail
-
ImageCreator2
public ImageCreator2(@NotNull @NotNull VolatileSettings volatileSettings, @NotNull @NotNull ImageCreator<G,A,R> imageCreator)Creates a new instance.- Parameters:
volatileSettings- the volatile settings to useimageCreator- the image creator to forward to
-
-
Method Detail
-
createImage
public void createImage(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull java.awt.Component component)Creates an image of a map and save it as a file. In this method, a file chooser is opened to let the user select an output file name/path for the png image.- Parameters:
mapModel- the map to printcomponent- the parent component to use
-
-