Package org.neuroml.export.svg
Class SVGWriter
- java.lang.Object
-
- org.lemsml.export.base.ABaseWriter
-
- org.neuroml.export.base.ANeuroMLBaseWriter
-
- org.neuroml.export.base.ANeuroMLXMLWriter
-
- org.neuroml.export.svg.SVGWriter
-
- All Implemented Interfaces:
IBaseWriter
public class SVGWriter extends ANeuroMLXMLWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.neuroml.export.base.ANeuroMLBaseWriter
ANeuroMLBaseWriter.CompInfo
-
-
Field Summary
Fields Modifier and Type Field Description boolean
useColor
-
Fields inherited from class org.neuroml.export.base.ANeuroMLXMLWriter
INDENT
-
Fields inherited from class org.neuroml.export.base.ANeuroMLBaseWriter
nmlDocument
-
Fields inherited from class org.lemsml.export.base.ABaseWriter
format, lems, sli
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<File>
convert()
void
convertToPng(File pngFile)
List<org.neuroml.model.Cell>
getAllBasedOnCell(org.neuroml.model.NeuroMLDocument nmlDocument)
String
getMainScript()
static void
main(String[] args)
RectanglePacker.Rectangle
render(StringBuilder result, boolean png)
void
setSupportedFeatures()
-
Methods inherited from class org.neuroml.export.base.ANeuroMLXMLWriter
addComment, addComment, addComment, addTextElement, decreaseIndent, endElement, endElement, getIndent, increaseIndent, processAttr, processMathML, processMathML, processMathML, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startElement, startEndElement, startEndElement, startEndElement, startEndElement, startEndElement, startEndElement, startEndElement, startEndElement, startEndElement, startEndElement, startEndTextElement
-
Methods inherited from class org.lemsml.export.base.ABaseWriter
getOutputFileName, getOutputFolder, setOutputFileName, setOutputFolder
-
-
-
-
Constructor Detail
-
SVGWriter
public SVGWriter(org.neuroml.model.NeuroMLDocument nmlDocument, File outputFolder, String outputFileName) throws ModelFeatureSupportException, org.lemsml.jlems.core.sim.LEMSException, org.neuroml.model.util.NeuroMLException
- Throws:
ModelFeatureSupportException
org.lemsml.jlems.core.sim.LEMSException
org.neuroml.model.util.NeuroMLException
-
-
Method Detail
-
setSupportedFeatures
public void setSupportedFeatures()
-
getMainScript
public String getMainScript() throws GenerationException
- Throws:
GenerationException
-
getAllBasedOnCell
public List<org.neuroml.model.Cell> getAllBasedOnCell(org.neuroml.model.NeuroMLDocument nmlDocument)
-
render
public RectanglePacker.Rectangle render(StringBuilder result, boolean png) throws org.neuroml.model.util.NeuroMLException
- Throws:
org.neuroml.model.util.NeuroMLException
-
convertToPng
public void convertToPng(File pngFile) throws org.neuroml.model.util.NeuroMLException
- Throws:
org.neuroml.model.util.NeuroMLException
-
-