20 package net.sf.gridarta.commands;
23 import java.io.IOException;
24 import java.util.ArrayList;
25 import java.util.List;
27 import org.jetbrains.annotations.NotNull;
34 @SuppressWarnings(
"UseOfSystemOutOrSystemErr")
41 private final Iterable<String>
args;
55 this.args =
new ArrayList<>(args);
56 this.imageCreator = imageCreator;
61 for (
final String arg : args) {
62 final File in =
new File(arg);
63 final File out =
new File(arg +
".png");
66 }
catch (
final IOException ex) {
67 System.err.println(out +
": " + ex.getMessage());
Graphical User Interface of Gridarta.
Interface for command-line commands.
void makeImage(@NotNull final File in, @NotNull final File out)
final Iterable< String > args
The files to convert.
Base package of all Gridarta classes.
final ImageCreator<?, ?, ?> imageCreator
The ImageCreator to use.
int execute()
Executes the command.
BatchPngCommand(@NotNull final List< String > args, @NotNull final ImageCreator<?, ?, ?> imageCreator)
Creates a new instance.
Base classes for rendering maps.
Creates images from map instances.