use of util.fig.output.FigWriter in project solution-finder by knewjade.
the class FigUtilEntryPoint method run.
@Override
public void run() throws FinderException {
output("# Setup");
output("Version = " + FinderConstant.VERSION);
MinoFactory minoFactory = new MinoFactory();
ColorConverter colorConverter = new ColorConverter();
FrameType frameType = settings.getFrameType();
File outputFile = new File(settings.getOutputFilePath());
output();
output("# Generate");
output(" -> Stopwatch start");
Stopwatch stopwatch = Stopwatch.createStartedStopwatch();
List<TetfuPage> usingTetfuPages = useTetfuPages();
FigFormat figFormat = settings.getFigFormat();
FigWriter figWriter = createFigWriter(minoFactory, colorConverter, frameType, outputFile, figFormat, usingTetfuPages);
generate(figWriter, usingTetfuPages);
stopwatch.stop();
output(" -> Stopwatch stop : " + stopwatch.toMessage(TimeUnit.MILLISECONDS));
}
Aggregations