Package org.arakhne.afc.gis.io.shape
Class MapElementGroup
- java.lang.Object
-
- org.arakhne.afc.gis.io.shape.MapElementGroup
-
public class MapElementGroup extends Object
Group of map elements.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:54
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- gisinputoutput
-
-
Field Summary
Fields Modifier and Type Field Description Collection<MapElement>
elements
Elements in the group.
-
Constructor Summary
Constructors Constructor Description MapElementGroup()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(MapElement element)
Add the given element into the group.static ShapeElementType
classifiesElement(MapElement element)
Replies the shape type that is corresponding to the given element.static Map<ShapeElementType,MapElementGroup>
classifiesElements(Collection<? extends MapElement> elements)
Replies the shape types that are corresponding to the given elements.static Map<ShapeElementType,MapElementGroup>
classifiesElements(Iterator<? extends MapElement> elements)
Replies the shape types that are corresponding to the given elements.static void
classifiesElements(Map<ShapeElementType,MapElementGroup> classification, Collection<? extends MapElement> elements)
Replies the shape types that are corresponding to the given elements.static void
classifiesElements(Map<ShapeElementType,MapElementGroup> classification, Iterator<? extends MapElement> elements)
Replies the shape types that are corresponding to the given elements.ESRIBounds
getBounds()
Replies the bounds of the group.
-
-
-
Field Detail
-
elements
public final Collection<MapElement> elements
Elements in the group.
-
-
Method Detail
-
classifiesElement
@Pure public static ShapeElementType classifiesElement(MapElement element)
Replies the shape type that is corresponding to the given element.- Parameters:
element
- the element to classify.- Returns:
- the type of the element
-
classifiesElements
@Pure public static Map<ShapeElementType,MapElementGroup> classifiesElements(Collection<? extends MapElement> elements)
Replies the shape types that are corresponding to the given elements.- Parameters:
elements
- the element to classify.- Returns:
- the types and the associated elements
-
classifiesElements
@Pure public static Map<ShapeElementType,MapElementGroup> classifiesElements(Iterator<? extends MapElement> elements)
Replies the shape types that are corresponding to the given elements.- Parameters:
elements
- the elements to classify.- Returns:
- the types and the associated elements
-
classifiesElements
public static void classifiesElements(Map<ShapeElementType,MapElementGroup> classification, Collection<? extends MapElement> elements)
Replies the shape types that are corresponding to the given elements.- Parameters:
classification
- is the map which will be filled with the classified elements.elements
- the elements to classify.
-
classifiesElements
public static void classifiesElements(Map<ShapeElementType,MapElementGroup> classification, Iterator<? extends MapElement> elements)
Replies the shape types that are corresponding to the given elements.- Parameters:
classification
- is the map which will be filled with the classified elements.elements
- the elements to classify.
-
add
void add(MapElement element)
Add the given element into the group.- Parameters:
element
- the element to add.
-
getBounds
@Pure public ESRIBounds getBounds()
Replies the bounds of the group.- Returns:
- the bounds of the group.
-
-