try {
StringAttribute colorAttr = (StringAttribute) (object
.getAttribute("_color", StringAttribute.class));
if (colorAttr != null) {
String color = colorAttr.getExpression();
AnimationRenderer animationRenderer = new AnimationRenderer(
SVGUtilities.getColor(color));
animationRenderer.renderSelected(result);
}
} catch (IllegalActionException e) {
// Ignore
}
// New way to specify a highlight color.
try {
ColorAttribute highlightAttribute = (ColorAttribute) (object
.getAttribute("_highlightColor", ColorAttribute.class));
if (highlightAttribute != null
&& !highlightAttribute.getExpression().trim()
.equals("")) {
Color color = highlightAttribute.asColor();
AnimationRenderer animationRenderer = new AnimationRenderer(
color);
animationRenderer.renderSelected(result);
}
} catch (IllegalActionException e) {
// Ignore.
}
try {