Commit dbeedb58 authored by patrick.lambert's avatar patrick.lambert
Browse files

fill only river and inshore bassin only when presence

parent 80ba2ab9
......@@ -314,25 +314,27 @@ public class RIOBasinNetworkObserverPresence extends ObserverListener implements
}
g2d.draw(displayShape);
int presence = -1;
if (presences.get(period).get(basinName) != null)
presence = presences.get(period).get(basinName);
else
System.out.println(basinName + " is not present in the presence file");
/*
* if (presence == 1) { g.setColor(Color.RED); } else if (presence == 0) { g.setColor(Color.WHITE); }
* else g.setColor(Color.LIGHT_GRAY);
*/
if (presence > 0)
g.setColor(colorScaleEnum.getScale().getColor(presence));
else if (presence == 0)
g.setColor(Color.WHITE);
else
g.setColor(Color.GRAY);
g2d.fill(displayShape);
if (basin instanceof RiverBasin | basin instanceof InshoreBasin) {
int presence = -1;
if (presences.get(period).get(basinName) != null)
presence = presences.get(period).get(basinName);
else
System.out.println(basinName + " is not present in the presence file");
/*
* if (presence == 1) { g.setColor(Color.RED); } else if (presence == 0) { g.setColor(Color.WHITE);
* } else g.setColor(Color.LIGHT_GRAY);
*/
if (presence > 0)
g.setColor(colorScaleEnum.getScale().getColor(presence));
else if (presence == 0)
g.setColor(Color.WHITE);
else
g.setColor(Color.GRAY);
g2d.fill(displayShape);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment