예제 #1
0
 public void dispose() {
   parent.remove(movePoint);
   end.dispose();
   end = null;
   start.dispose();
   start = null;
   movePoint.dispose();
   movePoint = null;
 }
예제 #2
0
  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);
  }
예제 #3
0
  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);
  }