/** Internal parse method - made protected for unit testing */
protected Halo parseHalo(Node root) {
if (LOGGER.isLoggable(Level.FINEST)) {
LOGGER.finest("parsing halo");
}
Halo halo = factory.createHalo(
factory.createFill(ff.literal("#FFFFFF")), ff.literal(1.0));
NodeList children = root.getChildNodes();
final int length = children.getLength();
for (int i = 0; i < length; i++) {
Node child = children.item(i);
if ((child == null) || (child.getNodeType() != Node.ELEMENT_NODE)) {
continue;
}
String childName = child.getLocalName();
if (childName == null) {
childName = child.getNodeName();
}
if (childName.equalsIgnoreCase(fillSt)) {
halo.setFill(parseFill(child));
} else if (childName.equalsIgnoreCase("Radius")) {
halo.setRadius(parseCssParameter(child));
}
}
return halo;