javafx.beans.property.ReadOnlyDoubleWrapper Java Examples

The following examples show how to use javafx.beans.property.ReadOnlyDoubleWrapper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IOSCompassService.java    From attach with GNU General Public License v3.0 5 votes vote down vote up
public IOSCompassService() {
    heading = new ReadOnlyDoubleWrapper();

    Services.get(MagnetometerService.class).ifPresent(m -> {
        m.readingProperty().addListener((obs, ov, nv) -> heading.setValue(nv.getAzimuth()));
    });
}
 
Example #2
Source File: AbstractFormLayoutRegion.java    From dolphin-platform with Apache License 2.0 5 votes vote down vote up
public AbstractFormLayoutRegion() {
    minTitleWidth = new ReadOnlyDoubleWrapper();
    prefTitleWidth = new ReadOnlyDoubleWrapper();
    maxTitleWidth = new ReadOnlyDoubleWrapper();
    minEditorWidth = new ReadOnlyDoubleWrapper();
    prefEditorWidth = new ReadOnlyDoubleWrapper();
    maxEditorWidth = new ReadOnlyDoubleWrapper();
    titleWidth = new SimpleDoubleProperty();
}
 
Example #3
Source File: AbstractAxisParameter.java    From chart-fx with Apache License 2.0 4 votes vote down vote up
ReadOnlyDoubleWrapper scalePropertyImpl() {
    return scale;
}