Package com.powsybl.sld.svg
Class BasicStyleProvider
- java.lang.Object
-
- com.powsybl.sld.svg.BasicStyleProvider
-
- All Implemented Interfaces:
DiagramStyleProvider
- Direct Known Subclasses:
AbstractBaseVoltageDiagramStyleProvider
public class BasicStyleProvider extends Object implements DiagramStyleProvider
- Author:
- Giovanni Ferrari
, Franck Lecuyer
-
-
Constructor Summary
Constructors Constructor Description BasicStyleProvider()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.sld.svg.DiagramStyleProvider
getBusInfoStyle
-
-
-
-
Method Detail
-
getSvgWireStyles
public List<String> getSvgWireStyles(Graph graph, Edge edge, boolean highlightLineState)
- Specified by:
getSvgWireStyles
in interfaceDiagramStyleProvider
-
getEdgeStyle
protected Optional<String> getEdgeStyle(Graph graph, Edge edge)
Return the style if any applied to given edge- Parameters:
edge
- the edge on which the style if any is applied to- Returns:
- the style if any
-
getHighlightLineStateStyle
protected Optional<String> getHighlightLineStateStyle(Graph graph, Edge edge)
Return the highlight style if any to apply to given edge (ifLayoutParameters.isHighlightLineState()
)- Parameters:
edge
- the edge on which the style if any is applied to- Returns:
- the highlight style if any
-
getSvgNodeStyles
public List<String> getSvgNodeStyles(VoltageLevelGraph graph, Node node, ComponentLibrary componentLibrary, boolean showInternalNodes)
- Specified by:
getSvgNodeStyles
in interfaceDiagramStyleProvider
-
getSvgNodeDecoratorStyles
public List<String> getSvgNodeDecoratorStyles(DiagramLabelProvider.NodeDecorator nodeDecorator, Node node, ComponentLibrary componentLibrary)
- Specified by:
getSvgNodeDecoratorStyles
in interfaceDiagramStyleProvider
-
getZoneLineStyles
public List<String> getZoneLineStyles(BranchEdge edge, ComponentLibrary componentLibrary)
- Specified by:
getZoneLineStyles
in interfaceDiagramStyleProvider
-
getSvgNodeSubcomponentStyles
public List<String> getSvgNodeSubcomponentStyles(Graph graph, Node node, String subComponentName)
- Specified by:
getSvgNodeSubcomponentStyles
in interfaceDiagramStyleProvider
-
reset
public void reset()
- Specified by:
reset
in interfaceDiagramStyleProvider
-
getCssFilenames
public List<String> getCssFilenames()
- Specified by:
getCssFilenames
in interfaceDiagramStyleProvider
-
getCssUrls
public List<URL> getCssUrls()
- Specified by:
getCssUrls
in interfaceDiagramStyleProvider
-
getBusStyles
public List<String> getBusStyles(String busId, VoltageLevelGraph graph)
- Specified by:
getBusStyles
in interfaceDiagramStyleProvider
-
-