}
connector.setToolTipText(tipText);
try {
// FIXME: This isn't quite right for relation groups.
StringAttribute colorAttribute = (StringAttribute) (relation
.getAttribute("_color", StringAttribute.class));
if (colorAttribute != null) {
String color = colorAttribute.getExpression();
if (color != null && !color.trim().equals("")) {
connector.setStrokePaint(SVGUtilities
.getColor(color));
}
}
} catch (IllegalActionException e) {
// Ignore;
}
try {
// FIXME: This isn't quite right for relation groups.
ColorAttribute colorAttribute = (ColorAttribute) (relation
.getAttribute("color", ColorAttribute.class));
if (colorAttribute != null) {
Color color = colorAttribute.asColor();
connector.setStrokePaint(color);
}
} catch (IllegalActionException e) {
// Ignore;
}
StringAttribute _explAttr = (StringAttribute) (relation
.getAttribute("_explanation"));
if (_explAttr != null) {
connector.setToolTipText(_explAttr.getExpression());
}
// NOTE: The preferences mechanism may set this.
Token radiusValue = PtolemyPreferences.preferenceValue(
relation, "_linkBendRadius");