break;
}
}
if (!value.isEmpty()) {
EdgeProperties prop = edgePropertiesAttributes.get(fore);
if (prop != null) {
try {
switch (prop) {
case WEIGHT:
edge.setWeight(parseFloat(value));
break;
case LABEL:
edge.setLabel(value);
break;
case ID:
edge.setId(value);
break;
case R:
if (edge.getColor() == null) {
edge.setColor(Integer.parseInt(value), 0, 0);
} else {
edge.setColor(Integer.parseInt(value), edge.getColor().getGreen(), edge.getColor().getBlue());
}
break;
case G:
if (edge.getColor() == null) {
edge.setColor(0, Integer.parseInt(value), 0);
} else {
edge.setColor(edge.getColor().getRed(), Integer.parseInt(value), edge.getColor().getBlue());
}
break;
case B:
if (edge.getColor() == null) {
edge.setColor(0, 0, Integer.parseInt(value));
} else {
edge.setColor(edge.getColor().getRed(), edge.getColor().getGreen(), Integer.parseInt(value));
}
break;
}
} catch (Exception e) {
report.logIssue(new Issue(NbBundle.getMessage(ImporterGraphML.class, "importerGraphML_error_datavalue", fore, edge, prop.toString()), Issue.Level.SEVERE));
}
return;
}
//Data attribute value