Java Code Examples for javafx.beans.property.DoubleProperty#doubleValue()
The following examples show how to use
javafx.beans.property.DoubleProperty#doubleValue() .
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: EditAxis.java From chart-fx with Apache License 2.0 | 5 votes |
protected void changeAxisRangeLinearScale(final double minTickDistance, final DoubleProperty property, final boolean isIncrease) { final double value = property.doubleValue(); final double diff = minTickDistance; if (isIncrease) { property.set(value + diff); } else { property.set(value - diff); } }
Example 2
Source File: MainViewModel.java From bisq with GNU Affero General Public License v3.0 | 5 votes |
private void updateBtcSyncProgress() { final DoubleProperty btcSyncProgress = bisqSetup.getBtcSyncProgress(); if (btcSyncProgress.doubleValue() < 1) { combinedSyncProgress.set(btcSyncProgress.doubleValue()); } else { combinedSyncProgress.set(daoPresentation.getBsqSyncProgress().doubleValue()); } }
Example 3
Source File: Text3DHelper.java From FXyzLib with GNU General Public License v3.0 | 5 votes |
private double getArea(){ DoubleProperty res=new SimpleDoubleProperty(); IntStream.range(0, list.size()-1) .forEach(i->res.set(res.get()+list.get(i).crossProduct(list.get(i+1)).z)); // System.out.println("path: "+res.doubleValue()/2); return res.doubleValue()/2d; }