Class ESRIFileUtil.NullFactory
- java.lang.Object
-
- org.arakhne.afc.io.shape.ESRIFileUtil.NullFactory
-
- All Implemented Interfaces:
ElementFactory<Object>
- Enclosing class:
- ESRIFileUtil
public static class ESRIFileUtil.NullFactory extends Object implements ElementFactory<Object>
A factory that creates nothing.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:52
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- shapefile
-
-
Constructor Summary
Constructors Constructor Description NullFactory()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateMultiPatch(AttributeCollection provider, int shapeIndex, int[] parts, ShapeMultiPatchType[] partTypes, ESRIPoint[] points)Create a multipatch.ObjectcreateMultiPoint(AttributeCollection provider, int shapeIndex, ESRIPoint[] points, boolean hasZ)Create a multipoint.ObjectcreatePoint(AttributeCollection provider, int shape_index, ESRIPoint point)Create a point instance.ObjectcreatePolygon(AttributeCollection provider, int shapeIndex, int[] parts, ESRIPoint[] points, boolean hasZ)Create a polygon.ObjectcreatePolyline(AttributeCollection provider, int shapeIndex, int[] parts, ESRIPoint[] points, boolean hasZ)Create a polyline.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.io.shape.ElementFactory
createAttributeCollection, postAttributeReadingStage, postEntryReadingStage, postHeaderReadingStage, postReadingStage, postShapeReadingStage, preReadingStage, putAttributeIn
-
-
-
-
Method Detail
-
createPolyline
public Object createPolyline(AttributeCollection provider, int shapeIndex, int[] parts, ESRIPoint[] points, boolean hasZ)
Description copied from interface:ElementFactoryCreate a polyline.- Specified by:
createPolylinein interfaceElementFactory<Object>- Parameters:
provider- is the attribute provider which must be used by the new map element.shapeIndex- is the index of the element in the shape file.parts- is the list of the parts, ie the index of the first point in the parts.points- is the list of the points.hasZ- indicates if the z-coordinates were set.- Returns:
- an object representing the creating element, depending of your implementation.
This value will be passed to
ElementFactory.postEntryReadingStage(Object).
-
createPolygon
public Object createPolygon(AttributeCollection provider, int shapeIndex, int[] parts, ESRIPoint[] points, boolean hasZ)
Description copied from interface:ElementFactoryCreate a polygon.- Specified by:
createPolygonin interfaceElementFactory<Object>- Parameters:
provider- is the attribute provider which must be used by the new element.shapeIndex- is the index of the element in the shape file.parts- is the list of the parts, ie the index of the first point in the parts.points- is the list of the points.hasZ- indicates if the z-coordinates were set.- Returns:
- an object representing the creating element, depending of your implementation.
This value will be passed to
ElementFactory.postEntryReadingStage(Object).
-
createMultiPoint
public Object createMultiPoint(AttributeCollection provider, int shapeIndex, ESRIPoint[] points, boolean hasZ)
Description copied from interface:ElementFactoryCreate a multipoint.- Specified by:
createMultiPointin interfaceElementFactory<Object>- Parameters:
provider- is the attribute provider which must be used by the new element.shapeIndex- is the index of the element in the shape file.points- is the list of the points.hasZ- indicates if the z-coordinates were set.- Returns:
- an object representing the creating element, depending of your implementation.
This value will be passed to
ElementFactory.postEntryReadingStage(Object).
-
createPoint
public Object createPoint(AttributeCollection provider, int shape_index, ESRIPoint point)
Description copied from interface:ElementFactoryCreate a point instance.- Specified by:
createPointin interfaceElementFactory<Object>- Parameters:
provider- is the attribute provider which must be used by the new element.shape_index- is the index of the element in the shape file.point- is the location of the point.- Returns:
- an object representing the creating point, depending of your implementation.
This value will be passed to
ElementFactory.postEntryReadingStage(Object).
-
createMultiPatch
public Object createMultiPatch(AttributeCollection provider, int shapeIndex, int[] parts, ShapeMultiPatchType[] partTypes, ESRIPoint[] points)
Description copied from interface:ElementFactoryCreate a multipatch.A MultiPatch consists of a number of surface patches. Each surface patch describes a surface. The surface patches of a MultiPatch are referred to as its parts, and the type of part controls how the order of vertices of an MultiPatch part is interpreted.
A single Triangle Strip, or Triangle Fan, represents a single surface patch.
A sequence of parts that are rings can describe a polygonal surface patch with holes. The sequence typically consists of an Outer Ring, representing the outer boundary of the patch, followed by a number of Inner Rings representing holes. When the individual types of rings in a collection of rings representing a polygonal patch with holes are unknown, the sequence must start with First Ring, followed by a number of Rings. A sequence of Rings not preceded by an First Ring is treated as a sequence of Outer Rings without holes.
- Specified by:
createMultiPatchin interfaceElementFactory<Object>- Parameters:
provider- is the attribute provider which must be used by the new element.shapeIndex- is the index of the element in the shape file.parts- is the list of the parts, ie the index of the first point in the parts.partTypes- is the list of the types of the parts.points- is the list of the points.- Returns:
- an object representing the creating multipatch, depending of your implementation.
This value will be passed to
ElementFactory.postShapeReadingStage(Object).
-
-