-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to customize node infos from LabelProvider #638
Conversation
Signed-off-by: LE SAULNIER Kevin <[email protected]>
Signed-off-by: LE SAULNIER Kevin <[email protected]>
...e-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/LabelProvider.java
Outdated
Show resolved
Hide resolved
...diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/DefaultLabelProvider.java
Outdated
Show resolved
Hide resolved
...e-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/LabelProvider.java
Outdated
Show resolved
Hide resolved
Signed-off-by: LE SAULNIER Kevin <[email protected]>
Signed-off-by: LE SAULNIER Kevin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work! I left some remarks and some questions too!
single-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/NodeInfo.java
Outdated
Show resolved
Hide resolved
...ine-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/DefaultSVGWriter.java
Show resolved
Hide resolved
...ine-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/DefaultSVGWriter.java
Outdated
Show resolved
Hide resolved
...ine-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/DefaultSVGWriter.java
Outdated
Show resolved
Hide resolved
Signed-off-by: LE SAULNIER Kevin <[email protected]>
…powsybl-diagram into labelprovider-nodeinfos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost done! just still some node/electricalNode references. In SvgParameters also, we'd better rename the parameter addNodesInfos
to busesLegendAdded
...ine-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/DefaultSVGWriter.java
Outdated
Show resolved
Hide resolved
...e-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/LabelProvider.java
Outdated
Show resolved
Hide resolved
...e-line-diagram/single-line-diagram-core/src/main/resources/ConvergenceLibrary/components.css
Outdated
Show resolved
Hide resolved
...m/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/styles/StyleClassConstants.java
Outdated
Show resolved
Hide resolved
...ine-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/DefaultSVGWriter.java
Outdated
Show resolved
Hide resolved
...ine-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/DefaultSVGWriter.java
Outdated
Show resolved
Hide resolved
Signed-off-by: LE SAULNIER Kevin <[email protected]>
Signed-off-by: LE SAULNIER Kevin <[email protected]>
...e-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/GraphMetadata.java
Outdated
Show resolved
Hide resolved
And you also forgot in previous comment
|
Signed-off-by: LE SAULNIER Kevin <[email protected]>
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
Feature
What is the current behavior?
Node legend can not be customized with a custom LabelProvider
What is the new behavior (if this is a feature change)?
Node legend can be customized with a custom LabelProvider
Does this PR introduce a breaking change or deprecate an API?
Classes which customize LabelProvider for node infos labels will need to be fixed to match the method "getElectricalNodesInfos" new signature.
"getElectricalNodesInfos" has also been renamed to "getNodesInfos"