src/gui/heatmap/ControlPane.java
private void applyHeatMap(HeatMap map){
        if (map == null) {
            return;
        }
        for (int y = 0; y < world.yDimension; y++) {
            for (int x = 0; x < world.xDimension; x++) {
                world.grid[x][y].crimeCount = map.map[x][y];
            }
        }
        updateUI(heatMaps.get(heatMaps.size() - 1).max);
    }
/**
     * Sets the crime count of every cell to match the
     * provided heatmap.
     */
Sets the crime count of every cell to match the
provided heatmap.
Sets the crime count of every cell to match the provided heatmap .
private void applyHeatMap(HeatMap map){
        if (map == null) {
            return;
        }
        for (int y = 0; y < world.yDimension; y++) {
            for (int x = 0; x < world.xDimension; x++) {
                world.grid[x][y].crimeCount = map.map[x][y];
            }
        }
        updateUI(heatMaps.get(heatMaps.size() - 1).max);
    }
private void applyHeatMap ( HeatMap map ) { if ( map == null ) { return ; } for ( int y = 0 ; y < world . yDimension ; y ++ ) { for ( int x = 0 ; x < world . xDimension ; x ++ ) { world . grid [ x ] [ y ] . crimeCount = map . map [ x ] [ y ] ; } } updateUI ( heatMaps . get ( heatMaps . size ( ) - 1 ) . max ) ; }
Sets the crime count of every cell to match the
 provided heatmap.
Sets the crime count of every cell to match the provided heatmap .