com.iver.cit.gvsig.fmap.drivers.shp.write
Class SHPPoint

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.drivers.shp.write.SHPPoint
All Implemented Interfaces:
SHPShape

public class SHPPoint
extends java.lang.Object
implements SHPShape

DOCUMENT ME!

Author:
Vicente Caballero Navarro

Constructor Summary
SHPPoint()
          Crea un nuevo SHPPoint.
SHPPoint(int type)
          Crea un nuevo SHPPoint.
 
Method Summary
 int getLength(IGeometry fgeometry)
          Devuelve el tamaño de la geometría.
 int getShapeType()
          Devuelve el tipo de shape de que se trata.
 void obtainsPoints(GeneralPathXIterator iter)
          Obtiene los puntos y partes del GeneralPathXIterator del shape.
 IGeometry read(java.nio.MappedByteBuffer buffer, int type)
          Lee del buffer el shape y crea una nueva geometría.
 void write(java.nio.ByteBuffer buffer, IGeometry geometry)
          Escribe en el buffer la geometría que se pasa como parámetro.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SHPPoint

public SHPPoint(int type)
         throws ShapefileException
Crea un nuevo SHPPoint.

Parameters:
type - DOCUMENT ME!
Throws:
ShapefileException - DOCUMENT ME!

SHPPoint

public SHPPoint()
Crea un nuevo SHPPoint.

Method Detail

getShapeType

public int getShapeType()
Description copied from interface: SHPShape
Devuelve el tipo de shape de que se trata.

Specified by:
getShapeType in interface SHPShape
Returns:
Tipo de shape.
See Also:
com.iver.cit.gvsig.fmap.shp.SHPShape#getShapeType()

read

public IGeometry read(java.nio.MappedByteBuffer buffer,
                      int type)
Description copied from interface: SHPShape
Lee del buffer el shape y crea una nueva geometría.

Specified by:
read in interface SHPShape
Parameters:
buffer - Buffer de donde se lee.
type - Tipo de shape en concreto.
Returns:
Nueva geometría.
See Also:
com.iver.cit.gvsig.fmap.shp.SHPShape#read(MappedByteBuffer, int)

write

public void write(java.nio.ByteBuffer buffer,
                  IGeometry geometry)
Description copied from interface: SHPShape
Escribe en el buffer la geometría que se pasa como parámetro.

Specified by:
write in interface SHPShape
Parameters:
buffer - Buffer donde escribir.
geometry - Geometría a escribir.
See Also:
com.iver.cit.gvsig.fmap.shp.SHPShape#write(ByteBuffer, IGeometry)

getLength

public int getLength(IGeometry fgeometry)
Description copied from interface: SHPShape
Devuelve el tamaño de la geometría.

Specified by:
getLength in interface SHPShape
Parameters:
fgeometry - Geometría a medir.
Returns:
Tamaño de la geometría.
See Also:
com.iver.cit.gvsig.fmap.shp.SHPShape#getLength(int)

obtainsPoints

public void obtainsPoints(GeneralPathXIterator iter)
Description copied from interface: SHPShape
Obtiene los puntos y partes del GeneralPathXIterator del shape.

Specified by:
obtainsPoints in interface SHPShape
Parameters:
iter -
See Also:
SHPShape.obtainsPoints(com.iver.cit.gvsig.fmap.core.GeneralPathXIterator)