Class SinglePngCommand

  • All Implemented Interfaces:
    Command

    public class SinglePngCommand
    extends java.lang.Object
    implements Command
    Run in single png mode.
    • Constructor Summary

      Constructors 
      Constructor Description
      SinglePngCommand​(@NotNull java.io.File in, @NotNull java.io.File out, @NotNull ImageCreator<?,​?,​?> imageCreator)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int execute()
      Executes the command.
      • Methods inherited from class java.lang.Object

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

      • SinglePngCommand

        public SinglePngCommand​(@NotNull
                                @NotNull java.io.File in,
                                @NotNull
                                @NotNull java.io.File out,
                                @NotNull
                                @NotNull ImageCreator<?,​?,​?> imageCreator)
        Creates a new instance.
        Parameters:
        in - the input file
        out - the output file
        imageCreator - the image creator to use
    • Method Detail

      • execute

        public int execute()
        Description copied from interface: Command
        Executes the command.
        Specified by:
        execute in interface Command
        Returns:
        return code suitable for passing to System.exit(int)