Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
Icy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Metrics
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Bioimage Analysis
Icy
Commits
dbfd4857
Commit
dbfd4857
authored
Jan 19, 2021
by
Stéphane DALLONGEVILLE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.pasteur.fr/bia/icy
parents
4e10066f
78f3f629
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
src/main/java/icy/gui/component/AbstractRoisPanel.java
src/main/java/icy/gui/component/AbstractRoisPanel.java
+19
-2
No files found.
src/main/java/icy/gui/component/AbstractRoisPanel.java
View file @
dbfd4857
...
...
@@ -1480,7 +1480,7 @@ public abstract class AbstractRoisPanel extends ExternalizablePanel
final
Object
value
;
if
(
result
!=
null
)
value
=
results
.
formatValue
(
result
.
getValue
(),
id
);
value
=
results
.
formatValue
(
result
.
getValue
(),
id
,
false
);
else
value
=
null
;
...
...
@@ -1852,6 +1852,11 @@ public abstract class AbstractRoisPanel extends ExternalizablePanel
}
public
Object
formatValue
(
Object
value
,
String
id
)
{
return
formatValue
(
value
,
id
,
true
);
}
public
Object
formatValue
(
Object
value
,
String
id
,
boolean
truncateDouble
)
{
Object
result
=
value
;
...
...
@@ -1885,7 +1890,7 @@ public abstract class AbstractRoisPanel extends ExternalizablePanel
||
id
.
equals
(
ROIMassCenterTDescriptor
.
ID
)
||
id
.
equals
(
ROIMassCenterCDescriptor
.
ID
))
result
=
"ALL"
;
}
else
else
if
(
truncateDouble
)
{
// value not too large ?
if
(
Math
.
abs
(
doubleValue
)
<
10000000
)
...
...
@@ -1910,6 +1915,18 @@ public abstract class AbstractRoisPanel extends ExternalizablePanel
// format double value
result
=
Double
.
valueOf
(
MathUtil
.
roundSignificant
(
doubleValue
,
5
));
}
else
{
if
(
value
instanceof
Long
||
value
instanceof
Integer
||
value
instanceof
Short
||
value
instanceof
Byte
)
{
result
=
((
Number
)
value
).
longValue
();
}
else
{
result
=
doubleValue
;
}
}
}
return
result
;
...
...
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