Similar Code Analysis Report

This document contains the results of performing a similar code analysis of projectscellsociety_team10 at 9/29/16 2:19 PM.

Table of contents

number of lines number of occurrences names of resources
7..5 2 CA
9..8 2 Graphics
6 2 Simulation, WaTor
3 2 Schelling
20..7 3 Graphics
6 2 ShapeCreator, Graphics
3 2 Graph

List of matches

 

7..20 lines in Graphics (x3)


Graphics
/cellsociety_team10/src/cellsociety_team10/Graphics.java
Graphics
/cellsociety_team10/src/cellsociety_team10/Graphics.java
Graphics
/cellsociety_team10/src/cellsociety_team10/Graphics.java
   private Button createPlayButton(Timeline animation, double x, double y, Group root) { 
      //System.out.println("getting resources: "+myResources.getString("play")); 
      Button button = createButton(myResources.getString("play"), x, y, root); 
      button.setOnAction((ActionEvent e) -> { 
         animation.play(); 
      }); 
      return button; 
   } 
   private Button createPauseButton(Timeline animation, double x, double y, Group root) { 
      Button button = createButton(myResources.getString("pause"), x, y, root); // add to property file 
      button.setOnAction((ActionEvent e) -> { 
         animation.pause(); 
      }); 
      return button; 
   } 
   private Button createStepButton(Timeline animation, double x, double y, Group root) { 
      Button button = createButton(myResources.getString("stepThrough"), x, y, root); // add to property file 
      button.setOnAction((ActionEvent e) -> { 
         //System.out.println("Stepping through animation"); 
         animation.play(); 
         new java.util.Timer().schedule(new java.util.TimerTask() { 
            @Override 
            public void run() { 
               Platform.runLater(new Runnable() { 
                  public void run() { 
                     //System.out.println("Pausing game"); 
                     animation.pause(); 
                  } 
               }); 
            } 
         },400*ca.getFramesPerSecond()); 
 
      }); 
      return button; 
   } 
9/29/16 2:19 PM Powered by CodePro Server