Package com.powsybl.sld.layout
Class AbstractSubstationLayout
- java.lang.Object
-
- com.powsybl.sld.layout.AbstractLayout
-
- com.powsybl.sld.layout.AbstractSubstationLayout
-
- All Implemented Interfaces:
Layout
- Direct Known Subclasses:
HorizontalSubstationLayout
,VerticalSubstationLayout
public abstract class AbstractSubstationLayout extends AbstractLayout
- Author:
- Franck Lecuyer
, Massimo Ferraro
-
-
Field Summary
Fields Modifier and Type Field Description protected VoltageLevelLayoutFactory
vLayoutFactory
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSubstationLayout(SubstationGraph graph, VoltageLevelLayoutFactory vLayoutFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
calculateCoordVoltageLevels(LayoutParameters layoutParameters)
SubstationGraph
getGraph()
void
run(LayoutParameters layoutParameters)
Calculate real coordinates of nodes-
Methods inherited from class com.powsybl.sld.layout.AbstractLayout
calculatePolylineSnakeLine, calculatePolylineSnakeLineForHorizontalLayout, getHeightSnakeLines, getNodeDirection, getWidthVerticalSnakeLines, manageSnakeLines, manageSnakeLines, splitPolyline2, splitPolyline3
-
-
-
-
Field Detail
-
vLayoutFactory
protected VoltageLevelLayoutFactory vLayoutFactory
-
-
Constructor Detail
-
AbstractSubstationLayout
protected AbstractSubstationLayout(SubstationGraph graph, VoltageLevelLayoutFactory vLayoutFactory)
-
-
Method Detail
-
getGraph
public SubstationGraph getGraph()
- Specified by:
getGraph
in classAbstractLayout
-
run
public void run(LayoutParameters layoutParameters)
Description copied from interface:Layout
Calculate real coordinates of nodes
-
calculateCoordVoltageLevels
protected abstract void calculateCoordVoltageLevels(LayoutParameters layoutParameters)
-
-