Package de.lessvoid.nifty.tools.time.interpolator

Examples of de.lessvoid.nifty.tools.time.interpolator.NullTime


      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);
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.tools.time.interpolator.NullTime

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.