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 Details

    • DoubleExpression

      public DoubleExpression()
  • Method Details

    • intValue

      public int intValue()
      Description copied from interface: ObservableNumberValue
      Returns the value of this ObservableNumberValue as an int . If the value is not an int, a standard cast is performed.
      Specified by:
      intValue in interface ObservableNumberValue
      Returns:
      The value of this ObservableNumberValue as an int
    • longValue

      public long longValue()
      Description copied from interface: ObservableNumberValue
      Returns the value of this ObservableNumberValue as a long . If the value is not a long, a standard cast is performed.
      Specified by:
      longValue in interface ObservableNumberValue
      Returns:
      The value of this ObservableNumberValue as a long
    • floatValue

      public float floatValue()
      Description copied from interface: ObservableNumberValue
      Returns the value of this ObservableNumberValue as a float. If the value is not a float, a standard cast is performed.
      Specified by:
      floatValue in interface ObservableNumberValue
      Returns:
      The value of this ObservableNumberValue as a float
    • doubleValue

      public double doubleValue()
      Description copied from interface: ObservableNumberValue
      Returns the value of this ObservableNumberValue as a double. If the value is not a double, a standard cast is performed.
      Specified by:
      doubleValue in interface ObservableNumberValue
      Returns:
      The value of this ObservableNumberValue as a double
    • getValue

      public Double getValue()
      Description copied from interface: ObservableValue
      Returns the current value of this ObservableValue
      Specified by:
      getValue in interface ObservableValue<Number>
      Returns:
      The current value