Commit 9ef56c03 authored by Julian Zobel's avatar Julian Zobel
Browse files

Error fix for color retrieval in the node info component viz. Now use red as...

Error fix for color retrieval in the node info component viz. Now use red as standard color if the available range of colors is exceeded.
parent 67ebbf55
......@@ -218,12 +218,22 @@ implements VisualizationComponent {
float hue = i / (float) dimensionSize;
// colors[dim][i] = Color.getHSBColor(hue, hsbVals[1],
// hsbVals[2]);
colors[dim][i] = tuColors[i];
colors[dim][i] = getColor(i);
}
}
}
private Color getColor(int i) {
if(i < tuColors.length) {
return tuColors[i];
}
else {
return new Color(255, 0, 0);
}
}
/**
* Called on one of the nodes to draw global objects such as a legend.
* Called before draw.
......
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