Package javafx.animation

Examples of javafx.animation.AnimationTimer


    public VuMeterSkin(final VuMeter CONTROL) {
        super(CONTROL);
        active        = false;
        lastTimerCall = 0l;
        stepSize      = new SimpleDoubleProperty((getSkinnable().getMaxValue() - getSkinnable().getMinValue()) / getSkinnable().getNoOfLeds());
        timer         = new AnimationTimer() {
            @Override public void handle(final long NOW) {
                if (NOW > lastTimerCall + PEAK_TIMEOUT) {
                    leds.get(peakLedIndex).getStyleClass().remove("led-peak");
                    peakLedIndex = Orientation.HORIZONTAL == getSkinnable().getOrientation() ? 0 : leds.size() - 1;
                    timer.stop();
View Full Code Here


                                    .peakValueVisible(true)
                                    .ledSize(32)
                                    .build();

        lastTimerCall = System.nanoTime();
        timer = new AnimationTimer() {
            @Override public void handle(final long NOW) {
                if (NOW > lastTimerCall + 100_000_000l) {
                    control.setValue(RND.nextDouble());                   
                    lastTimerCall = NOW;
                }
View Full Code Here

        };
        minValue          = new SimpleDoubleProperty(this, "minValue", 0);
        maxValue          = new SimpleDoubleProperty(this, "maxValue", 100);
        lastTimerCall     = System.nanoTime();
        animationDuration = 800;
        timer             = new AnimationTimer() {
            @Override public void handle(final long NOW) {
                if (NOW > lastTimerCall + LED_BLINK_INTERVAL) {
                    setLedOn(!isLedOn());
                    lastTimerCall = NOW;
                }
View Full Code Here

        Text clock = new Text("00:00:00");
        clock.setFill(Color.WHITE);
        BorderPane clockPane = new BorderPane(clock);
        leftPanes.getItems().add(clockPane);
        //Make the clock tick:
        new AnimationTimer() {
            @Override
            public void handle(long now) {
                clock.setText(new SimpleDateFormat("HH:mm:ss").format(new Date()));
            }
        }.start();
View Full Code Here

TOP

Related Classes of javafx.animation.AnimationTimer

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.