public static Line parallelLine(Line current, CenterPosition centerPosition, int distanceOfView) {
        Position a = current.getA();
        Position b = current.getB();

        int distanceX = distanceOfView;
        int distanceY = distanceOfView;

        if (CenterPosition.DOWN.equals(centerPosition))
            distanceY = (-1) * distanceY;

        if (CenterPosition.UP.equals(centerPosition))
            distanceX = (-1) * distanceX;

        if (a.getY() < b.getY())
            distanceX = (-1) * distanceX;

        if (a.getX() < b.getX())
            distanceX = (-1) * distanceX;

        Position newA = new Position(a.getX() + distanceX, a.getY() + distanceY, a.getPositionType());
        Position newB = new Position(b.getX() + distanceX, b.getY() + distanceY, b.getPositionType());

        return new Line(newA, newB);
    }