Ejemplo n.º 1
0
 protected Rectangle randomRectangle() {
   return randomRectangle(ctx.getWorldBounds());
 }
Ejemplo n.º 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()));
 }