Package com.powsybl.sld.model
Class AbstractGraph
- java.lang.Object
-
- com.powsybl.sld.model.AbstractGraph
-
- All Implemented Interfaces:
Graph
- Direct Known Subclasses:
AbstractLineGraph
public abstract class AbstractGraph extends Object implements Graph
- Author:
- Florian Dupuy
-
-
Constructor Summary
Constructors Constructor Description AbstractGraph()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
getHeight()
double
getWidth()
boolean
isGenerateCoordsInJson()
void
setGenerateCoordsInJson(boolean generateCoordsInJson)
void
setSize(double width, double height)
protected abstract void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator)
void
writeJson(Writer writer)
void
writeJson(Path file)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.sld.model.Graph
getId, getVLGraph
-
-
-
-
Method Detail
-
setGenerateCoordsInJson
public void setGenerateCoordsInJson(boolean generateCoordsInJson)
- Specified by:
setGenerateCoordsInJson
in interfaceGraph
-
isGenerateCoordsInJson
public boolean isGenerateCoordsInJson()
- Specified by:
isGenerateCoordsInJson
in interfaceGraph
-
writeJson
protected abstract void writeJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Throws:
IOException
-
setSize
public void setSize(double width, double height)
-
-