Package net.ggtools.grand.graph
Interface GraphWriter
-
- All Superinterfaces:
GraphConsumer
- All Known Implementing Classes:
DotWriter
public interface GraphWriter extends GraphConsumer
Interface for graph writers.- Author:
- Christophe Labouisse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetShowGraphName(boolean showGraphName)Set whether or not the graph name should be display on the written graph.voidwrite(File output)Write a project's graph to a file.voidwrite(OutputStream stream)Write a project's graph to a stream.-
Methods inherited from interface net.ggtools.grand.graph.GraphConsumer
setProducer
-
-
-
-
Method Detail
-
write
void write(File output) throws GrandException, IOException
Write a project's graph to a file.- Parameters:
output- file to write the graph to.- Throws:
IOException- if the file cannot be written.GrandException- if the graph cannot be written for a problem within Grand.
-
write
void write(OutputStream stream) throws GrandException
Write a project's graph to a stream.- Parameters:
stream- The stream to write to.- Throws:
GrandException- if the graph cannot be written for a problem within Grand.
-
setShowGraphName
void setShowGraphName(boolean showGraphName)
Set whether or not the graph name should be display on the written graph. The default value depends on the implementations.- Parameters:
showGraphName- true to display the graph name.
-
-