public class SemanticSvgWriter extends StructureWriter
SvgRenderer
to perform the actual
SVG generation. The SemanticSvgWriter adds the management of the data
structures.Constructor and Description |
---|
SemanticSvgWriter() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear any stored settings and data
|
void |
close()
Close this writer.
|
java.lang.String |
getContentType()
Get the content type generated by this writer.
|
SvgRenderer<DataRecord,DataRecord> |
getSvgRenderer()
Get the SVG renderer
|
void |
setSvgRenderer(SvgRenderer<DataRecord,DataRecord> svgRenderer)
Set the SVG Renderer
|
void |
writeData(java.util.Collection<DataRecord> data)
Write the collection of data.
|
void |
writeGraph(Graph<DataRecord,DataRecord> graph)
Write graph data
|
void |
writeGrid(Grid<DataRecord> grid)
Write Grid data.
|
void |
writeTree(Tree<DataRecord> tree)
Write tree data
|
getDestination, getWriter, setDestination, setWriter
public void clear()
clear
in class StructureWriter
public void close()
public java.lang.String getContentType()
getContentType
in class WebFormatWriter<DataRecord>
image/svg+xml
public SvgRenderer<DataRecord,DataRecord> getSvgRenderer()
public void setSvgRenderer(SvgRenderer<DataRecord,DataRecord> svgRenderer)
svgRenderer
- the SVG Rendererpublic void writeData(java.util.Collection<DataRecord> data)
data
- the data collectionpublic void writeGraph(Graph<DataRecord,DataRecord> graph)
writeGraph
in class StructureWriter
graph
- the graphpublic void writeGrid(Grid<DataRecord> grid)
writeGrid
in class StructureWriter
grid
- the gridpublic void writeTree(Tree<DataRecord> tree)
writeTree
in class StructureWriter
tree
- the tree data