Package com.powsybl.sld.util
Class TopologicalStyleProvider
- java.lang.Object
-
- com.powsybl.sld.svg.DefaultDiagramStyleProvider
-
- com.powsybl.sld.util.AbstractBaseVoltageDiagramStyleProvider
-
- com.powsybl.sld.util.TopologicalStyleProvider
-
- All Implemented Interfaces:
DiagramStyleProvider
public class TopologicalStyleProvider extends AbstractBaseVoltageDiagramStyleProvider
- Author:
- Giovanni Ferrari
, Franck Lecuyer , Florian Dupuy
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.util.AbstractBaseVoltageDiagramStyleProvider
BASE_VOLTAGE_PROFILE, baseVoltagesConfig, network
-
-
Constructor Summary
Constructors Constructor Description TopologicalStyleProvider(com.powsybl.commons.config.BaseVoltagesConfig baseVoltagesConfig, com.powsybl.iidm.network.Network network)
TopologicalStyleProvider(com.powsybl.iidm.network.Network network)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getCssFilenames()
protected Optional<String>
getEdgeStyle(Edge edge)
Return the style if any applied to given edgeOptional<String>
getVoltageLevelNodeStyle(VoltageLevelInfos voltageLevelInfos, Node node)
Returns the voltage level style if any to apply to the given nodevoid
reset()
-
Methods inherited from class com.powsybl.sld.util.AbstractBaseVoltageDiagramStyleProvider
connectionStatus, getBusStyles, getHighlightLineStateStyle, getSvgNodeStyles, getSvgNodeSubcomponentStyles
-
Methods inherited from class com.powsybl.sld.svg.DefaultDiagramStyleProvider
getCssUrls, getSvgNodeDecoratorStyles, getSvgWireStyles, getZoneLineStyles, isConstantColor, isConstantColor
-
-
-
-
Method Detail
-
getEdgeStyle
protected Optional<String> getEdgeStyle(Edge edge)
Description copied from class:DefaultDiagramStyleProvider
Return the style if any applied to given edge- Overrides:
getEdgeStyle
in classAbstractBaseVoltageDiagramStyleProvider
- Parameters:
edge
- the edge on which the style if any is applied to- Returns:
- the style if any
-
reset
public void reset()
- Specified by:
reset
in interfaceDiagramStyleProvider
- Overrides:
reset
in classDefaultDiagramStyleProvider
-
getVoltageLevelNodeStyle
public Optional<String> getVoltageLevelNodeStyle(VoltageLevelInfos voltageLevelInfos, Node node)
Description copied from class:AbstractBaseVoltageDiagramStyleProvider
Returns the voltage level style if any to apply to the given node- Overrides:
getVoltageLevelNodeStyle
in classAbstractBaseVoltageDiagramStyleProvider
- Parameters:
voltageLevelInfos
- the VoltageLevelInfos related to the given nodenode
- the node on which the style if any is applied to- Returns:
- the voltage level style if any
-
getCssFilenames
public List<String> getCssFilenames()
- Specified by:
getCssFilenames
in interfaceDiagramStyleProvider
- Overrides:
getCssFilenames
in classAbstractBaseVoltageDiagramStyleProvider
-
-