|
|
|
@ -8,14 +8,14 @@ public class FormHorizontalParallelLine extends AbstractFormParallelLine {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Point getCenterPerpendicularLineStartPoint() { |
|
|
|
|
public Point getStartPointOnVerticalCenterLine() { |
|
|
|
|
Point point = new Point(); |
|
|
|
|
point.setLocation(getCenterPosition(), parallelValue); |
|
|
|
|
return point; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Point getCenterPerpendicularLineEndPoint(int parallelValue) { |
|
|
|
|
public Point getEndPointOnVerticalCenterLine(int parallelValue) { |
|
|
|
|
Point point = new Point(); |
|
|
|
|
point.setLocation(getCenterPosition(), parallelValue); |
|
|
|
|
return point; |
|
|
|
@ -24,9 +24,9 @@ public class FormHorizontalParallelLine extends AbstractFormParallelLine {
|
|
|
|
|
@Override |
|
|
|
|
public Point getExtendedLineStartPoint(AbstractFormParallelLine parallelLine) { |
|
|
|
|
Point point = new Point(); |
|
|
|
|
if (isBeforeParallelLine(parallelLine)) { |
|
|
|
|
if (isVerticalCenterLineBeforeTheParallelLine(parallelLine)) { |
|
|
|
|
point.setLocation(parallelLine.getStartPosition(), parallelLine.getParallelValue()); |
|
|
|
|
} else if (isBehindParallelLine(parallelLine)) { |
|
|
|
|
} else if (isVerticalCenterLineBehindTheParallelLine(parallelLine)) { |
|
|
|
|
point.setLocation(parallelLine.getEndPosition(), parallelLine.getParallelValue()); |
|
|
|
|
} |
|
|
|
|
return point; |
|
|
|
@ -35,9 +35,9 @@ public class FormHorizontalParallelLine extends AbstractFormParallelLine {
|
|
|
|
|
@Override |
|
|
|
|
public Point getExtendedLineEndPoint(AbstractFormParallelLine parallelLine) { |
|
|
|
|
Point point = new Point(); |
|
|
|
|
if (isBeforeParallelLine(parallelLine)) { |
|
|
|
|
if (isVerticalCenterLineBeforeTheParallelLine(parallelLine)) { |
|
|
|
|
point.setLocation(getStartPosition(), parallelLine.getParallelValue()); |
|
|
|
|
} else if (isBehindParallelLine(parallelLine)) { |
|
|
|
|
} else if (isVerticalCenterLineBehindTheParallelLine(parallelLine)) { |
|
|
|
|
point.setLocation(getEndPosition(), parallelLine.getParallelValue()); |
|
|
|
|
} |
|
|
|
|
return point; |
|
|
|
|