Search in sources :

Example 1 with FigWriter

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));
}
Also used : TetfuPage(common.tetfu.TetfuPage) FigWriter(util.fig.output.FigWriter) FrameType(util.fig.FrameType) Stopwatch(lib.Stopwatch) ColorConverter(common.tetfu.common.ColorConverter) MinoFactory(core.mino.MinoFactory) File(java.io.File)

Aggregations

TetfuPage (common.tetfu.TetfuPage)1 ColorConverter (common.tetfu.common.ColorConverter)1 MinoFactory (core.mino.MinoFactory)1 File (java.io.File)1 Stopwatch (lib.Stopwatch)1 FrameType (util.fig.FrameType)1 FigWriter (util.fig.output.FigWriter)1