Package com.powsybl.sld.layout
Class ForceSubstationLayout
- java.lang.Object
-
- com.powsybl.sld.layout.AbstractLayout
-
- com.powsybl.sld.layout.AbstractSubstationLayout
-
- com.powsybl.sld.layout.ForceSubstationLayout
-
- All Implemented Interfaces:
SubstationLayout
public class ForceSubstationLayout extends AbstractSubstationLayout
- Author:
- Franck Lecuyer
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.layout.AbstractSubstationLayout
vLayoutFactory
-
-
Constructor Summary
Constructors Constructor Description ForceSubstationLayout(SubstationGraph substationGraph, VoltageLevelLayoutFactory voltageLevelLayoutFactory, ForceSubstationLayoutFactory.CompactionType compactionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addMiddlePoints(LayoutParameters layoutParam, Node node1, Node node2, boolean increment, List<Point> polyline)
protected void
calculateCoordVoltageLevels(LayoutParameters layoutParameters)
protected 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
-
ForceSubstationLayout
public ForceSubstationLayout(SubstationGraph substationGraph, VoltageLevelLayoutFactory voltageLevelLayoutFactory, ForceSubstationLayoutFactory.CompactionType compactionType)
-
-
Method Detail
-
calculateCoordVoltageLevels
protected void calculateCoordVoltageLevels(LayoutParameters layoutParameters)
- Specified by:
calculateCoordVoltageLevels
in classAbstractSubstationLayout
-
manageSnakeLines
public void manageSnakeLines(LayoutParameters layoutParameters)
- Specified by:
manageSnakeLines
in classAbstractLayout
-
calculatePolylineSnakeLine
protected List<Point> calculatePolylineSnakeLine(LayoutParameters layoutParam, Node node1, Node node2, boolean increment)
- Specified by:
calculatePolylineSnakeLine
in classAbstractLayout
-
addMiddlePoints
protected void addMiddlePoints(LayoutParameters layoutParam, Node node1, Node node2, boolean increment, List<Point> polyline)
-
-