Package javafx.beans.binding
Class DoubleExpression
java.lang.Object
javafx.beans.binding.NumberExpressionBase
javafx.beans.binding.DoubleExpression
- All Implemented Interfaces:
NumberExpression
,Observable
,ObservableDoubleValue
,ObservableNumberValue
,ObservableValue<Number>
- Direct Known Subclasses:
DoubleBinding
,ReadOnlyDoubleProperty
public abstract class DoubleExpression
extends NumberExpressionBase
implements ObservableDoubleValue
A
DoubleExpression
is a
ObservableDoubleValue
plus additional convenience
methods to generate bindings in a fluent style.
A concrete sub-class of DoubleExpression
has to implement the method
ObservableDoubleValue.get()
, which provides the
actual value of this expression.
- Since:
- JavaFX 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thisObservableNumberValue
as adouble
.float
Returns the value of thisObservableNumberValue
as afloat
.getValue()
Returns the current value of thisObservableValue
int
intValue()
Returns the value of thisObservableNumberValue
as anint
.long
Returns the value of thisObservableNumberValue
as along
.Methods inherited from class javafx.beans.binding.NumberExpressionBase
asString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javafx.beans.Observable
addListener, removeListener
Methods inherited from interface javafx.beans.value.ObservableDoubleValue
get
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, removeListener
-
Constructor Details
-
DoubleExpression
public DoubleExpression()
-
-
Method Details
-
intValue
public int intValue()Description copied from interface:ObservableNumberValue
Returns the value of thisObservableNumberValue
as anint
. If the value is not anint
, a standard cast is performed.- Specified by:
intValue
in interfaceObservableNumberValue
- Returns:
- The value of this
ObservableNumberValue
as anint
-
longValue
public long longValue()Description copied from interface:ObservableNumberValue
Returns the value of thisObservableNumberValue
as along
. If the value is not along
, a standard cast is performed.- Specified by:
longValue
in interfaceObservableNumberValue
- Returns:
- The value of this
ObservableNumberValue
as along
-
floatValue
public float floatValue()Description copied from interface:ObservableNumberValue
Returns the value of thisObservableNumberValue
as afloat
. If the value is not afloat
, a standard cast is performed.- Specified by:
floatValue
in interfaceObservableNumberValue
- Returns:
- The value of this
ObservableNumberValue
as afloat
-
doubleValue
public double doubleValue()Description copied from interface:ObservableNumberValue
Returns the value of thisObservableNumberValue
as adouble
. If the value is not adouble
, a standard cast is performed.- Specified by:
doubleValue
in interfaceObservableNumberValue
- Returns:
- The value of this
ObservableNumberValue
as adouble
-
getValue
Description copied from interface:ObservableValue
Returns the current value of thisObservableValue
- Specified by:
getValue
in interfaceObservableValue<Number>
- Returns:
- The current value
-