|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.output.DotWriter
public class DotWriter
A class to write dependency graph in dot format.
The rendering can be customized either by properties at object creation or
at runtime usign various setters.
The property names use the following scheme: dot.objecttype.attributes.
Where objectype can be:
node for "common" nodes,link for dependency links,mainnode for nodes with a special importance (i.e.: when
node.isMainNode() is true),startnode for the start node,graph for the graph itself.
| Constructor Summary | |
|---|---|
DotWriter()
Creates a new DotWriter using default configuration. |
|
DotWriter(java.util.Properties override)
Creates a new DotWriter with custom properties. |
|
| Method Summary | |
|---|---|
void |
setProducer(GraphProducer producer)
Set the graph producer. |
void |
setShowGraphName(boolean show)
Set wether or not the graph name should be display on the written graph. |
void |
write(java.io.File output)
Write a project's graph to a file. |
void |
write(java.io.OutputStream stream)
Write a project's graph to a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DotWriter()
throws java.io.IOException
java.io.IOException - when the default configuration cannot be loaded.
public DotWriter(java.util.Properties override)
throws java.io.IOException
override - custom configuration.
java.io.IOException - when the configuration cannot be loaded.| Method Detail |
|---|
public void write(java.io.File output)
throws java.io.IOException,
GrandException
GraphWriter
write in interface GraphWriteroutput - file to write the graph to.
java.io.IOException - if the file cannot be written.
GrandException - if the graph cannot be written for a problem
within Grand.
public void write(java.io.OutputStream stream)
throws GrandException
GraphWriter
write in interface GraphWriterstream - The stream to write to.
GrandException - if the graph cannot be written for a problem
within Grand.public void setProducer(GraphProducer producer)
GraphConsumer
setProducer in interface GraphConsumerproducer - the producer to get the graph from.public void setShowGraphName(boolean show)
GraphWriter
setShowGraphName in interface GraphWritershow - true to display the graph name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||