Class Circle2dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.dfx.AbstractShape2dfx<Circle2dfx>
-
- org.arakhne.afc.math.geometry.d2.dfx.Circle2dfx
-
- All Implemented Interfaces:
Serializable,Cloneable,Circle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>,Ellipse2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>,RectangularShape2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>,Shape2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>,Shape2dfx<Circle2dfx>,Shape2D<Shape2dfx<?>,Circle2dfx,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>,JsonableObject
public class Circle2dfx extends AbstractShape2dfx<Circle2dfx> implements Circle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>
Circle with 2 double precision floating-point FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Hamza JAFFALI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d2.afp.Circle2afp
Circle2afp.AbstractCirclePathIterator<T extends PathElement2afp>, Circle2afp.CirclePathIterator<T extends PathElement2afp>, Circle2afp.TransformedCirclePathIterator<T extends PathElement2afp>
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d2.afp.Ellipse2afp
Ellipse2afp.AbstractEllipsePathIterator<T extends PathElement2afp>, Ellipse2afp.EllipsePathIterator<T extends PathElement2afp>, Ellipse2afp.PrivateAPI, Ellipse2afp.TransformedEllipsePathIterator<T extends PathElement2afp>
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d2.dfx.AbstractShape2dfx
boundingBox
-
-
Constructor Summary
Constructors Constructor Description Circle2dfx()Construct an empty circle.Circle2dfx(double x, double y, double radius)Construct a circle with the given position and radius.Circle2dfx(Circle2afp<?,?,?,?,?,?> circle)Constructor by copy.Circle2dfx(Circle2dfx circle)Constructor by setting.Circle2dfx(Point2dfx center, double radius)Construct a circle by setting the position and radius.Circle2dfx(Point2D<?,?> center, double radius)Construct a circle with the given position and radius.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ObjectProperty<Rectangle2dfx>boundingBoxProperty()Replies the property that contains the bounding box for this shape.Circle2dfxclone()Clone this shape.Point2dfxgetCenter()Replies the center.doublegetRadius()Replies the radius.doublegetX()Replies the center X.doublegetY()Replies the center y.inthashCode()javafx.beans.property.DoublePropertyradiusProperty()Replies the property that is the radius of the circle.voidset(double x, double y, double radius)Change the frame of the circle.voidsetRadius(double radius)Set the radius.voidsetX(double x)Change the x coordinate of the center.voidsetY(double y)Change the y coordinate of the center.javafx.beans.property.DoublePropertyxProperty()Replies the property that is the x coordinate of the circle center.javafx.beans.property.DoublePropertyyProperty()Replies the property that is the y coordinate of the circle center.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.dfx.AbstractShape2dfx
equals, getGeomFactory, toJson, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.Circle2afp
clear, contains, contains, equalsToShape, getCenterX, getCenterY, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getHorizontalRadius, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, getVerticalRadius, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, isEmpty, set, set, setCenter, setCenter, setFromCenter, setFromCorners, setMaxX, setMaxY, setMinX, setMinY, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.Ellipse2afp
getFlatteningPathIterator, getMaxFocusPoint, getMinFocusPoint
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.RectangularShape2afp
getHeight, getWidth, inflate, set, set, setFromCenter, setFromCorners, setHeight, setWidth
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.Shape2afp
contains, contains, createTransformedShape, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getGeomFactory, intersects, intersects, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.Shape2D
equalsToPathIterator, getDistance, getPathIterator, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo
-
-
-
-
Constructor Detail
-
Circle2dfx
public Circle2dfx()
Construct an empty circle.
-
Circle2dfx
public Circle2dfx(Point2D<?,?> center, double radius)
Construct a circle with the given position and radius.- Parameters:
center- the center of the circle.radius- the radius of the circle.
-
Circle2dfx
public Circle2dfx(Point2dfx center, double radius)
Construct a circle by setting the position and radius.- Parameters:
center- the center of the circle.radius- the radius of the circle.
-
Circle2dfx
public Circle2dfx(double x, double y, double radius)Construct a circle with the given position and radius.- Parameters:
x- x coordinate of the center of the circle.y- y coordinate of the center of the circle.radius- the radius of the circle.
-
Circle2dfx
public Circle2dfx(Circle2afp<?,?,?,?,?,?> circle)
Constructor by copy.- Parameters:
circle- the circle to copy.
-
Circle2dfx
public Circle2dfx(Circle2dfx circle)
Constructor by setting.- Parameters:
circle- the circle to set.
-
-
Method Detail
-
clone
@Pure public Circle2dfx clone()
Description copied from interface:Shape2DClone this shape.- Specified by:
clonein interfaceShape2D<Shape2dfx<?>,Circle2dfx,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>- Overrides:
clonein classAbstractShape2dfx<Circle2dfx>- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classAbstractShape2dfx<Circle2dfx>
-
getX
@Pure public double getX()
Description copied from interface:Circle2afpReplies the center X.- Specified by:
getXin interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Returns:
- the center x.
-
getY
@Pure public double getY()
Description copied from interface:Circle2afpReplies the center y.- Specified by:
getYin interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Returns:
- the center y.
-
getCenter
@Pure public Point2dfx getCenter()
Description copied from interface:RectangularShape2afpReplies the center.- Specified by:
getCenterin interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Specified by:
getCenterin interfaceRectangularShape2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Returns:
- the center.
-
setX
public void setX(double x)
Description copied from interface:Circle2afpChange the x coordinate of the center.- Specified by:
setXin interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Parameters:
x- x coordinate of the center point.
-
setY
public void setY(double y)
Description copied from interface:Circle2afpChange the y coordinate of the center.- Specified by:
setYin interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Parameters:
y- y coordinate of the center point.
-
xProperty
@Pure public javafx.beans.property.DoubleProperty xProperty()
Replies the property that is the x coordinate of the circle center.- Returns:
- the x property.
-
yProperty
@Pure public javafx.beans.property.DoubleProperty yProperty()
Replies the property that is the y coordinate of the circle center.- Returns:
- the y property.
-
getRadius
@Pure public double getRadius()
Description copied from interface:Circle2afpReplies the radius.- Specified by:
getRadiusin interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Returns:
- the radius.
-
setRadius
public void setRadius(double radius)
Description copied from interface:Circle2afpSet the radius.- Specified by:
setRadiusin interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Parameters:
radius- is the radius.
-
radiusProperty
@Pure public javafx.beans.property.DoubleProperty radiusProperty()
Replies the property that is the radius of the circle.- Returns:
- the radius property.
-
set
public void set(double x, double y, double radius)Description copied from interface:Circle2afpChange the frame of the circle.- Specified by:
setin interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Parameters:
x- x coordinate of the center point.y- y coordinate of the center point.radius- the radius.
-
boundingBoxProperty
public javafx.beans.property.ObjectProperty<Rectangle2dfx> boundingBoxProperty()
Description copied from interface:Shape2dfxReplies the property that contains the bounding box for this shape.- Specified by:
boundingBoxPropertyin interfaceShape2dfx<Circle2dfx>- Returns:
- the bounding box.
-
-