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.Circle2ifx
clone()
Clone this shape.Point2ifx
getCenter()
Replies the center.int
getRadius()
Replies the radius.int
getX()
Replies the center X.int
getY()
Replies the center y.int
hashCode()
javafx.beans.property.IntegerProperty
radiusProperty()
Replies the property that is the radius of the circle.void
set(int x, int y, int radius)
Change the circle.void
setCenter(int x, int y)
Change the circle's center.void
setCenter(Point2D<?,?> center)
Change the circle's center.void
setRadius(int radius)
Change the radius.void
setX(int x)
Change the center X.void
setY(int y)
Change the center Y.javafx.beans.property.IntegerProperty
xProperty()
Replies the property that is the x coordinate of the circle center.javafx.beans.property.IntegerProperty
yProperty()
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:Shape2D
Clone this shape.- Specified by:
clone
in interfaceShape2D<Shape2ifx<?>,Circle2ifx,PathIterator2ai<PathElement2ifx>,Point2ifx,Vector2ifx,Rectangle2ifx>
- Overrides:
clone
in classAbstractShape2ifx<Circle2ifx>
- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classAbstractShape2ifx<Circle2ifx>
-
getX
@Pure public int getX()
Description copied from interface:Circle2ai
Replies the center X.- Specified by:
getX
in 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:Circle2ai
Replies the center y.- Specified by:
getY
in 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:Circle2ai
Change the center X.- Specified by:
setX
in interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>
- Parameters:
x
- the center x.
-
setY
public void setY(int y)
Description copied from interface:Circle2ai
Change the center Y.- Specified by:
setY
in interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>
- Parameters:
y
- the center y.
-
getCenter
public Point2ifx getCenter()
Description copied from interface:Circle2ai
Replies the center.- Specified by:
getCenter
in 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:Circle2ai
Change the circle's center.- Specified by:
setCenter
in 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:Circle2ai
Change the circle's center.- Specified by:
setCenter
in interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>
- Parameters:
center
- the center of the circle.
-
getRadius
@Pure public int getRadius()
Description copied from interface:Circle2ai
Replies the radius.- Specified by:
getRadius
in interfaceCircle2ai<Shape2ifx<?>,Circle2ifx,PathElement2ifx,Point2ifx,Vector2ifx,Rectangle2ifx>
- Returns:
- the radius.
-
setRadius
public void setRadius(int radius)
Description copied from interface:Circle2ai
Change the radius.- Specified by:
setRadius
in 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:Circle2ai
Change the circle.- Specified by:
set
in 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:Shape2ifx
Replies the property that contains the bounding box for this shape.- Specified by:
boundingBoxProperty
in interfaceShape2ifx<Circle2ifx>
- Returns:
- the bounding box.
-
-