|
|
@ -24,10 +24,10 @@ 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 (isVerticalCenterLineBeforeTheParallelLine(parallelLine)) { |
|
|
|
if (parallelLine.isVerticalCenterLineBeforeTheParallelLine(this)) { |
|
|
|
point.setLocation(parallelLine.getStartPosition(), parallelLine.getParallelValue()); |
|
|
|
point.setLocation(getStartPosition(), getParallelValue()); |
|
|
|
} else if (isVerticalCenterLineBehindTheParallelLine(parallelLine)) { |
|
|
|
} else if (parallelLine.isVerticalCenterLineBehindTheParallelLine(this)) { |
|
|
|
point.setLocation(parallelLine.getEndPosition(), parallelLine.getParallelValue()); |
|
|
|
point.setLocation(getEndPosition(), getParallelValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
return point; |
|
|
|
return point; |
|
|
|
} |
|
|
|
} |
|
|
@ -35,10 +35,10 @@ 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 (isVerticalCenterLineBeforeTheParallelLine(parallelLine)) { |
|
|
|
if (parallelLine.isVerticalCenterLineBeforeTheParallelLine(this)) { |
|
|
|
point.setLocation(getStartPosition(), parallelLine.getParallelValue()); |
|
|
|
point.setLocation(parallelLine.getStartPosition(), getParallelValue()); |
|
|
|
} else if (isVerticalCenterLineBehindTheParallelLine(parallelLine)) { |
|
|
|
} else if (parallelLine.isVerticalCenterLineBehindTheParallelLine(this)) { |
|
|
|
point.setLocation(getEndPosition(), parallelLine.getParallelValue()); |
|
|
|
point.setLocation(parallelLine.getEndPosition(), getParallelValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
return point; |
|
|
|
return point; |
|
|
|
} |
|
|
|
} |
|
|
|