Class MultiShape2dfx<T extends Shape2dfx<?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.dfx.AbstractShape2dfx<MultiShape2dfx<T>>
-
- org.arakhne.afc.math.geometry.d2.dfx.MultiShape2dfx<T>
-
- Type Parameters:
T- the type of the shapes inside the multishape.
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,MultiShape2afp<Shape2dfx<?>,MultiShape2dfx<T>,T,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>,Shape2afp<Shape2dfx<?>,MultiShape2dfx<T>,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>,Shape2dfx<MultiShape2dfx<T>>,MultiShape2D<Shape2dfx<?>,MultiShape2dfx<T>,T,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>,Shape2D<Shape2dfx<?>,MultiShape2dfx<T>,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>,JsonableObject
public class MultiShape2dfx<T extends Shape2dfx<?>> extends AbstractShape2dfx<MultiShape2dfx<T>> implements MultiShape2afp<Shape2dfx<?>,MultiShape2dfx<T>,T,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>
Container for grouping of shapes.The coordinates of the shapes inside the multishape are global. They are not relative to the multishape.
Caution: The multishape does not detect the bound change of the stored shapes.
- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Thomas PIOTROWSKI, 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.afp.MultiShape2afp
MultiShape2afp.AbstractMultiShapePathIterator<IE extends PathElement2afp>, MultiShape2afp.MultiShapePathIterator<IE extends PathElement2afp>, MultiShape2afp.TransformedMultiShapePathIterator<IE extends PathElement2afp>
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d2.MultiShape2D
MultiShape2D.BackendIterator<CT extends Shape2D<?,?,?,?,?,?>>, MultiShape2D.BackendList<CT extends Shape2D<?,?,?,?,?,?>>
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d2.dfx.AbstractShape2dfx
boundingBox
-
-
Constructor Summary
Constructors Constructor Description MultiShape2dfx()Construct an empty multishape.MultiShape2dfx(Iterable<? extends T> shapes)Construct a multishape with shapes inside.MultiShape2dfx(T... shapes)Construct a multishape with shapes inside.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ObjectProperty<Rectangle2dfx>boundingBoxProperty()Replies the property that contains the bounding box for this shape.MultiShape2dfx<T>clone()Clone this shape.javafx.beans.property.ListProperty<T>elementsProperty()Replies the property that contains all the shapes in this multishape.List<T>getBackendDataList()Replies the list that contains the backend data.inthashCode()Rectangle2dfxtoBoundingBox()Replies the bounding box of this shape.voidtoBoundingBox(Rectangle2dfx box)Replies the bounds of the shape.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.dfx.AbstractShape2dfx
equals, getGeomFactory, toJson, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
Methods inherited from interface java.util.List
equals, replaceAll, sort, spliterator
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.MultiShape2afp
contains, contains, createTransformedShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getFirstShapeIntersecting, getFlatteningPathIterator, getPathIterator, getShapesIntersecting, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.MultiShape2D
add, add, addAll, addAll, clear, contains, containsAll, equalsToShape, get, getClosestPointTo, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getFirstShapeContaining, getShapesContaining, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, onBackendDataChange, remove, remove, removeAll, retainAll, set, set, size, subList, toArray, toArray
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.Shape2afp
contains, contains, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getGeomFactory, intersects, intersects, 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
-
MultiShape2dfx
public MultiShape2dfx()
Construct an empty multishape.
-
MultiShape2dfx
public MultiShape2dfx(T... shapes)
Construct a multishape with shapes inside.- Parameters:
shapes- the shapes to add into the multishape.
-
-
Method Detail
-
getBackendDataList
@Pure public List<T> getBackendDataList()
Description copied from interface:MultiShape2DReplies the list that contains the backend data.Use this function with caution. Indeed, any change made in the replied list has no consequence on the internal attributes of this multishape object.
- Specified by:
getBackendDataListin interfaceMultiShape2D<Shape2dfx<?>,MultiShape2dfx<T extends Shape2dfx<?>>,T extends Shape2dfx<?>,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>- Returns:
- the backend data list.
-
elementsProperty
public javafx.beans.property.ListProperty<T> elementsProperty()
Replies the property that contains all the shapes in this multishape.- Returns:
- the elements property.
-
boundingBoxProperty
public javafx.beans.property.ObjectProperty<Rectangle2dfx> boundingBoxProperty()
Description copied from interface:Shape2dfxReplies the property that contains the bounding box for this shape.- Specified by:
boundingBoxPropertyin interfaceShape2dfx<T extends Shape2dfx<?>>- Returns:
- the bounding box.
-
clone
public MultiShape2dfx<T> clone()
Description copied from interface:Shape2DClone this shape.- Specified by:
clonein interfaceShape2D<Shape2dfx<?>,MultiShape2dfx<T extends Shape2dfx<?>>,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>- Overrides:
clonein classAbstractShape2dfx<MultiShape2dfx<T extends Shape2dfx<?>>>- Returns:
- the clone.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<T extends Shape2dfx<?>>- Specified by:
hashCodein interfaceList<T extends Shape2dfx<?>>- Specified by:
hashCodein classAbstractShape2dfx<MultiShape2dfx<T extends Shape2dfx<?>>>
-
toBoundingBox
@Pure public Rectangle2dfx toBoundingBox()
Description copied from interface:Shape2DReplies the bounding box of this shape.- Specified by:
toBoundingBoxin interfaceShape2afp<Shape2dfx<?>,MultiShape2dfx<T extends Shape2dfx<?>>,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Specified by:
toBoundingBoxin interfaceShape2D<Shape2dfx<?>,MultiShape2dfx<T extends Shape2dfx<?>>,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>- Returns:
- the bounding box of this shape.
-
toBoundingBox
@Pure public void toBoundingBox(Rectangle2dfx box)
Description copied from interface:Shape2DReplies the bounds of the shape.- Specified by:
toBoundingBoxin interfaceMultiShape2afp<Shape2dfx<?>,MultiShape2dfx<T extends Shape2dfx<?>>,T extends Shape2dfx<?>,PathElement2dfx,Point2dfx,Vector2dfx,Rectangle2dfx>- Specified by:
toBoundingBoxin interfaceShape2D<Shape2dfx<?>,MultiShape2dfx<T extends Shape2dfx<?>>,PathIterator2afp<PathElement2dfx>,Point2dfx,Vector2dfx,Rectangle2dfx>- Parameters:
box- is set with the bounds of the shape.
-
-