Example #1
0
 public synchronized void update(final AbstractShape shape) {
   Rectangle2D bounds = shape.getPath().getBounds();
   panel.reset((int) bounds.getWidth(), (int) bounds.getHeight());
   panel.display(shape);
   Input.waitForSpace();
 }
Example #2
0
 public void prepare() {
   panel.setVisible(true);
 }