Package com.luciad.geometries.observable
Class ObservableEllipseUtil
java.lang.Object
com.luciad.geometries.observable.ObservableEllipseUtil
This class provides utility methods for
Observable
instance for Ellipse
.-
Method Summary
Modifier and TypeMethodDescriptionstatic Observable
<@Nullable Point> deriveCenter
(Observable<@Nullable Ellipse> observableEllipse) Derives anObservable
Point
from the given observable ellipse that represents the center point.static Observable
<@Nullable Point> derivePointAtAngle
(Observable<@Nullable Ellipse> observableEllipse, Angle angle) Derives anObservable
Point
from the given observable ellipse that represents the point at the given angle.
-
Method Details
-
deriveCenter
@NotNull public static Observable<@Nullable Point> deriveCenter(@NotNull Observable<@Nullable Ellipse> observableEllipse) Derives anObservable
Point
from the given observable ellipse that represents the center point.This observable point will be updated when the given observable ellipse changes.
Notes:
- When the observable ellipse contains a
null
value, the observable center point instance will contain anull
value too. Observable#setValue
will throw an exception for derived instances.
- Parameters:
observableEllipse
- an observable ellipse from which to derive the center- Returns:
- a derived
Observable
- When the observable ellipse contains a
-
derivePointAtAngle
@NotNull public static Observable<@Nullable Point> derivePointAtAngle(@NotNull Observable<@Nullable Ellipse> observableEllipse, @NotNull Angle angle) Derives anObservable
Point
from the given observable ellipse that represents the point at the given angle.This observable point will be updated when the given observable ellipse changes.
Notes:
- When the observable ellipse contains a
null
value, the observable point instance will contain anull
value too. Observable#setValue
will throw an exception for derived instances.
- Parameters:
observableEllipse
- an observable ellipse from which to derive the pointangle
- the angle at which to derive the point. For example: an angle of 0 will result in the point on the right of the major axis. An angle of 90 will result in the point a the top of the minor axis.- Returns:
- a derived
Observable
- When the observable ellipse contains a
-