|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSubHandler
SubHandlerPolygon
public class SubHandlerPolygon
Creates a Polygon geometry.
Field Summary | |
---|---|
protected static CGAlgorithms |
cga
|
Fields inherited from class SubHandler |
---|
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB |
Constructor Summary | |
---|---|
SubHandlerPolygon()
Creates a new instance of GMLPolygonHandler. |
Method Summary | |
---|---|
void |
addCoordinate(Coordinate coordinate)
Adds a coordinate to the current LinearRing. |
Geometry |
create(GeometryFactory geometryFactory)
Returns the completed OGC Polygon. |
boolean |
isComplete(String message)
Determines whether or not the geometry is ready to be returned. |
void |
subGeometry(String message,
int type)
Catches inner and outer LinearRings messages and handles them appropriately. |
Methods inherited from class SubHandler |
---|
getSRID, getSRS, setSRS, toString |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static CGAlgorithms cga
Constructor Detail |
---|
public SubHandlerPolygon()
Method Detail |
---|
public void subGeometry(String message, int type)
subGeometry
in class SubHandler
message
- Name of sub geometry located.type
- Type of sub geometry located.public void addCoordinate(Coordinate coordinate)
addCoordinate
in class SubHandler
coordinate
- Name of sub geometry located.public boolean isComplete(String message)
isComplete
in class SubHandler
message
- Name of GML element that prompted this check.
public Geometry create(GeometryFactory geometryFactory)
create
in class SubHandler
geometryFactory
- Geometry factory to be used in Polygon creation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |