Commit 42cba474 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Re-enabled Legend in NodeInfoVis

parent 44d3c530
......@@ -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));
......
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