/** * Called when an Attr node has been modified. */ public void attrModified(Attr node, String oldv, String newv) { if (!changing) { valid = false; } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
/** * Returns the base value as a string. */ public String getBaseValAsString() { if (!valid) { update(); } return values[baseVal]; }
/** * Creates a new {@link SVGOMAnimatedEnumeration} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedEnumeration createLiveAnimatedEnumeration (String ns, String ln, String[] val, short def) { SVGOMAnimatedEnumeration v = new SVGOMAnimatedEnumeration(this, ns, ln, val, def); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; this.animVal = getEnumerationNumber(((AnimatableStringValue) val).getString()); fireAnimatedAttributeListeners(); } fireAnimatedAttributeListeners(); }
/** * Gets the current animated value, throwing an exception if the attribute * is malformed. */ public short getCheckedVal() { if (hasAnimVal) { return animVal; } if (!valid) { update(); } if (baseVal == 0) { throw new LiveAttributeException (element, localName, LiveAttributeException.ERR_ATTRIBUTE_MALFORMED, getBaseValAsString()); } return baseVal; }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { return new AnimatableStringValue(target, getBaseValAsString()); }
/** * Updates the base value from the attribute. */ protected void update() { String val = element.getAttributeNS(namespaceURI, localName); if (val.length() == 0) { baseVal = defaultValue; } else { baseVal = getEnumerationNumber(val); } valid = true; }
if (_lengthAdjust.getCheckedVal() == SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS) { result.put(GVTAttributedCharacterIterator.
/** * Creates a new {@link SVGOMAnimatedEnumeration} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedEnumeration createLiveAnimatedEnumeration (String ns, String ln, String[] val, short def) { SVGOMAnimatedEnumeration v = new SVGOMAnimatedEnumeration(this, ns, ln, val, def); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; this.animVal = getEnumerationNumber(((AnimatableStringValue) val).getString()); fireAnimatedAttributeListeners(); } fireAnimatedAttributeListeners(); }
/** * Gets the current animated value, throwing an exception if the attribute * is malformed. */ public short getCheckedVal() { if (hasAnimVal) { return animVal; } if (!valid) { update(); } if (baseVal == 0) { throw new LiveAttributeException (element, localName, LiveAttributeException.ERR_ATTRIBUTE_MALFORMED, getBaseValAsString()); } return baseVal; }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { return new AnimatableStringValue(target, getBaseValAsString()); }
/** * Updates the base value from the attribute. */ protected void update() { String val = element.getAttributeNS(namespaceURI, localName); if (val.length() == 0) { baseVal = defaultValue; } else { baseVal = getEnumerationNumber(val); } valid = true; }
if (_lengthAdjust.getCheckedVal() == SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS) { result.put(GVTAttributedCharacterIterator.
/** * Called when an Attr node has been modified. */ public void attrModified(Attr node, String oldv, String newv) { if (!changing) { valid = false; } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
/** * Creates a new {@link SVGOMAnimatedEnumeration} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedEnumeration createLiveAnimatedEnumeration (String ns, String ln, String[] val, short def) { SVGOMAnimatedEnumeration v = new SVGOMAnimatedEnumeration(this, ns, ln, val, def); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; this.animVal = getEnumerationNumber(((AnimatableStringValue) val).getString()); fireAnimatedAttributeListeners(); } fireAnimatedAttributeListeners(); }
/** * Gets the current animated value, throwing an exception if the attribute * is malformed. */ public short getCheckedVal() { if (hasAnimVal) { return animVal; } if (!valid) { update(); } if (baseVal == 0) { throw new LiveAttributeException (element, localName, LiveAttributeException.ERR_ATTRIBUTE_MALFORMED, getBaseValAsString()); } return baseVal; }
/** * <b>DOM</b>: Implements {@link SVGAnimatedEnumeration#getAnimVal()}. */ public short getAnimVal() { if (hasAnimVal) { return animVal; } if (!valid) { update(); } return baseVal; }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { return new AnimatableStringValue(target, getBaseValAsString()); }