Class ReadOnlyUnitVectorWrapper
- java.lang.Object
-
- javafx.beans.binding.ObjectExpression<T>
-
- javafx.beans.property.ReadOnlyObjectProperty<T>
-
- javafx.beans.property.ObjectProperty<T>
-
- javafx.beans.property.ObjectPropertyBase<T>
-
- javafx.beans.property.SimpleObjectProperty<Vector2dfx>
-
- org.arakhne.afc.math.geometry.d2.dfx.UnitVectorProperty
-
- org.arakhne.afc.math.geometry.d2.dfx.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 Summary
Constructors Constructor Description ReadOnlyUnitVectorWrapper(Object bean, String name, GeomFactory2dfx factory)
Construct a property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fireValueChangedEvent()
ReadOnlyUnitVectorProperty
getReadOnlyProperty()
Returns the read-only property, that is synchronized with thisReadOnlyUnitVectorPropertyWrapper
.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.dfx.UnitVectorProperty
get, getGeomFactory, getX, getY, set, set, xProperty, yProperty
-
Methods inherited from class javafx.beans.property.ObjectPropertyBase
addListener, addListener, bind, 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
-
-
-
-
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 thisReadOnlyUnitVectorPropertyWrapper
.- Returns:
- the read-only property.
-
fireValueChangedEvent
protected void fireValueChangedEvent()
- Overrides:
fireValueChangedEvent
in classjavafx.beans.property.ObjectPropertyBase<Vector2dfx>
-
-