|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.linkmap.export.PngImageExporter
public class PngImageExporter
PngImageExporter is capable of exporting an image of a Graph drawn by a GraphRendering to a PNG file.
| Constructor Summary | |
|---|---|
PngImageExporter(GraphRenderer renderer)
Create a new PngImageExporter that will use the specified GraphRenderer for rendering the graph. |
|
| Method Summary | |
|---|---|
void |
export(File file)
Saves the image containing the graph in PNG format to the specified File. |
void |
export(OutputStream stream)
Saves a PNG image to the specified OutputStream. |
Image |
getLogo()
Gets the logo that is displayed on exported images. |
void |
setLogo(Image logo)
Sets a logo that should be displayed on exported images. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PngImageExporter(GraphRenderer renderer)
| Method Detail |
|---|
public void setLogo(Image logo)
logo - An pre-loaded Image of the logo that should be displayed on the
exported image, or null.public Image getLogo()
public void export(File file)
throws IOException
IOException
public void export(OutputStream stream)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||