Class AbstractShape1dfx<T extends AbstractShape1dfx<?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d1.dfx.AbstractShape1dfx<T>
-
- Type Parameters:
T- the type of the shape.
- All Implemented Interfaces:
Serializable,Cloneable,Shape1afp<Shape1dfx<?>,T,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>,Shape1dfx<T>,Shape1D<Shape1dfx<?>,T,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>,JsonableObject
- Direct Known Subclasses:
AbstractRectangularShape1dfx,Rectangle1dfx
public abstract class AbstractShape1dfx<T extends AbstractShape1dfx<?>> extends Object implements Shape1dfx<T>
Abstract shape with 2 double precision floating-point FX properties.- Since:
- 14.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
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.beans.property.ObjectProperty<Rectangle1dfx>boundingBoxBounding box property.protected javafx.beans.property.ObjectProperty<WeakReference<Segment1D<?,?>>>segmentsegment reference.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractShape1dfx()Constructor.protectedAbstractShape1dfx(Segment1D<?,?> segment)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tclone()Clone this shape.booleanequals(Object obj)GeomFactory1dfxgetGeomFactory()Replies the geometry factory associated to this point.Segment1D<?,?>getSegment()Replies the segment.abstract inthashCode()javafx.beans.property.ObjectProperty<WeakReference<Segment1D<?,?>>>segmentProperty()Replies the segment property.voidsetSegment(Segment1D<?,?> segment)Set the segment.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.d1.afp.Shape1afp
contains, contains, contains, contains, getClosestPointTo, getClosestPointTo, getDistanceSquared, getDistanceSquared, intersects, intersects, toBoundingBox, translate, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d1.Shape1D
clear, equalsToShape, getClosestPointTo, getDistance, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, isEmpty, operator_add, operator_and, operator_and, operator_minus, operator_plus, operator_remove, operator_upTo, set, toBoundingBox
-
Methods inherited from interface org.arakhne.afc.math.geometry.d1.dfx.Shape1dfx
boundingBoxProperty
-
-
-
-
Field Detail
-
boundingBox
protected javafx.beans.property.ObjectProperty<Rectangle1dfx> boundingBox
Bounding box property.
-
segment
protected javafx.beans.property.ObjectProperty<WeakReference<Segment1D<?,?>>> segment
segment reference.
-
-
Constructor Detail
-
AbstractShape1dfx
protected AbstractShape1dfx()
Constructor.
-
AbstractShape1dfx
protected AbstractShape1dfx(Segment1D<?,?> segment)
Constructor.- Parameters:
segment- the segment.
-
-
Method Detail
-
segmentProperty
@Pure public javafx.beans.property.ObjectProperty<WeakReference<Segment1D<?,?>>> segmentProperty()
Replies the segment property.- Returns:
- the segment property.
-
getSegment
public Segment1D<?,?> getSegment()
Description copied from interface:Shape1DReplies the segment.- Specified by:
getSegmentin interfaceShape1D<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>- Returns:
- the segment or
nullif the weak reference has lost the segment.
-
setSegment
public void setSegment(Segment1D<?,?> segment)
Description copied from interface:Shape1DSet the segment.- Specified by:
setSegmentin interfaceShape1D<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>- Parameters:
segment- is the segment.
-
clone
public T clone()
Description copied from interface:Shape1DClone this shape.- Specified by:
clonein interfaceShape1D<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>- Overrides:
clonein classObject- Returns:
- the clone.
-
getGeomFactory
public GeomFactory1dfx getGeomFactory()
Description copied from interface:Shape1DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfaceShape1afp<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>- Specified by:
getGeomFactoryin interfaceShape1D<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>- 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.
-
-