Examples of TimeProvider


Examples of com.firefly.utils.time.TimeProvider

    });
  }

  public static void main(String[] args) throws InterruptedException {
    new TimerWheelExample().test();
    TimeProvider t = new TimeProvider(1000L);
    t.start();
   
    Thread.sleep(1000L);
    long start = t.currentTimeMillis();
    Thread.sleep(5000L);
    System.out.println("TimeProvider: " + (t.currentTimeMillis() - start));
  }
View Full Code Here

Examples of com.firefly.utils.time.TimeProvider

    });
  }

  public static void main1(String[] args) throws InterruptedException {
    new TimerWheelExample().test();
    TimeProvider t = new TimeProvider(1000L);
    t.start();
   
    Thread.sleep(1000L);
    long start = t.currentTimeMillis();
    Thread.sleep(5000L);
    System.out.println("TimeProvider: " + (t.currentTimeMillis() - start));
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.TimeProvider

          @Override
          public void setMousePosition(int x, int y) {
          }
        },
        new TimeProvider());
    SlickCallable.leaveSafeBlock();
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.TimeProvider

      }

      @Override
      public void setMousePosition(int x, int y) {
      }
    }, new TimeProvider());
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.TimeProvider

    if (!LwjglInitHelper.initSubSystems("Nifty Controls Demonstation")) {
      System.exit(0);
    }

    // create Nifty and load default styles and controls
    Nifty nifty = new Nifty(new LwjglRenderDevice(), new OpenALSoundDevice(), LwjglInitHelper.getInputSystem(), new TimeProvider());
    nifty.loadStyleFile("nifty-default-styles.xml");
    nifty.loadControlFile("nifty-default-controls.xml");
    nifty.registerSound("intro", "sound/19546__tobi123__Gong_mf2.wav");
    nifty.registerMusic("credits", "sound/Loveshadow_-_Almost_Given_Up.ogg");
    nifty.registerMouseCursor("hand", "mouse-cursor-hand.png", 5, 4);
View Full Code Here

Examples of de.lessvoid.nifty.tools.TimeProvider

    String endSizeString = parameter.getProperty("endSize");
    if (endSizeString != null) {
      endSize = new SizeValue(endSizeString);
    }
    pulsator = new Pulsator(parameter, new TimeProvider());
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.TimeProvider

  public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
    startColor = new Color(parameter.getProperty("startColor", "#00000000"));
    endColor = new Color(parameter.getProperty("endColor", "#ffffffff"));
    width = new SizeValue(parameter.getProperty("width"));
    changeColorOnly = new Boolean(parameter.getProperty("changeColorOnly", "false"));
    pulsator = new Pulsator(parameter, new TimeProvider());
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.TimeProvider

    String endSizeString = parameter.getProperty("endSize");
    if (endSizeString != null) {
      endSize = new SizeValue(endSizeString);
    }
    pulsator = new Pulsator(parameter, new TimeProvider());
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.TimeProvider

    if ((areaProviderProperty != null) || (renderStrategyProperty != null)) {
      image.setImageMode(ImageModeFactory.getSharedInstance().createImageMode(areaProviderProperty,
          renderStrategyProperty));
    }

    this.pulsater = new Pulsator(parameter, new TimeProvider());
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.TimeProvider

  private Color currentColor = new Color("#000f");

  public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
    startColor = new Color(parameter.getProperty("startColor", "#00000000"));
    endColor = new Color(parameter.getProperty("endColor", "#ffffffff"));
    pulsator = new Pulsator(parameter, new TimeProvider());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.