Class UnitVectorProperty

  • All Implemented Interfaces:
    javafx.beans.Observable, javafx.beans.property.Property<Vector2dfx>, javafx.beans.property.ReadOnlyProperty<Vector2dfx>, javafx.beans.value.ObservableObjectValue<Vector2dfx>, javafx.beans.value.ObservableValue<Vector2dfx>, javafx.beans.value.WritableObjectValue<Vector2dfx>, javafx.beans.value.WritableValue<Vector2dfx>
    Direct Known Subclasses:
    ReadOnlyUnitVectorWrapper

    public class UnitVectorProperty
    extends javafx.beans.property.SimpleObjectProperty<Vector2dfx>
    A JavaFX property that is representing a unit vector.
    Since:
    13.0
    Version:
    17.0 2020-01-04 14:41:49
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.advanced
    Maven Artifact Id:
    mathfx
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Vector2dfx get()  
      GeomFactory2dfx getGeomFactory()
      Replies the geometry factory associated to this property.
      double getX()
      Replies the x coordinate of the vector.
      double getY()
      Replies the y coordinate of the vector.
      void set​(double x, double y)
      Change the coordinates of the vector.
      void set​(Vector2dfx newValue)  
      javafx.beans.property.ReadOnlyDoubleProperty xProperty()
      Replies the x property.
      javafx.beans.property.ReadOnlyDoubleProperty yProperty()
      Replies the y property.
      • Methods inherited from class javafx.beans.property.SimpleObjectProperty

        getBean, getName
      • Methods inherited from class javafx.beans.property.ObjectPropertyBase

        addListener, addListener, bind, fireValueChangedEvent, invalidated, isBound, removeListener, removeListener, toString, unbind
      • Methods inherited from class javafx.beans.property.ObjectProperty

        bindBidirectional, setValue, unbindBidirectional
      • Methods inherited from class javafx.beans.binding.ObjectExpression

        asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
      • Methods inherited from interface javafx.beans.value.ObservableValue

        getValue
      • Methods inherited from interface javafx.beans.value.WritableValue

        getValue
    • Constructor Detail

      • UnitVectorProperty

        public UnitVectorProperty​(Object bean,
                                  String name,
                                  GeomFactory2dfx factory)
        Construct a property.
        Parameters:
        bean - the owner of the property.
        name - the name of the property.
        factory - the factory to use.
    • Method Detail

      • getGeomFactory

        public GeomFactory2dfx getGeomFactory()
        Replies the geometry factory associated to this property.
        Returns:
        the geometry factory.
      • get

        public Vector2dfx get()
        Specified by:
        get in interface javafx.beans.value.ObservableObjectValue<Vector2dfx>
        Specified by:
        get in interface javafx.beans.value.WritableObjectValue<Vector2dfx>
        Overrides:
        get in class javafx.beans.property.ObjectPropertyBase<Vector2dfx>
      • set

        public void set​(Vector2dfx newValue)
        Specified by:
        set in interface javafx.beans.value.WritableObjectValue<Vector2dfx>
        Overrides:
        set in class javafx.beans.property.ObjectPropertyBase<Vector2dfx>
      • set

        public void set​(double x,
                        double y)
        Change the coordinates of the vector.
        Parameters:
        x - x coordinate of the vector.
        y - y coordinate of the vector.
      • getX

        public double getX()
        Replies the x coordinate of the vector.
        Returns:
        the x coordinate of the vector.
      • getY

        public double getY()
        Replies the y coordinate of the vector.
        Returns:
        the y coordinate of the vector.
      • xProperty

        @Pure
        public javafx.beans.property.ReadOnlyDoubleProperty xProperty()
        Replies the x property.
        Returns:
        the x property.
      • yProperty

        @Pure
        public javafx.beans.property.ReadOnlyDoubleProperty yProperty()
        Replies the y property.
        Returns:
        the y property.