Exemplo n.º 1
0
/*  Creates percolation cluster with probability p and computes mass distribution */
Exemplo n.º 2
0
 /**
  * Renders (draws) the panel immediately.
  *
  * <p>Unlike repaint, the render method is draws the panel within the calling method's thread.
  * This method is called automatically if the frame is animated.
  */
 public void render() {
   if (drawingPanel != null) {
     drawingPanel.render(); // simulations should render their panels at every time step
   }
 }