public FileSinkImages(
      String prefix, OutputType type, Resolution resolution, OutputPolicy outputPolicy) {
    this.resolution = resolution;
    this.outputType = type;
    this.filePrefix = prefix;
    this.counter = 0;
    this.gg = new GraphicGraph(prefix);
    this.postRenderers = new LinkedList<PostRenderer>();
    this.layoutPolicy = LayoutPolicy.NO_LAYOUT;
    this.layout = null;
    this.optLayout = null;
    this.layoutPipeIn = null;
    this.sink = gg;

    setOutputPolicy(outputPolicy);
    setRenderer(RendererType.BASIC);

    initImage();
  }
Beispiel #2
0
  public FileSinkImages(
      String prefix, OutputType type, Resolution resolution, OutputPolicy outputPolicy) {
    this.resolution = resolution;
    this.outputType = type;
    this.filePrefix = prefix;
    this.counter = 0;
    this.gg = new GraphicGraph(prefix);
    this.outputPolicy = outputPolicy;
    this.postRenderers = new LinkedList<PostRenderer>();
    this.layoutPolicy = LayoutPolicy.NoLayout;
    this.layout = null;
    this.optLayout = null;
    this.layoutPipeIn = null;

    setRenderer(RendererType.Basic);

    initImage();

    this.renderer.open(gg, null);
  }