Examples of DoublePropertyBase


Examples of javafx.beans.property.DoublePropertyBase

            startAngle.set(START_ANGLE);
        }
    }
    public final DoubleProperty startAngleProperty() {
        if (null == startAngle) {
            startAngle = new DoublePropertyBase(_startAngle) {
                @Override protected void invalidated() {
                    set(clamp(0d, 360d, get()));
                }
                @Override public Object getBean() { return this; }
                @Override public String getName() { return "startAngle"; }
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase


    // ******************** Constructors **************************************
    public HeatControl() {
        getStyleClass().add("heat-control");
        value             = new DoublePropertyBase(0) {
            @Override protected void invalidated() {
                set(clamp(getMinValue(), getMaxValue(), get()));
            }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "value"; }
        };
        minValue          = new DoublePropertyBase(0) {
            @Override protected void invalidated() {
                if (getValue() < get()) setValue(get());
            }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "minValue"; }
        };
        maxValue          = new DoublePropertyBase(40) {
            @Override protected void invalidated() {
                if (getValue() > get()) setValue(get());
            }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "maxValue"; }
        };
        oldValue          = 0;
        target            = new DoublePropertyBase(20) {
            @Override protected void invalidated() {
                set(clamp(getMinValue(), getMaxValue(), get()));
            }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "target"; }
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase


    // ******************** Constructors **************************************
    public Lcd() {
        getStyleClass().add("lcd");
        value            = new DoublePropertyBase(0) {
            @Override public void set(final double VALUE) {
                formerValue.set(value.get());
                super.set(clamp(getMinValue(), getMaxValue(), VALUE));
            }
            @Override public Object getBean() { return this; }
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase

            minValue.set(MIN_VALUE);
        }
    }
    public final DoubleProperty minValueProperty() {
        if (null == minValue) {           
            minValue = new DoublePropertyBase(_minValue) {               
                @Override public void set(final double MIN_VALUE) {
                    super.set(clamp(Double.NEGATIVE_INFINITY, getMaxValue(), get()));   
                }
                @Override public Object getBean() { return this; }
                @Override public String getName() { return "minValue"; }
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase

            maxValue.set(MAX_VALUE);
        }
    }
    public final DoubleProperty maxValueProperty() {
        if (null == maxValue) {           
            maxValue = new DoublePropertyBase(_maxValue) {               
                @Override public void set(final double MAX_VALUE) {
                    super.set(clamp(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, get()));
                }
                @Override public Object getBean() { return this; }
                @Override public String getName() { return "maxValue"; }
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase


    // ******************** Constructors **************************************
    public SimpleRadarChart() {
        getStyleClass().add("simple-pie-chart");
        minValue = new DoublePropertyBase(0) {
            @Override public void set(final double MIN_VALUE) {
                super.set(clamp(-Double.MAX_VALUE, getMaxValue(), MIN_VALUE));
            }
            @Override public Object getBean() { return SimpleRadarChart.this; }
            @Override public String getName() { return "minValue"; }
        };
        maxValue = new DoublePropertyBase(100) {
            @Override public void set(final double MAX_VALUE) {
                super.set(clamp(getMinValue(), Double.MAX_VALUE, MAX_VALUE));
            }
            @Override public Object getBean() { return SimpleRadarChart.this; }
            @Override public String getName() { return "maxValue"; }
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase


    // ******************** Constructors **************************************
    public RadialBargraph() {
        getStyleClass().add("radial-bargraph");
        value                    = new DoublePropertyBase(0) {
            @Override public void set(final double VALUE) {
                super.set(clamp(getMinValue(), getMaxValue(), VALUE));
            }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "value"; }
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase

        height           = PREFERRED_HEIGHT;
        size             = PREFERRED_WIDTH;
        timeline         = new Timeline();
        lastCall         = Instant.now();
        withinSpeedLimit = true;
        currentValue     = new DoublePropertyBase(getSkinnable().getValue()) {
            @Override public Object getBean() { return LinearSkin.this; }
            @Override public String getName() { return "currentValue"; }
        };
        init();
        initGraphics();
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase

          

    // ******************** Constructors **************************************
    public SimpleGauge() {
        getStyleClass().add("simple-gauge");       
        value                 = new DoublePropertyBase(0) {           
            @Override public void set(final double VALUE) {
                oldValue = get();               
                super.set(clamp(getMinValue(), getMaxValue(), VALUE));
            }
            @Override public Object getBean() { return this; }
View Full Code Here

Examples of javafx.beans.property.DoublePropertyBase

            startAngle.set(START_ANGLE);
        }
    }
    public final DoubleProperty startAngleProperty() {
        if (null == startAngle) {           
            startAngle = new DoublePropertyBase(_startAngle) {               
                @Override public void set(final double START_ANGLE) {
                    super.set(clamp(0d, 360d, get()));
                }
                @Override public Object getBean() { return this; }
                @Override public String getName() { return "startAngle"; }
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.