예제 #1
0
 protected Rectangle randomRectangle() {
   return randomRectangle(ctx.getWorldBounds());
 }
예제 #2
0
 protected Point randomPoint() {
   final Rectangle WB = ctx.getWorldBounds();
   return ctx.makePoint(
       randomIntBetween((int) WB.getMinX(), (int) WB.getMaxX()),
       randomIntBetween((int) WB.getMinY(), (int) WB.getMaxY()));
 }