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

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

public class SHPPolygon
extends SHPMultiLine

Elemento shape de tipo Polígono.

Author:
Vicente Caballero Navarro

Field Summary
 
Fields inherited from class com.iver.cit.gvsig.fmap.drivers.shp.write.SHPMultiLine
parts, points
 
Constructor Summary
SHPPolygon()
          Crea un nuevo SHPPolygon.
SHPPolygon(int type)
          Crea un nuevo SHPPolygon.
 
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.
 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 com.iver.cit.gvsig.fmap.drivers.shp.write.SHPMultiLine
getGeneralPathX, obtainsPoints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SHPPolygon

public SHPPolygon()
Crea un nuevo SHPPolygon.


SHPPolygon

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

Parameters:
type - Tipo de shape.
Throws:
ShapefileException
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
Overrides:
getShapeType in class SHPMultiLine
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
Overrides:
read in class SHPMultiLine
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
Overrides:
write in class SHPMultiLine
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
Overrides:
getLength in class SHPMultiLine
See Also:
com.iver.cit.gvsig.fmap.shp.SHPShape#getLength(com.iver.cit.gvsig.core.BasicShape.FGeometry)