lengthDefault = "infinite";
}
interpolatorProvider = null;
if ("infinite".equals(parameter.getProperty("length", lengthDefault))) {
interpolatorProvider = new NullTime();
} else {
this.lengthParam = Long.parseLong(parameter.getProperty("length", "1000"));
if (Boolean.parseBoolean(parameter.getProperty("oneShot"))) {
interpolatorProvider = new OneTime();
}
}
// check for the given timeType to create the appropriate interpolator
if (interpolatorProvider == null) {
String timeType = parameter.getProperty("timeType", "linear");
if (timeType.equals("infinite")) {
interpolatorProvider = new NullTime();
} else if (timeType.equals("linear")) {
interpolatorProvider = new LinearTime();
} else if (timeType.equals("exp")) {
interpolatorProvider = new ExpTime();
} else {
log.warning(timeType + " is not supported, using NullTime for fallback. probably not what you want...");
interpolatorProvider = new NullTime();
}
}
// initialize the provider
interpolatorProvider.initialize(parameter);