de.frag.umlplugin.graphio
Class SVGGraphWriter

java.lang.Object
  extended by de.frag.umlplugin.graphio.SVGGraphWriter
All Implemented Interfaces:
GraphWriter

public class SVGGraphWriter
extends java.lang.Object
implements GraphWriter

Writes graphs to SVG documents.


Constructor Summary
SVGGraphWriter()
           
 
Method Summary
 boolean canWriteThumbnail()
          Checks whether this graph writer supports storage image thumbnails.
 void writeGraph(com.intellij.openapi.graph.view.Graph2D graph, java.lang.String path, boolean saveThumbnail, int thumbnailHeight)
          Writes given graph to file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGGraphWriter

public SVGGraphWriter()
Method Detail

writeGraph

public void writeGraph(@NotNull
                       com.intellij.openapi.graph.view.Graph2D graph,
                       @NotNull
                       java.lang.String path,
                       boolean saveThumbnail,
                       int thumbnailHeight)
                throws java.io.IOException
Writes given graph to file.

Specified by:
writeGraph in interface GraphWriter
Parameters:
graph - graph to write
path - path to target file
saveThumbnail - true, if thumbnail should be written; false otherwise
thumbnailHeight - desired thumbnail height in pixels
Throws:
java.io.IOException - on IO error

canWriteThumbnail

public boolean canWriteThumbnail()
Checks whether this graph writer supports storage image thumbnails.

Specified by:
canWriteThumbnail in interface GraphWriter
Returns:
false, since this writer does not support thumbnail images