/** * Creates a new {@link SVGOMAnimatedLengthList} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedLengthList createLiveAnimatedLengthList (String ns, String ln, String def, boolean emptyAllowed, short dir) { SVGOMAnimatedLengthList v = new SVGOMAnimatedLengthList(this, ns, ln, def, emptyAllowed, dir); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * Called when an Attr node has been removed. */ public void attrRemoved(Attr node, String oldv) { 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) { SVGLengthList ll = getBaseVal(); int n = ll.getNumberOfItems(); short[] types = new short[n]; float[] values = new float[n]; for (int i = 0; i < n; i++) { SVGLength l = ll.getItem(i); types[i] = l.getUnitType(); values[i] = l.getValueInSpecifiedUnits(); } return new AnimatableLengthListValue (target, types, values, target.getPercentageInterpretation (getNamespaceURI(), getLocalName(), false)); }
_x.check(); SVGLengthList xs = _x.getAnimVal(); float x = 0; if (xs.getNumberOfItems() > 0) { _y.check(); SVGLengthList ys = _y.getAnimVal(); float y = 0; if (ys.getNumberOfItems() > 0) {
/** * <b>DOM</b>: Implements {@link SVGLengthList#getItem(int)}. */ public SVGLength getItem(int index) throws DOMException { if (hasAnimVal) { return super.getItem(index); } return getBaseVal().getItem(index); }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; AnimatableLengthListValue animLengths = (AnimatableLengthListValue) val; if (animVal == null) { animVal = new AnimSVGLengthList(); } animVal.setAnimatedValue(animLengths.getLengthTypes(), animLengths.getLengthValues()); } fireAnimatedAttributeListeners(); }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { SVGLengthList ll = getBaseVal(); int n = ll.getNumberOfItems(); short[] types = new short[n]; float[] values = new float[n]; for (int i = 0; i < n; i++) { SVGLength l = ll.getItem(i); types[i] = l.getUnitType(); values[i] = l.getValueInSpecifiedUnits(); } return new AnimatableLengthListValue (target, types, values, target.getPercentageInterpretation (getNamespaceURI(), getLocalName(), false)); }
_x.check(); SVGLengthList xs = _x.getAnimVal(); float x = 0; if (xs.getNumberOfItems() > 0) { _y.check(); SVGLengthList ys = _y.getAnimVal(); float y = 0; if (ys.getNumberOfItems() > 0) {
/** * <b>DOM</b>: Implements {@link SVGLengthList#getNumberOfItems()}. */ public int getNumberOfItems() { if (hasAnimVal) { return super.getNumberOfItems(); } return getBaseVal().getNumberOfItems(); }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; AnimatableLengthListValue animLengths = (AnimatableLengthListValue) val; if (animVal == null) { animVal = new AnimSVGLengthList(); } animVal.setAnimatedValue(animLengths.getLengthTypes(), animLengths.getLengthValues()); } fireAnimatedAttributeListeners(); }
/** * Called when an Attr node has been modified. */ public void attrModified(Attr node, String oldv, String newv) { 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) { SVGLengthList ll = getBaseVal(); int n = ll.getNumberOfItems(); short[] types = new short[n]; float[] values = new float[n]; for (int i = 0; i < n; i++) { SVGLength l = ll.getItem(i); types[i] = l.getUnitType(); values[i] = l.getValueInSpecifiedUnits(); } return new AnimatableLengthListValue (target, types, values, target.getPercentageInterpretation (getNamespaceURI(), getLocalName(), false)); }
_x.check(); SVGLengthList xs = _x.getAnimVal(); float x = 0; if (xs.getNumberOfItems() > 0) { _y.check(); SVGLengthList ys = _y.getAnimVal(); float y = 0; if (ys.getNumberOfItems() > 0) {
/** * Creates a new {@link SVGOMAnimatedLengthList} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedLengthList createLiveAnimatedLengthList (String ns, String ln, String def, boolean emptyAllowed, short dir) { SVGOMAnimatedLengthList v = new SVGOMAnimatedLengthList(this, ns, ln, def, emptyAllowed, dir); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * <b>DOM</b>: Implements {@link SVGLengthList#getNumberOfItems()}. */ public int getNumberOfItems() { if (hasAnimVal) { return super.getNumberOfItems(); } return getBaseVal().getNumberOfItems(); }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; AnimatableLengthListValue animLengths = (AnimatableLengthListValue) val; if (animVal == null) { animVal = new AnimSVGLengthList(); } animVal.setAnimatedValue(animLengths.getLengthTypes(), animLengths.getLengthValues()); } fireAnimatedAttributeListeners(); }
/** * Called when an Attr node has been added. */ public void attrAdded(Attr node, String newv) { if (!changing && baseVal != null) { baseVal.invalidate(); } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
SVGOMAnimatedLengthList _x = (SVGOMAnimatedLengthList) te.getX(); _x.check(); SVGOMAnimatedLengthList _y = (SVGOMAnimatedLengthList) te.getY(); _y.check(); SVGOMAnimatedLengthList _dx = (SVGOMAnimatedLengthList) te.getDx(); _dx.check(); SVGOMAnimatedLengthList _dy = (SVGOMAnimatedLengthList) te.getDy(); _dy.check(); SVGOMAnimatedNumberList _rotate = (SVGOMAnimatedNumberList) te.getRotate(); _rotate.check(); SVGLengthList xs = _x.getAnimVal(); SVGLengthList ys = _y.getAnimVal(); SVGLengthList dxs = _dx.getAnimVal(); SVGLengthList dys = _dy.getAnimVal(); SVGNumberList rs = _rotate.getAnimVal();
/** * Creates a new {@link SVGOMAnimatedLengthList} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedLengthList createLiveAnimatedLengthList (String ns, String ln, String def, boolean emptyAllowed, short dir) { SVGOMAnimatedLengthList v = new SVGOMAnimatedLengthList(this, ns, ln, def, emptyAllowed, dir); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * <b>DOM</b>: Implements {@link SVGLengthList#getItem(int)}. */ public SVGLength getItem(int index) throws DOMException { if (hasAnimVal) { return super.getItem(index); } return getBaseVal().getItem(index); }