protected void attrChanged() { super.attrChanged(); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (isSpecified() && !ry.isSpecified()) { ry.attrChanged(); } } };
/** * Called when the attribute has changed in some way. */ protected void attrChanged() { if (!changing && baseVal != null) { baseVal.invalidate(); } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { SVGLength base = getBaseVal(); return new AnimatableLengthValue (target, base.getUnitType(), base.getValueInSpecifiedUnits(), target.getPercentageInterpretation (getNamespaceURI(), getLocalName(), false)); }
float x = _x.getCheckedValue(); float y = _y.getCheckedValue(); float w = _width.getCheckedValue(); float h = _height.getCheckedValue();
if (textLength.isSpecified()) { if (inheritMap == null) { inheritMap = new HashMap(); Object value = new Float(textLength.getCheckedValue()); result.put (GVTAttributedCharacterIterator.TextAttribute.BBOX_WIDTH,
/** * <b>DOM</b>: Implements {@link SVGLength#getValueInSpecifiedUnits()}. */ public float getValueInSpecifiedUnits() { if (hasAnimVal) { return super.getValueInSpecifiedUnits(); } return getBaseVal().getValueInSpecifiedUnits(); }
/** * Called when an Attr node has been added. */ public void attrAdded(Attr node, String newv) { attrChanged(); }
AnimatedAttributeListener l = ((SVGOMDocument) ownerDocument).getAnimatedAttributeListener(); fx.addAnimatedAttributeListener(l); fy.addAnimatedAttributeListener(l);
/** * Updates an attribute value in this target. */ public void updateAttributeValue(String ns, String ln, AnimatableValue val) { if (ns == null) { if (ln.equals(SVG_RX_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (!ry.isSpecified()) { super.updateAttributeValue(ns, SVG_RY_ATTRIBUTE, val); } return; } else if (ln.equals(SVG_RY_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength rx = (AbstractSVGAnimatedLength) getRx(); if (!rx.isSpecified()) { super.updateAttributeValue(ns, SVG_RX_ATTRIBUTE, val); } return; } } super.updateAttributeValue(ns, ln, val); } }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; AnimatableLengthValue animLength = (AnimatableLengthValue) val; if (animVal == null) { animVal = new AnimSVGLength(direction); } animVal.setAnimatedValue(animLength.getLengthType(), animLength.getLengthValue()); } fireAnimatedAttributeListeners(); }
/** * Initializes the length, if needed. */ protected void revalidate() { if (valid) { return; } missing = false; valid = true; Attr attr = element.getAttributeNodeNS(namespaceURI, localName); String s; if (attr == null) { s = getDefaultValue(); if (s == null) { missing = true; return; } } else { s = attr.getValue(); } parse(s); }
float x = _x.getCheckedValue(); float y = _y.getCheckedValue(); float w = _width.getCheckedValue(); float h = _height.getCheckedValue();
if (textLength.isSpecified()) { if (inheritMap == null) { inheritMap = new HashMap(); Object value = textLength.getCheckedValue(); result.put (GVTAttributedCharacterIterator.TextAttribute.BBOX_WIDTH,
/** * <b>DOM</b>: Implements {@link SVGLength#getValueInSpecifiedUnits()}. */ public float getValueInSpecifiedUnits() { if (hasAnimVal) { return super.getValueInSpecifiedUnits(); } return getBaseVal().getValueInSpecifiedUnits(); }
/** * Called when an Attr node has been modified. */ public void attrModified(Attr node, String oldv, String newv) { attrChanged(); }
AnimatedAttributeListener l = ((SVGOMDocument) ownerDocument).getAnimatedAttributeListener(); fx.addAnimatedAttributeListener(l); fy.addAnimatedAttributeListener(l);
/** * Updates an attribute value in this target. */ public void updateAttributeValue(String ns, String ln, AnimatableValue val) { if (ns == null) { if (ln.equals(SVG_RX_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (!ry.isSpecified()) { super.updateAttributeValue(ns, SVG_RY_ATTRIBUTE, val); } return; } else if (ln.equals(SVG_RY_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength rx = (AbstractSVGAnimatedLength) getRx(); if (!rx.isSpecified()) { super.updateAttributeValue(ns, SVG_RX_ATTRIBUTE, val); } return; } } super.updateAttributeValue(ns, ln, val); } }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; AnimatableLengthValue animLength = (AnimatableLengthValue) val; if (animVal == null) { animVal = new AnimSVGLength(direction); } animVal.setAnimatedValue(animLength.getLengthType(), animLength.getLengthValue()); } fireAnimatedAttributeListeners(); }
/** * Initializes the length, if needed. */ protected void revalidate() { if (valid) { return; } missing = false; valid = true; Attr attr = element.getAttributeNodeNS(namespaceURI, localName); String s; if (attr == null) { s = getDefaultValue(); if (s == null) { missing = true; return; } } else { s = attr.getValue(); } parse(s); }
protected void attrChanged() { super.attrChanged(); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (isSpecified() && !ry.isSpecified()) { ry.attrChanged(); } } };