public interface K2DElementFactory
extends java.io.Serializable
GeometryTypes,
ElementTypes| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Modifier and Type | Method and Description |
|---|---|
K2DElement |
createElement(Geometry geometry,
java.lang.Object[] attributes,
long id,
int elementType)
Creates a new instance of K2DElement based on the specified element type.
|
int |
getDefaultType(int geometryType)
Returns the element type that this element factory will create for the specified geometry type.
|
int[] |
getSupportedTypes(int geometryType)
Returns all element types that this element factory can create for the specified geometry type.
|
static final long serialVersionUID
K2DElement createElement(Geometry geometry, java.lang.Object[] attributes, long id, int elementType) throws java.lang.IllegalArgumentException
geometry - the element geoemtry.attributes - element attributes.id - the element unique id.elementType - the element type to create.java.lang.IllegalArgumentExceptionint[] getSupportedTypes(int geometryType)
geometryType - a geometry type.int getDefaultType(int geometryType)
geometryType - a geometry type.