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