made fields private and final where possible

This commit is contained in:
Axel Uhl committed 2014-06-11 21:30:19 +02:00
1 parent 89f80b8bd6
commit f695dba506
1 file changed
+4 -18
@@ -25,14 +25,13 @@ import com.sap.sse.gwt.client.player.Timer;
*
*/
public class WindStreamletsCanvasOverlay extends FullCanvasOverlay implements TimeListenerWithStoppingCriteria {
/** The wind field that is to be displayed in the overlay */
protected WindFieldDTO windFieldDTO;
protected WindFieldGenParamsDTO windParams = null;
protected SimulatorMap simulatorMap;
private WindFieldDTO windFieldDTO;
private final WindFieldGenParamsDTO windParams;
private final SimulatorMap simulatorMap;
private boolean visible = false;
private Timer timer;
private final Timer timer;
private Date endDate;
private int nParticles;
@@ -43,17 +42,12 @@ public class WindStreamletsCanvasOverlay extends FullCanvasOverlay implements Ti
public WindStreamletsCanvasOverlay(SimulatorMap simulatorMap, int zIndex, final Timer timer,
final WindFieldGenParamsDTO windParams) {
super(simulatorMap.getMap(), zIndex);
this.simulatorMap = simulatorMap;
this.timer = timer;
this.windParams = windParams;
this.nParticles = this.simulatorMap.getMainPanel().particles;
windFieldDTO = null;
getCanvas().getElement().setId("swarm-display");
}
public WindFieldDTO getWindFieldDTO() {
@@ -293,12 +287,4 @@ public class WindStreamletsCanvasOverlay extends FullCanvasOverlay implements Ti
return false;
}
}
public void setTimer(final Timer timer) {
this.timer = timer;
}
public Timer getTimer() {
return timer;
}
}