Package HAL.Gui

Class GifMaker


  • public class GifMaker
    extends java.lang.Object
    the GifMaker is used to create gif files by compiling UIGrid states
    • Constructor Summary

      Constructors 
      Constructor Description
      GifMaker​(java.lang.String outputPath, int timeBetweenFramesMS, boolean loopContinuously)
      Creates a new GifMaker
    • Method Summary

      Modifier and Type Method Description
      void AddFrame​(UIGrid vis)
      adds the current UIGrid state to the GIF as a single frame
      void Close()
      Close this GifMaker object
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GifMaker

        public GifMaker​(java.lang.String outputPath,
                        int timeBetweenFramesMS,
                        boolean loopContinuously)
        Creates a new GifMaker
        Parameters:
        outputPath - the gif file to be written to
        timeBetweenFramesMS - the time between frames in miliseconds
        loopContinuously - wether the gif should loop repeatedly
        Throws:
        javax.imageio.IIOException - if no gif ImageWriters are found
    • Method Detail

      • AddFrame

        public void AddFrame​(UIGrid vis)
        adds the current UIGrid state to the GIF as a single frame
      • Close

        public void Close()
        Close this GifMaker object