Skip to content
Snippets Groups Projects
Commit 7b12dd7e authored by Simon Barner's avatar Simon Barner
Browse files

Style cleanup (no functional change)

parent d1d23cf3
No related branches found
No related tags found
No related merge requests found
AutoLayoutMenu.java cf107d91558170d09606487815ece0289e29511b GREEN
IAutoLayouter.java 0ae890f902070ccfcf379d67e9b90aa0970168e7 GREEN
KielerAutoLayouter.java 015ece59ccfc8d14201c09263c76f4ab90dcc0cb GREEN
KielerAutoLayouter.java e9874a92906bd0ef6ac8b3e61fd4135962fc97e4 GREEN
......@@ -132,8 +132,7 @@ public class KielerAutoLayouter implements IAutoLayouter {
/**
* Truncates a given {@code float} value and decreases the value until it is a multiple of the
* grid
* size.
* grid size.
*
* @param f
* {@code float} to process
......@@ -159,10 +158,11 @@ public class KielerAutoLayouter implements IAutoLayouter {
int rval = (int)f;
final int deviationFromGrid = rval % DEFAULT_GRID_SIZE;
if(deviationFromGrid > 0)
if(deviationFromGrid > 0) {
if(enlarge) {
rval += DEFAULT_GRID_SIZE;
}
}
rval -= deviationFromGrid;
return rval;
......@@ -393,8 +393,8 @@ public class KielerAutoLayouter implements IAutoLayouter {
/**
* Converts a given {@link IConnection} into a {@link KPort}, and registers it with the given
* {@link KNode} (representing the {@link IHierarchicElement} containing the {@link IConnector}
* ) and a {@link IConnector}-to- {@link KPort} map.
* {@link KNode} (representing the {@link IHierarchicElement} containing the {@link IConnector})
* and a {@link IConnector}-to- {@link KPort} map.
*
* @param connector
* {@link IConnector} to be converted to {@link KPort}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment