Example #1
0
 @Override
 public <T> void setAttribute(AttributeKey<T> key, T newValue) {
   if (key.equals(SVGAttributeKeys.TRANSFORM)
       || key.equals(SVGAttributeKeys.FONT_FACE)
       || key.equals(SVGAttributeKeys.FONT_BOLD)
       || key.equals(SVGAttributeKeys.FONT_ITALIC)
       || key.equals(SVGAttributeKeys.FONT_SIZE)) {
     invalidate();
   }
   super.setAttribute(key, newValue);
 }