|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.frag.umlplugin.graphio.ImageGraphWriter
public class ImageGraphWriter
Write graphs to image files (JPG, PNG, GIF).
Constructor Summary | |
---|---|
ImageGraphWriter(java.lang.String extension)
Creates new writer that writes graphs to images. |
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 |
---|
public ImageGraphWriter(@NotNull java.lang.String extension)
extension
- file extension that specified desired image formatMethod Detail |
---|
public void writeGraph(@NotNull com.intellij.openapi.graph.view.Graph2D graph, @NotNull java.lang.String path, boolean saveThumbnail, int thumbnailHeight) throws java.io.IOException
writeGraph
in interface GraphWriter
graph
- graph to writepath
- path to target filesaveThumbnail
- true, if thumbnail should be created and written; false otherwisethumbnailHeight
- desired height of thumbnail image in pixels
java.io.IOException
- on IO errorpublic boolean canWriteThumbnail()
canWriteThumbnail
in interface GraphWriter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |