/*
   * (non-Javadoc)
   *
   * @see com.tarantulus.archimedes.factories.TwoPointFactory#drawVisualHelper(com.tarantulus.archimedes.model.writers.Writer,
   *      com.tarantulus.archimedes.model.Point,
   *      com.tarantulus.archimedes.model.Point)
   */
  @Override
  protected void drawVisualHelper(Point start, Point end) {

    try {
      InfiniteLine xline = new InfiniteLine(start.getX(), start.getY(), end.getX(), end.getY());
      xline.draw(br.org.archimedes.Utils.getOpenGLWrapper());
    } catch (InvalidArgumentException e) {
      // Draw nothing
    }
  }
  private Element generateSemiline(ComparablePoint clickPoint, Point initialPoint)
      throws NullArgumentException, InvalidArgumentException {

    Vector director = new Vector(clickPoint.getPoint(), initialPoint);
    Point endPoint =
        new Point(initialPoint.getX() + director.getX(), initialPoint.getY() + director.getY());

    return new Semiline(initialPoint, endPoint);
  }