private Color color;
private Double stroke;
private transient Color dynamicColor = null;
+ private transient Color eventColor = null;
// Dimensions for shut-off valve symbol
private static final double left = -0.25;
}
g2d.setColor(dynamicColor != null ? dynamicColor : color);
+ g2d.setColor(eventColor != null ? eventColor : g2d.getColor());
g2d.setStroke(bs);
g2d.draw(path);
this.dynamicColor = color;
}
+ @PropertySetter(value = "eventColor")
+ public void setEventColor(Color color) {
+ this.eventColor = color;
+ }
+
@PropertySetter(value = "arrowLength")
public void setArrowLength(Double length) {
// find if there is a child deferred arrow node