de.frag.umlplugin.graphio
Interface GraphWriter

All Known Implementing Classes:
ImageGraphWriter, SVGGraphWriter

public interface GraphWriter

Write graph to file.


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.
 

Method Detail

writeGraph

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.

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

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

Returns:
true, if this writer can create thumbnail images; false otherwise