mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Hide the 3rd control point for components that do not need it (Trace,
Jumper, Line)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user