Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
718994b4
Commit
718994b4
authored
Aug 18, 2020
by
Piotr Gawron
Browse files
usestadium shape for state
parent
fff5c5ab
Pipeline
#31334
passed with stage
in 12 minutes and 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
718994b4
...
...
@@ -8,8 +8,10 @@ minerva (15.1.0~beta.1) unstable; urgency=medium
*
Bug
fix
:
miriam
urls
in
new
format
(
like
:
https
://
identifiers
.
org
/
kegg
.
compound
:
197020
)
are
parsed
properly
for
all
know
identifier
types
(#
1359
)
*
Bug
fix
:
in
SBGN
-
like
view
protein
state
should
be
drawn
as
stadium
-
shape
(#
1357
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Mon
,
1
7
Aug
2020
1
6
:
00
:
00
+
0200
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Tue
,
1
8
Aug
2020
1
5
:
00
:
00
+
0200
minerva
(
15.1.0
~
beta
.0
)
unstable
;
urgency
=
medium
*
Small
improvement
:
annotations
are
exported
in
SBGN
extension
that
can
be
...
...
converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/element/species/ComplexSbgnConverter.java
View file @
718994b4
...
...
@@ -71,8 +71,9 @@ public class ComplexSbgnConverter extends ComplexConverter {
@Override
Shape
getStructuralStateShape
(
StructuralState
state
)
{
double
arcSize
=
Math
.
min
(
state
.
getWidth
(),
state
.
getHeight
())
;
return
new
RoundRectangle2D
.
Double
(
state
.
getPosition
().
getX
(),
state
.
getPosition
().
getY
(),
state
.
getWidth
(),
state
.
getHeight
(),
15
,
15
);
state
.
getHeight
(),
arcSize
,
arcSize
);
}
}
converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/element/species/ProteinSbgnConverter.java
View file @
718994b4
...
...
@@ -85,8 +85,9 @@ public class ProteinSbgnConverter extends ProteinConverter {
@Override
Shape
getStructuralStateShape
(
StructuralState
state
)
{
double
arcSize
=
Math
.
min
(
state
.
getWidth
(),
state
.
getHeight
());
return
new
RoundRectangle2D
.
Double
(
state
.
getPosition
().
getX
(),
state
.
getPosition
().
getY
(),
state
.
getWidth
(),
state
.
getHeight
(),
15
,
15
);
state
.
getHeight
(),
arcSize
,
arcSize
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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