Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SimAquaLife
GR3D
Commits
f57732e6
Commit
f57732e6
authored
Apr 20, 2020
by
Lambert Patrick
Browse files
better disply of label
parent
d41f31bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/environment/BasinNetworkObserverNEA.java
View file @
f57732e6
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment