-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issue 86 VoltageLevelLayoutFactory customization #90
Conversation
e6a53a1
to
9c8273e
Compare
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/nad/NetworkAreaDiagramController.java
Outdated
Show resolved
Hide resolved
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/VoltageLevelLayoutFactoryBean.java
Outdated
Show resolved
Hide resolved
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/VoltageLevelLayoutFactoryBean.java
Outdated
Show resolved
Hide resolved
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/VoltageLevelLayoutFactoryBean.java
Outdated
Show resolved
Hide resolved
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/VoltageLevelLayoutFactoryBean.java
Outdated
Show resolved
Hide resolved
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/PositionVoltageLevelLayoutBean.java
Outdated
Show resolved
Hide resolved
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/PositionVoltageLevelLayoutBean.java
Outdated
Show resolved
Hide resolved
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/SingleLineDiagramModel.java
Outdated
Show resolved
Hide resolved
...ram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/SingleLineDiagramViewController.java
Outdated
Show resolved
Hide resolved
9c8273e
to
666db86
Compare
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.
Nice, even simpler! 👍 Just a couple of minor comments
<ComboBox fx:id="voltageLevelLayoutComboBox"/> | ||
<CheckBox fx:id="stackFeedersCheckBox" text="Stack feeders"/> | ||
<EnumChoiceBox enumType="com.powsybl.diagram.viewer.sld.SingleLineDiagramModel$VoltageLevelLayoutFactoryType" fx:id="voltageLevelLayoutComboBox" initialValue="SMART"/> | ||
<CheckBox fx:id="stackFeedersCheckBox" text="Stack feeders" selected="true"/> |
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.
there's also removeUnnecessaryFictitiousNodes and substituteSingularFictitiousByFeederNode which are supposed to be true by default
@Override | ||
public String toString() { | ||
return switch (this) { | ||
case SMART -> "Smart"; |
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.
Maybe "'Smart' choice"
, to highlight the choice behind? because the SmartSelector chooses position with extensions if the vl contains at least one position extension, if not it chooses cgmes diagram layout if there's at least one cgmes extension, if not it chooses clustering.
Signed-off-by: Thomas ADAM <[email protected]>
Signed-off-by: Thomas ADAM <[email protected]>
Signed-off-by: Thomas ADAM <[email protected]>
Signed-off-by: Thomas ADAM <[email protected]>
Signed-off-by: Thomas ADAM <[email protected]>
Signed-off-by: Sophie Frasnedo <[email protected]>
Signed-off-by: Thomas ADAM <[email protected]>
Signed-off-by: Thomas ADAM <[email protected]>
7c3e873
to
efaae20
Compare
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
'Fixes #86'
Other information:
Need issue #85 to be merged before this PR merge