mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Hide the 3rd control point for components that do not need it (Trace,
Jumper, Line)
This commit is contained in:
@@ -2714,6 +2714,10 @@
|
|||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Upgraded to Java 8</description>
|
<description>Upgraded to Java 8</description>
|
||||||
</org.diylc.appframework.update.Change>
|
</org.diylc.appframework.update.Change>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>BUG_FIX</changeType>
|
||||||
|
<description>Hide the 3rd control point for components that do not need it (Trace, Jumper, Line)</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
</changes>
|
</changes>
|
||||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||||
</org.diylc.appframework.update.Version>
|
</org.diylc.appframework.update.Version>
|
||||||
|
|||||||
@@ -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
|
* @return shape that represents component body. Shape should not be transformed and should be
|
||||||
* referenced to (0, 0).
|
* 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.
|
* 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
|
@Override
|
||||||
public int getControlPointCount() {
|
public int getControlPointCount() {
|
||||||
return getPoints().length;
|
return getPoints().length - (getMoveLabel() ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user