Beispiel #1
0
 private UPath getSpecificFrontierForCloud(double width, double height) {
   final UPath path = new UPath();
   path.moveTo(0, 10);
   double x = 0;
   for (int i = 0; i < width - 9; i += 10) {
     path.cubicTo(0 + i, -3 + 10, 2 + i, -5 + 10, 5 + i, -5 + 10);
     path.cubicTo(8 + i, -5 + 10, 10 + i, -3 + 10, 10 + i, 0 + 10);
     x = i + 10;
   }
   double y = 0;
   for (int j = 10; j < height - 9; j += 10) {
     path.cubicTo(x + 3, 0 + j, x + 5, 2 + j, x + 5, 5 + j);
     path.cubicTo(x + 5, 8 + j, x + 3, 10 + j, x, 10 + j);
     y = j + 10;
   }
   for (int i = 0; i < width - 9; i += 10) {
     path.cubicTo(x - i, y + 3, x - 3 - i, y + 5, x - 5 - i, y + 5);
     path.cubicTo(x - 8 - i, y + 5, x - 10 - i, y + 3, x - 10 - i, y);
   }
   for (int j = 0; j < height - 9 - 10; j += 10) {
     path.cubicTo(-3, y - j, -5, y - 2 - j, -5, y - 5 - j);
     path.cubicTo(-5, y - 8 - j, -3, y - 10 - j, 0, y - 10 - j);
   }
   return path;
 }
Beispiel #2
0
 public void moveTo(Point2D pt) {
   moveTo(pt.getX(), pt.getY());
 }