public void dispose() {
   parent.remove(movePoint);
   end.dispose();
   end = null;
   start.dispose();
   start = null;
   movePoint.dispose();
   movePoint = null;
 }
  protected void updateBezier() {
    Point startPoint = start.getPoint();
    Point endPoint = end.getPoint();
    Point middle = movePoint.getPoint();

    updateRange();

    this.curve.setCurve(
        startPoint.x, startPoint.y, middle.x, middle.y, middle.x, middle.y, endPoint.x, endPoint.y);
  }
  private void centerMovePoint2() {
    int x = getCenter(start.getPoint().x, end.getPoint().x);
    int y = getCenter(start.getPoint().y, end.getPoint().y);

    movePoint.setPosition(x, y);
  }