Package com.powsybl.sld.model.coordinate
Class Coord
- java.lang.Object
-
- com.powsybl.sld.model.coordinate.Coord
-
public class Coord extends Object
class use to store relatives coordinates of a nodeBus- Author:
- Benoit Jeanson
, Nicolas Duchene, Geoffroy Jamgotchian
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Coord.Dimension
class
Coord.Segment
-
Constructor Summary
Constructors Constructor Description Coord(double x, double y)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
get(Coord.Dimension dimension)
Coord.Segment
getSegment(Coord.Dimension dimension)
double
getShift(Coord.Dimension dimension)
double
getSpan(Coord.Dimension dimension)
void
set(Coord.Dimension dimension, double value)
void
setShift(Coord.Dimension dimension, double shift)
void
setSpan(Coord.Dimension dimension, double span)
String
toString()
void
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator)
-
-
-
Method Detail
-
get
public double get(Coord.Dimension dimension)
-
getSpan
public double getSpan(Coord.Dimension dimension)
-
getShift
public double getShift(Coord.Dimension dimension)
-
getSegment
public Coord.Segment getSegment(Coord.Dimension dimension)
-
set
public void set(Coord.Dimension dimension, double value)
-
setSpan
public void setSpan(Coord.Dimension dimension, double span)
-
setShift
public void setShift(Coord.Dimension dimension, double shift)
-
writeJsonContent
public void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
- Throws:
IOException
-
-