protected class AnimatableLengthOrIdentFactory extends CSSValueFactory {
protected AnimatableValue createAnimatableValue(AnimationTarget target,
String pn, Value v) {
if (v instanceof StringValue) {
return new AnimatableLengthOrIdentValue(target,
v.getStringValue());
}
short pcInterp = target.getPercentageInterpretation(null, pn, true);
FloatValue fv = (FloatValue) v;
return new AnimatableLengthOrIdentValue
(target, fv.getPrimitiveType(), fv.getFloatValue(), pcInterp);
}