Class AbstractShape2dfx<T extends AbstractShape2dfx<?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.dfx.AbstractShape2dfx<T>
-
- Type Parameters:
T- the type of the shape.
- All Implemented Interfaces:
Serializable,Cloneable,Shape2afp<Shape2dfx<?>,T,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>,Shape2dfx<T>,Shape2D<Shape2dfx<?>,T,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>,JsonableObject
- Direct Known Subclasses:
AbstractRectangularShape2dfx,Circle2dfx,MultiShape2dfx,OrientedRectangle2dfx,Parallelogram2dfx,Path2dfx,Rectangle2dfx,Segment2dfx,Triangle2dfx
public abstract class AbstractShape2dfx<T extends AbstractShape2dfx<?>> extends Object implements Shape2dfx<T>
Abstract shape with 2 double precision floating-point FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Olivier LAMOTTE, Hamza JAFFALI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.beans.property.ObjectProperty<Rectangle2dfx>boundingBoxBounding box property.
-
Constructor Summary
Constructors Constructor Description AbstractShape2dfx()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tclone()Clone this shape.booleanequals(Object obj)GeomFactory2dfxgetGeomFactory()Replies the geometry factory associated to this point.abstract inthashCode()voidtoJson(JsonBuffer buffer)Replies the Json representation of this node.StringtoString()-
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.Shape2afp
contains, contains, contains, contains, createTransformedShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, toBoundingBox, translate, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.Shape2D
clear, equalsToPathIterator, equalsToShape, getClosestPointTo, getDistance, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getPathIterator, getPathIterator, isEmpty, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo, set, toBoundingBox
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.dfx.Shape2dfx
boundingBoxProperty
-
-
-
-
Field Detail
-
boundingBox
protected javafx.beans.property.ObjectProperty<Rectangle2dfx> boundingBox
Bounding box property.
-
-
Method Detail
-
clone
public T clone()
Description copied from interface:Shape2DClone this shape.- Specified by:
clonein interfaceShape2D<Shape2dfx<?>,T extends AbstractShape2dfx<?>,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>- Overrides:
clonein classObject- Returns:
- the clone.
-
getGeomFactory
public final GeomFactory2dfx getGeomFactory()
Description copied from interface:Shape2DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfaceShape2afp<Shape2dfx<?>,T extends AbstractShape2dfx<?>,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Specified by:
getGeomFactoryin interfaceShape2D<Shape2dfx<?>,T extends AbstractShape2dfx<?>,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>- Returns:
- the factory.
-
toJson
public void toJson(JsonBuffer buffer)
Description copied from interface:JsonableObjectReplies the Json representation of this node.- Specified by:
toJsonin interfaceJsonableObject- Parameters:
buffer- the Json buffer.
-
-