|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMultiPointHandler
public class MultiPointHandler
A ShapeHandler that reads MultiPoint objects from a file. It returns a SimpleGeometry and decimates all points that map to the same screen location.
Constructor Summary | |
---|---|
MultiPointHandler(ShapeType type,
Envelope env,
Rectangle screenSize,
MathTransform mt,
boolean hasOpacity)
Create new instance |
Method Summary | |
---|---|
protected Object |
createGeometry(ShapeType type,
Envelope geomBBox,
double[][] transformed)
|
int |
getLength(Object geometry)
Get the length of the given geometry Object in bytes not 16-bit words. |
ShapeType |
getShapeType()
Get the ShapeType of this handler. |
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 MultiPointHandler(ShapeType type, Envelope env, Rectangle screenSize, MathTransform mt, boolean hasOpacity) throws TransformException
type
- the type of shape.env
- the area that is visible. If shape is not in area then skip.mt
- the transform to go from data to the envelope (and that should
be used to transform the shape coords)hasOpacity
-
TransformException
Method Detail |
---|
public ShapeType getShapeType()
ShapeHandler
getShapeType
in interface ShapeHandler
ShapeHandler.getShapeType()
public Object read(ByteBuffer buffer, ShapeType type)
ShapeHandler
read
in interface ShapeHandler
buffer
- The ByteBuffer to read from.
protected Object createGeometry(ShapeType type, Envelope geomBBox, double[][] transformed)
public void write(ByteBuffer buffer, Object geometry)
ShapeHandler
write
in interface ShapeHandler
buffer
- The ByteBuffer to write to.geometry
- The geometry to write.ShapeHandler.write(java.nio.ByteBuffer,
java.lang.Object)
public int getLength(Object geometry)
ShapeHandler
getLength
in interface ShapeHandler
geometry
- The geometry to analyze.
ShapeHandler.getLength(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |