Examples of SVGOutputFormat


Examples of org.jhotdraw.samples.svg.io.SVGOutputFormat

import ssv.interaction.diagram.InteractionDiagramFormat;

public class SVGInteractionDiagramFileWriter implements InteractionDiagramFileWriter {

  public void write(String fileName, InteractionDiagram diagram) {
    SVGOutputFormat svgof = new SVGOutputFormat();
    try {
      System.out.println(this.getClass().getCanonicalName() + " about to write [" + fileName + "]");
      FileOutputStream fos = new FileOutputStream(fileName);
     
      svgof.write(fos, (Drawing) diagram);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.