diff --git a/diylc/diylc-library/src/org/diylc/components/connectivity/Line.java b/diylc/diylc-library/src/org/diylc/components/connectivity/Line.java index 31cca983..d787fe85 100644 --- a/diylc/diylc-library/src/org/diylc/components/connectivity/Line.java +++ b/diylc/diylc-library/src/org/diylc/components/connectivity/Line.java @@ -103,6 +103,7 @@ public class Line extends AbstractLeadedComponent { g2d.fill(getArrow()); g2d.setTransform(oldTx); + // make the line slightly shorter so line end doesn't overlap with the arrow double distance = distance(startPoint, endPoint); interpolate(startPoint, endPoint, getArrowSize().convertToPixels() * 0.9 / distance, startPoint); } @@ -116,6 +117,7 @@ public class Line extends AbstractLeadedComponent { g2d.fill(getArrow()); g2d.setTransform(oldTx); + // make the line slightly shorter so line end doesn't overlap with the arrow double distance = distance(startPoint, endPoint); interpolate(endPoint, startPoint, getArrowSize().convertToPixels() * 0.9 / distance, endPoint); } diff --git a/diylc/diylc-swing/update.xml b/diylc/diylc-swing/update.xml index 4ec68e6c..5dfde7e9 100644 --- a/diylc/diylc-swing/update.xml +++ b/diylc/diylc-swing/update.xml @@ -2207,7 +2207,7 @@ - NEW_FEATURES + NEW_FEATURE Added optional arrow to the "Line" component together with configurable thickness