iterator = nodes.iterator();
while (iterator.hasNext()) {
iterator.next().getNodeData().getAttributes().setValue(testCol.getIndex(), Boolean.TRUE);
}
PartitionController partitionController1 = Lookup.getDefault().lookup(PartitionController.class);
Partition p1 = partitionController1.buildPartition(attributeModel.getNodeTable().getColumn("isEnriched"), H);
ArrayList<Color> colors = new ArrayList<Color>();
colors.add(Color.CYAN);
colors.add(Color.RED);
HashMap<Object, Color> map = new HashMap<Object, Color>();
int i = 0;
for (Part p : p1.getParts()) {
map.put(p.getValue(), colors.get(i));
i++;
}
for (Part<Node> part : p1.getParts()) {
Color color = map.get(part.getValue());
part.setColor(color);
float r = color.getRed() / 255f;
float g = color.getGreen() / 255f;
float b = color.getBlue() / 255f;