Class ImageCreator2<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<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.Object
    Creates images from map instances.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createImage​(@NotNull MapModel<G,​A,​R> mapModel, @NotNull java.awt.Component component)
      Create an image of a map and save it as a file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 use
        imageCreator - 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)
        Create 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 print
        component - the parent component to use