public final class ObservableEllipseUtil extends Object
Observable
instance for Ellipse
.Modifier and Type | Method and Description |
---|---|
static Observable<Point> |
deriveCenter(Observable<Ellipse> observableEllipse)
Derives an
Observable Point from the given observable ellipse that represents the center point. |
static Observable<Point> |
derivePointAtAngle(Observable<Ellipse> observableEllipse,
Angle angle)
Derives an
Observable Point from the given observable ellipse that represents the point at the given angle. |
@NotNull public static Observable<Point> deriveCenter(@NotNull Observable<Ellipse> observableEllipse)
Observable
Point
from the given observable ellipse that represents the center point.
This observable point will be updated when the given observable ellipse changes.
Notes:
null
value, the observable center point instance will contain a null
value too.
Observable#setValue
will throw an exception for derived instances.
observableEllipse
- an observable ellipse from which to derive the centerObservable
@NotNull public static Observable<Point> derivePointAtAngle(@NotNull Observable<Ellipse> observableEllipse, @NotNull Angle angle)
Observable
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:
null
value, the observable point instance will contain a null
value too.
Observable#setValue
will throw an exception for derived instances.
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.Observable