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

map color as private field

parent 5fbe2bd5
......@@ -6,6 +6,7 @@
<environment.RIOBasinNetworkObserverWithContinent>
<title>North East America</title>
<threshold>1000000</threshold>
<colorScaleEnum>RedsScale</colorScaleEnum>
</environment.RIOBasinNetworkObserverWithContinent>
<environment.RIOBasinNetworkObserverPresence>
......
......@@ -41,7 +41,7 @@ public class RIOBasinNetworkObserverWithContinent extends ObserverListener
private double threshold = 13000000.;
@Description(name = "Color scale", tooltip = "")
public ColorScaleEnum colorScaleEnum = ColorScaleEnum.RedsScale;
private ColorScaleEnum colorScaleEnum = ColorScaleEnum.RedsScale;
// a basin network
private transient RIOBasinNetworkWithContinent bn;
......@@ -299,7 +299,9 @@ public class RIOBasinNetworkObserverWithContinent extends ObserverListener
for (DiadromousFishGroup group : basin.getGroups()) {
abundance += basin.getEffective(group);
}
// System.out.println(basin.getName()+ "-->"+abundance);
if (basin instanceof RiverBasin & abundance > 0)
System.out.println(" " + basin.getName() + " (" + basin.getClass().getSimpleName() + ") -->" + abundance);
if (abundance == 0.) {
g.setColor(Color.WHITE);
} else {
......
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