powsybl / powsybl-dev-tools

2 stars 1 forks source link

VoltageLevelLayoutFactory customization #86

Closed So-Fras closed 6 months ago

So-Fras commented 7 months ago

Describe the current behavior

The #81 PR left the code in a unsatisfactory state. As stated in the PR, the current state of the code is not completly satisfactory.

It was let this way until next release of powsybl-diagram (V4.1.0) (at least). That release is going to correct a bug in the new single-line diagram API so that VoltageLevelLayoutFactory customization will be possible again.

Describe the expected behavior

That correction should be reflected in powsybl-dev-tools. The VoltageLevelLayoutFactoryCreator should be built inside a VoltageLevelLayoutFactoryCreatorBean:

From the value of the combo box (that should not be transformed into a VoltageLevelLayoutFactory or a VoltageLevelLayoutFactoryCreator right away but be provided as a String or an Enum to the VoltageLevelLayotuFactoryCreatorBean)

And potentially from other parameters too (if "Auto extensions" or "Auto without extensions Clustering" has been selected)

Describe the steps

No response

Environment

No response

Relevant Log Output

No response

Extra Information

No response