|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPointHandler
public class PointHandler
Wrapper for a Shapefile point.
modules/plugin/shapefile (gt-shapefile.jar)
Constructor Summary | |
---|---|
PointHandler()
|
|
PointHandler(ShapeType type,
GeometryFactory gf)
|
Method Summary | |
---|---|
int |
getLength(Object geometry)
Get the length of the given geometry Object in bytes not 16-bit words. |
ShapeType |
getShapeType()
Returns the shapefile shape type value for a point |
Object |
read(ByteBuffer buffer,
ShapeType type)
Read a geometry from the ByteBuffer. |
void |
write(ByteBuffer buffer,
Object geometry)
Write the geometry into the ByteBuffer. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointHandler(ShapeType type, GeometryFactory gf) throws ShapefileException
ShapefileException
public PointHandler()
Method Detail |
---|
public ShapeType getShapeType()
getShapeType
in interface ShapeHandler
public int getLength(Object geometry)
ShapeHandler
getLength
in interface ShapeHandler
geometry
- The geometry to analyze.
public Object read(ByteBuffer buffer, ShapeType type)
ShapeHandler
read
in interface ShapeHandler
buffer
- The ByteBuffer to read from.
public void write(ByteBuffer buffer, Object geometry)
ShapeHandler
write
in interface ShapeHandler
buffer
- The ByteBuffer to write to.geometry
- The geometry to write.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |