/** * 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)); }
/** * 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)); }
/** * 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)); }