|
|
|
@ -73,10 +73,10 @@ public class FormSpacingLineDrawer {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int startX = (int) nearestSides[0].getCenterPoint().getX(); |
|
|
|
|
int startY = (int) nearestSides[0].getCenterPoint().getY(); |
|
|
|
|
int endX = (int) nearestSides[0].getPerpendicularPoint(nearestSides[1].getParallelValue()).getX(); |
|
|
|
|
int endY = (int) nearestSides[0].getPerpendicularPoint(nearestSides[1].getParallelValue()).getY(); |
|
|
|
|
int startX = (int) nearestSides[0].getCenterPerpendicularLineStartPoint().getX(); |
|
|
|
|
int startY = (int) nearestSides[0].getCenterPerpendicularLineStartPoint().getY(); |
|
|
|
|
int endX = (int) nearestSides[0].getCenterPerpendicularLineEndPoint(nearestSides[1].getParallelValue()).getX(); |
|
|
|
|
int endY = (int) nearestSides[0].getCenterPerpendicularLineEndPoint(nearestSides[1].getParallelValue()).getY(); |
|
|
|
|
|
|
|
|
|
drawSpacingLine(g, startX, startY, endX, endY); |
|
|
|
|
drawSpacingText(g, String.valueOf(gap), (startX + endX) / 2, (startY + endY) / 2); |
|
|
|
|