Commit f57732e6 authored by Lambert Patrick's avatar Lambert Patrick
Browse files

better disply of label

parent d41f31bd
......@@ -119,6 +119,7 @@ public class BasinNetworkObserverNEA extends ObserverListener implements Configu
public void valueChanged(ObservablesHandler arg0, Object arg1, long arg2) {
// update the label
String txt = Long.valueOf((time.getYear(pilot))).toString() + (" ") + time.getSeason(pilot).toString() + " - ";
label.setText(txt);
if (basinUnderMouse != null) {
......@@ -147,7 +148,8 @@ public class BasinNetworkObserverNEA extends ObserverListener implements Configu
String txt = (Long.valueOf(time.getYear(pilot))).toString() + (" ") + time.getSeason(pilot).toString() + " - ";
// identify the basin under the mouse position and enrich the label
// Basin basin;
basinUnderMouse = null;
for (Shape shape : shapeBasinMap.keySet()) {
if (shape.contains(x, y)) {
basinUnderMouse = shapeBasinMap.get(shape);
......
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