-
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
Represent subnetworks in network-area diagrams #669
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Giovanni Ferrari <[email protected]>
Signed-off-by: Giovanni Ferrari <[email protected]>
Signed-off-by: Giovanni Ferrari <[email protected]>
Thanks for the work! As discussed together:
|
Signed-off-by: Giovanni Ferrari <[email protected]>
Signed-off-by: Giovanni Ferrari <[email protected]>
Signed-off-by: Giovanni Ferrari <[email protected]>
Signed-off-by: Giovanni Ferrari <[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 the changes! I think the PR is in line with the code's "philosophy".
There is just a small typo in a name.
As for the unit test barrier, I think you should add tests to cover a few more lines and reach the 90%.
@@ -55,7 +55,7 @@ public class SvgParameters { | |||
private EdgeInfoEnum edgeInfoDisplayed = EdgeInfoEnum.ACTIVE_POWER; | |||
private double pstArrowHeadSize = 8; | |||
private String undefinedValueSymbol = ""; | |||
|
|||
private boolean highlightSubnetwors; |
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.
private boolean highlightSubnetwors; | |
private boolean highlightSubnetworks; |
@@ -491,4 +491,13 @@ public SvgParameters setUndefinedValueSymbol(String undefinedValueSymbol) { | |||
this.undefinedValueSymbol = undefinedValueSymbol; | |||
return this; | |||
} | |||
|
|||
public boolean isHighlightSubnetwors() { |
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.
public boolean isHighlightSubnetwors() { | |
public boolean isHighlightSubnetworks() { |
return highlightSubnetwors; | ||
} | ||
|
||
public SvgParameters setHighlightSubnetwors(boolean highlightSubnetwors) { |
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.
public SvgParameters setHighlightSubnetwors(boolean highlightSubnetwors) { | |
public SvgParameters setHighlightSubnetworks(boolean highlightSubnetworks) { |
} | ||
|
||
public SvgParameters setHighlightSubnetwors(boolean highlightSubnetwors) { | ||
this.highlightSubnetwors = highlightSubnetwors; |
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.
this.highlightSubnetwors = highlightSubnetwors; | |
this.highlightSubnetworks = highlightSubnetworks; |
@@ -103,18 +105,32 @@ private void writeSvg(Graph graph, OutputStream svgOs) { | |||
XMLStreamWriter writer = XmlUtil.initializeWriter(true, INDENT, svgOs); | |||
addSvgRoot(graph, writer); | |||
addStyle(writer); | |||
boolean higlightSubnetworks = this.svgParameters.isHighlightSubnetwors(); |
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.
boolean higlightSubnetworks = this.svgParameters.isHighlightSubnetwors(); | |
boolean higlightSubnetworks = this.svgParameters.isHighlightSubnetworks(); |
Signed-off-by: Giovanni Ferrari <[email protected]>
|
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Fixes #611
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: