コード例 #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()));
 }