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
Simonstrator
PeerfactSim.KOM
Commits
42cba474
Commit
42cba474
authored
Oct 04, 2016
by
Björn Richerzhagen
Browse files
Re-enabled Legend in NodeInfoVis
parent
44d3c530
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/visualization/world/NodeInfoComponentVis.java
View file @
42cba474
...
...
@@ -94,8 +94,13 @@ public class NodeInfoComponentVis extends JComponent
Graphics2D
g2
=
(
Graphics2D
)
g
;
g2
.
setRenderingHint
(
RenderingHints
.
KEY_ANTIALIASING
,
RenderingHints
.
VALUE_ANTIALIAS_ON
);
boolean
first
=
true
;
for
(
NodeVis
vis
:
nodes
)
{
vis
.
draw
(
g2
);
if
(
first
)
{
first
=
false
;
vis
.
drawLegend
(
g2
);
}
}
}
...
...
@@ -168,6 +173,9 @@ public class NodeInfoComponentVis extends JComponent
int
radius
=
4
;
for
(
int
dim
=
0
;
dim
<
dimensions
.
length
;
dim
++)
{
radius
+=
2
;
if
(!
activeLayers
[
dim
])
{
continue
;
}
g2
.
setColor
(
Color
.
DARK_GRAY
);
g2
.
drawOval
(
10
,
20
*
(
dim
+
1
)
-
10
,
radius
*
2
,
radius
*
2
);
g2
.
drawString
(
dimensions
[
dim
],
30
,
20
*
(
dim
+
1
));
...
...
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