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>
boundingBox
Bounding box property.protected javafx.beans.property.ObjectProperty<WeakReference<Segment1D<?,?>>>
segment
segment reference.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractShape1dfx()
Constructor.protected
AbstractShape1dfx(Segment1D<?,?> segment)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
clone()
Clone this shape.boolean
equals(Object obj)
GeomFactory1dfx
getGeomFactory()
Replies the geometry factory associated to this point.Segment1D<?,?>
getSegment()
Replies the segment.abstract int
hashCode()
javafx.beans.property.ObjectProperty<WeakReference<Segment1D<?,?>>>
segmentProperty()
Replies the segment property.void
setSegment(Segment1D<?,?> segment)
Set the segment.void
toJson(JsonBuffer buffer)
Replies the Json representation of this node.String
toString()
-
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:Shape1D
Replies the segment.- Specified by:
getSegment
in interfaceShape1D<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>
- Returns:
- the segment or
null
if the weak reference has lost the segment.
-
setSegment
public void setSegment(Segment1D<?,?> segment)
Description copied from interface:Shape1D
Set the segment.- Specified by:
setSegment
in interfaceShape1D<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>
- Parameters:
segment
- is the segment.
-
clone
public T clone()
Description copied from interface:Shape1D
Clone this shape.- Specified by:
clone
in interfaceShape1D<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>
- Overrides:
clone
in classObject
- Returns:
- the clone.
-
getGeomFactory
public GeomFactory1dfx getGeomFactory()
Description copied from interface:Shape1D
Replies the geometry factory associated to this point.- Specified by:
getGeomFactory
in interfaceShape1afp<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>
- Specified by:
getGeomFactory
in interfaceShape1D<Shape1dfx<?>,T extends AbstractShape1dfx<?>,Point1dfx,Vector1dfx,Segment1D<?,?>,Rectangle1dfx>
- Returns:
- the factory.
-
toJson
public void toJson(JsonBuffer buffer)
Description copied from interface:JsonableObject
Replies the Json representation of this node.- Specified by:
toJson
in interfaceJsonableObject
- Parameters:
buffer
- the Json buffer.
-
-