Class ReadOnlyUnitVectorWrapper

  • 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>

    public class ReadOnlyUnitVectorWrapper
    extends UnitVectorProperty
    A convenient class to define read-only properties for unit vectors. It creates two properties that are synchronized. One property is read-only and can be passed to external users. The other property is read- and writable and should be used internally only.
    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
    • Constructor Detail

      • ReadOnlyUnitVectorWrapper

        public ReadOnlyUnitVectorWrapper​(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 used by this wrapper.
    • Method Detail

      • getReadOnlyProperty

        public ReadOnlyUnitVectorProperty getReadOnlyProperty()
        Returns the read-only property, that is synchronized with this ReadOnlyUnitVectorPropertyWrapper.
        Returns:
        the read-only property.
      • fireValueChangedEvent

        protected void fireValueChangedEvent()
        Overrides:
        fireValueChangedEvent in class javafx.beans.property.ObjectPropertyBase<Vector2dfx>