Example #1
0
 @Override
 public void invalidate() {
   super.invalidate();
   cachedTextShape = null;
   cachedBounds = null;
   cachedDrawingArea = null;
 }
Example #2
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);
 }