Package com.powsybl.sld.layout
Class HorizontalSubstationLayout
- java.lang.Object
-
- com.powsybl.sld.layout.AbstractLayout
-
- com.powsybl.sld.layout.AbstractSubstationLayout
-
- com.powsybl.sld.layout.HorizontalSubstationLayout
-
- All Implemented Interfaces:
SubstationLayout
public class HorizontalSubstationLayout extends AbstractSubstationLayout
- Author:
- Franck Lecuyer
, Slimane Amar
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.layout.AbstractSubstationLayout
vLayoutFactory
-
-
Constructor Summary
Constructors Constructor Description HorizontalSubstationLayout(SubstationGraph graph, VoltageLevelLayoutFactory vLayoutFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calculateCoordVoltageLevels(LayoutParameters layoutParameters)
Calculate relative coordinate of voltageLevels in the substationprotected List<Point>
calculatePolylineSnakeLine(LayoutParameters layoutParam, Node node1, Node node2, boolean increment)
void
manageSnakeLines(LayoutParameters layoutParameters)
-
Methods inherited from class com.powsybl.sld.layout.AbstractSubstationLayout
getGraph, run
-
Methods inherited from class com.powsybl.sld.layout.AbstractLayout
calculatePolylineSnakeLineForHorizontalLayout, getHeightSnakeLines, getNodeDirection, getWidthVerticalSnakeLines, manageSnakeLines, splitPolyline2, splitPolyline3
-
-
-
-
Constructor Detail
-
HorizontalSubstationLayout
public HorizontalSubstationLayout(SubstationGraph graph, VoltageLevelLayoutFactory vLayoutFactory)
-
-
Method Detail
-
calculatePolylineSnakeLine
protected List<Point> calculatePolylineSnakeLine(LayoutParameters layoutParam, Node node1, Node node2, boolean increment)
- Specified by:
calculatePolylineSnakeLine
in classAbstractLayout
-
calculateCoordVoltageLevels
protected void calculateCoordVoltageLevels(LayoutParameters layoutParameters)
Calculate relative coordinate of voltageLevels in the substation- Specified by:
calculateCoordVoltageLevels
in classAbstractSubstationLayout
-
manageSnakeLines
public void manageSnakeLines(LayoutParameters layoutParameters)
- Specified by:
manageSnakeLines
in classAbstractLayout
-
-