コード例 #1
0
ファイル: ClusterApp.java プロジェクト: bozhink/Code-Chunks
/*  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
   }
 }