Hide the 3rd control point for components that do not need it (Trace,

Jumper, Line)
This commit is contained in:
bancika
2020-03-22 19:40:31 +01:00
parent 12f58e60f9
commit 4da2539324
2 changed files with 6 additions and 2 deletions
@@ -471,7 +471,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
* @return shape that represents component body. Shape should not be transformed and should be
* referenced to (0, 0).
*/
protected abstract Shape getBodyShape();
protected abstract Shape getBodyShape();
/**
* Controls how component shape should be placed relative to start and end point.
@@ -516,7 +516,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
@Override
public int getControlPointCount() {
return getPoints().length;
return getPoints().length - (getMoveLabel() ? 0 : 1);
}
@Override