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.Circle2dfx
clone()
Clone this shape.Point2dfx
getCenter()
Replies the center.double
getRadius()
Replies the radius.double
getX()
Replies the center X.double
getY()
Replies the center y.int
hashCode()
javafx.beans.property.DoubleProperty
radiusProperty()
Replies the property that is the radius of the circle.void
set(double x, double y, double radius)
Change the frame of the circle.void
setRadius(double radius)
Set the radius.void
setX(double x)
Change the x coordinate of the center.void
setY(double y)
Change the y coordinate of the center.javafx.beans.property.DoubleProperty
xProperty()
Replies the property that is the x coordinate of the circle center.javafx.beans.property.DoubleProperty
yProperty()
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:Shape2D
Clone this shape.- Specified by:
clone
in interfaceShape2D<Shape2dfx<?>,Circle2dfx,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>
- Overrides:
clone
in classAbstractShape2dfx<Circle2dfx>
- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classAbstractShape2dfx<Circle2dfx>
-
getX
@Pure public double getX()
Description copied from interface:Circle2afp
Replies the center X.- Specified by:
getX
in interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>
- Returns:
- the center x.
-
getY
@Pure public double getY()
Description copied from interface:Circle2afp
Replies the center y.- Specified by:
getY
in interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>
- Returns:
- the center y.
-
getCenter
@Pure public Point2dfx getCenter()
Description copied from interface:RectangularShape2afp
Replies the center.- Specified by:
getCenter
in interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>
- Specified by:
getCenter
in interfaceRectangularShape2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>
- Returns:
- the center.
-
setX
public void setX(double x)
Description copied from interface:Circle2afp
Change the x coordinate of the center.- Specified by:
setX
in 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:Circle2afp
Change the y coordinate of the center.- Specified by:
setY
in 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:Circle2afp
Replies the radius.- Specified by:
getRadius
in interfaceCircle2afp<Shape2dfx<?>,Circle2dfx,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>
- Returns:
- the radius.
-
setRadius
public void setRadius(double radius)
Description copied from interface:Circle2afp
Set the radius.- Specified by:
setRadius
in 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:Circle2afp
Change the frame of the circle.- Specified by:
set
in 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:Shape2dfx
Replies the property that contains the bounding box for this shape.- Specified by:
boundingBoxProperty
in interfaceShape2dfx<Circle2dfx>
- Returns:
- the bounding box.
-
-