Class Circle2ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.ifx.AbstractShape2ifx<Circle2ifx>
-
- org.arakhne.afc.math.geometry.d2.ifx.Circle2ifx
-
- All Implemented Interfaces:
Serializable,Cloneable,Circle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>,Shape2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>,Shape2ifx<Circle2ifx>,Shape2D<Shape2ifx<?>,Circle2ifx,PathIterator2ai<PathElement2ifx>,Point2ifx,Vector2ifx,Rectangle2ifx>,JsonableObject
public class Circle2ifx extends AbstractShape2ifx<Circle2ifx> implements Circle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>
A circle with 2 integer FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND
- 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.ai.Circle2ai
Circle2ai.AbstractCirclePathIterator<IE extends PathElement2ai>, Circle2ai.CirclePathIterator<IE extends PathElement2ai>, Circle2ai.CirclePerimeterIterator<P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>, Circle2ai.TransformedCirclePathIterator<IE extends PathElement2ai>
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d2.ifx.AbstractShape2ifx
boundingBox
-
-
Constructor Summary
Constructors Constructor Description Circle2ifx()Construct an empty circle.Circle2ifx(int x, int y, int radius)Construct a circle at the given position and with the given radius.Circle2ifx(Circle2ai<?,?,?,?,?,?> circle)Constructor by copy.Circle2ifx(Circle2ifx circle)Constructor by setting.Circle2ifx(Point2ifx center, int radius)Construct a circle by setting the given position and radius.Circle2ifx(Point2D<?,?> center, int radius)Construct a circle at the given position and with the given radius.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ObjectProperty<Rectangle2ifx>boundingBoxProperty()Replies the property that contains the bounding box for this shape.Circle2ifxclone()Clone this shape.Point2ifxgetCenter()Replies the center.intgetRadius()Replies the radius.intgetX()Replies the center X.intgetY()Replies the center y.inthashCode()javafx.beans.property.IntegerPropertyradiusProperty()Replies the property that is the radius of the circle.voidset(int x, int y, int radius)Change the circle.voidsetCenter(int x, int y)Change the circle's center.voidsetCenter(Point2D<?,?> center)Change the circle's center.voidsetRadius(int radius)Change the radius.voidsetX(int x)Change the center X.voidsetY(int y)Change the center Y.javafx.beans.property.IntegerPropertyxProperty()Replies the property that is the x coordinate of the circle center.javafx.beans.property.IntegerPropertyyProperty()Replies the property that is the y coordinate of the circle center.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.ifx.AbstractShape2ifx
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.ai.Circle2ai
clear, contains, contains, equalsToShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getFlatteningPathIterator, getPathIterator, getPointIterator, getPointIterator, intersects, intersects, intersects, intersects, intersects, isEmpty, set, set, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.ai.Shape2ai
contains, contains, createTransformedShape, getClosestPointTo, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getGeomFactory, intersects, intersects, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.Shape2D
equalsToPathIterator, getDistance, getDistance, getPathIterator, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo
-
-
-
-
Constructor Detail
-
Circle2ifx
public Circle2ifx()
Construct an empty circle.
-
Circle2ifx
public Circle2ifx(Point2D<?,?> center, int radius)
Construct a circle at the given position and with the given radius.- Parameters:
center- the center of the circle.radius- the radius of the circle.
-
Circle2ifx
public Circle2ifx(Point2ifx center, int radius)
Construct a circle by setting the given position and radius.- Parameters:
center- the center of the circle.radius- the radius of the circle.
-
Circle2ifx
public Circle2ifx(int x, int y, int radius)Construct a circle at the given position and with the given 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.
-
Circle2ifx
public Circle2ifx(Circle2ai<?,?,?,?,?,?> circle)
Constructor by copy.- Parameters:
circle- the circle to copy.
-
Circle2ifx
public Circle2ifx(Circle2ifx circle)
Constructor by setting.- Parameters:
circle- the circle to set.
-
-
Method Detail
-
clone
public Circle2ifx clone()
Description copied from interface:Shape2DClone this shape.- Specified by:
clonein interfaceShape2D<Shape2ifx<?>,Circle2ifx,PathIterator2ai<PathElement2ifx>,Point2ifx,Vector2ifx,Rectangle2ifx>- Overrides:
clonein classAbstractShape2ifx<Circle2ifx>- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classAbstractShape2ifx<Circle2ifx>
-
getX
@Pure public int getX()
Description copied from interface:Circle2aiReplies the center X.- Specified by:
getXin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Returns:
- the center x.
-
xProperty
@Pure public javafx.beans.property.IntegerProperty xProperty()
Replies the property that is the x coordinate of the circle center.- Returns:
- the x property.
-
getY
@Pure public int getY()
Description copied from interface:Circle2aiReplies the center y.- Specified by:
getYin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Returns:
- the center y.
-
yProperty
@Pure public javafx.beans.property.IntegerProperty yProperty()
Replies the property that is the y coordinate of the circle center.- Returns:
- the y property.
-
setX
public void setX(int x)
Description copied from interface:Circle2aiChange the center X.- Specified by:
setXin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Parameters:
x- the center x.
-
setY
public void setY(int y)
Description copied from interface:Circle2aiChange the center Y.- Specified by:
setYin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Parameters:
y- the center y.
-
getCenter
public Point2ifx getCenter()
Description copied from interface:Circle2aiReplies the center.- Specified by:
getCenterin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Returns:
- a copy of the center.
-
setCenter
public void setCenter(int x, int y)Description copied from interface:Circle2aiChange the circle's center.- Specified by:
setCenterin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Parameters:
x- x coordinate of the center of the circle.y- y coordinate of the center of the circle.
-
setCenter
public void setCenter(Point2D<?,?> center)
Description copied from interface:Circle2aiChange the circle's center.- Specified by:
setCenterin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Parameters:
center- the center of the circle.
-
getRadius
@Pure public int getRadius()
Description copied from interface:Circle2aiReplies the radius.- Specified by:
getRadiusin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Returns:
- the radius.
-
setRadius
public void setRadius(int radius)
Description copied from interface:Circle2aiChange the radius.- Specified by:
setRadiusin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Parameters:
radius- the radius.
-
radiusProperty
@Pure public javafx.beans.property.IntegerProperty radiusProperty()
Replies the property that is the radius of the circle.- Returns:
- the radius property.
-
set
public void set(int x, int y, int radius)Description copied from interface:Circle2aiChange the circle.- Specified by:
setin interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>- Parameters:
x- the x coordinate of the center.y- the y coordinate of the center.radius- the radiusof the center.
-
boundingBoxProperty
public javafx.beans.property.ObjectProperty<Rectangle2ifx> boundingBoxProperty()
Description copied from interface:Shape2ifxReplies the property that contains the bounding box for this shape.- Specified by:
boundingBoxPropertyin interfaceShape2ifx<Circle2ifx>- Returns:
- the bounding box.
-
-