Minor changes to display message for wind.

This commit is contained in:
Nidhi Sawhney committed 2012-05-10 13:38:06 +02:00
1 parent 5067d5567a
commit 5b410c9d5a
2 files changed
+4 -4

No files matched your search

@@ -45,9 +45,9 @@ public abstract class FullCanvasOverlay extends CanvasOverlay {
/*
* Reset the canvas only if the pixel coordinates need to be recomputed
*/
if (force) {
//if (force) {
setCanvasSettings();
}
//}
}
/**
@@ -55,11 +55,11 @@ public class PathCanvasOverlay extends WindFieldCanvasOverlay {
}
if (displayWindAlongPath) {
int width = (int) Math.min(2, Math.round(windDTO.trueWindSpeedInMetersPerSecond));
int width = (int) Math.max(1, Math.min(2, Math.round(windDTO.trueWindSpeedInMetersPerSecond)));
DegreeBearingImpl dbi = new DegreeBearingImpl(windDTO.trueWindBearingDeg);
drawArrow(windDTO, dbi.getRadians(), length, width, ++index);
if (windDTONext != null) {
width = (int) Math.min(2, Math.round(windDTO.trueWindSpeedInMetersPerSecond));
width = (int) Math.max(1, Math.min(2, Math.round(windDTO.trueWindSpeedInMetersPerSecond)));
dbi = new DegreeBearingImpl(windDTO.trueWindBearingDeg);
drawArrow(windDTONext, dbi.getRadians(), length, width, ++index);
}