Package com.powsybl.sld.layout
Class AbstractSubstationLayout
- java.lang.Object
-
- com.powsybl.sld.layout.AbstractLayout
-
- com.powsybl.sld.layout.AbstractSubstationLayout
-
- All Implemented Interfaces:
SubstationLayout
- Direct Known Subclasses:
ForceSubstationLayout
,HorizontalSubstationLayout
,VerticalSubstationLayout
public abstract class AbstractSubstationLayout extends AbstractLayout implements SubstationLayout
- Author:
- Franck Lecuyer
, Massimo Ferraro
-
-
Field Summary
Fields Modifier and Type Field Description protected VoltageLevelLayoutFactory
vLayoutFactory
-
Constructor Summary
Constructors Constructor Description 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 in the substation graph-
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
public 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:SubstationLayout
Calculate real coordinates of nodes in the substation graph- Specified by:
run
in interfaceSubstationLayout
-
calculateCoordVoltageLevels
protected abstract void calculateCoordVoltageLevels(LayoutParameters layoutParameters)
-
-