예제 #1
0
/*  Creates percolation cluster with probability p and computes mass distribution */
예제 #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
   }
 }