protected void updateAnimatedValue(AnimatableValue val) {
if (val == null) {
hasAnimVal = false;
} else {
hasAnimVal = true;
AnimatableRectValue animRect = (AnimatableRectValue) val;
if (animVal == null) {
animVal = new AnimSVGRect();
}
animVal.setAnimatedValue(animRect.getX(), animRect.getY(),
animRect.getWidth(), animRect.getHeight());
}
fireAnimatedAttributeListeners();
}