com.iver.cit.gvsig.fmap.operations.strategies
Class DiskShapeInfo

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.operations.strategies.DiskShapeInfo
All Implemented Interfaces:
ShapeInfo

public class DiskShapeInfo
extends java.lang.Object
implements ShapeInfo


Constructor Summary
DiskShapeInfo()
           
 
Method Summary
 void addShapeInfo(int index, java.awt.geom.Rectangle2D boundingBox, int type)
           
 void addShapeInfo(java.awt.geom.Rectangle2D boundingBox, int type)
          Añade al final de la estructura de datos la información de una geometría
 java.awt.geom.Rectangle2D getBoundingBox(int index)
          Obtiene el bounding box de la geometría index-ésima
 int getType(int index)
          Obtiene el tipo de la geometría index-ésima
 void setShapeInfo(int index, java.awt.geom.Rectangle2D boundingBox, int type)
          Establece en la posición index-ésima de la estructura de datos la información de una geometría
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskShapeInfo

public DiskShapeInfo()
Method Detail

addShapeInfo

public void addShapeInfo(java.awt.geom.Rectangle2D boundingBox,
                         int type)
Description copied from interface: ShapeInfo
Añade al final de la estructura de datos la información de una geometría

Specified by:
addShapeInfo in interface ShapeInfo
Parameters:
boundingBox - Extent del shape.
type - Tipo de shape.
See Also:
ShapeInfo.addShapeInfo(java.awt.geom.Rectangle2D, int)

getBoundingBox

public java.awt.geom.Rectangle2D getBoundingBox(int index)
Description copied from interface: ShapeInfo
Obtiene el bounding box de la geometría index-ésima

Specified by:
getBoundingBox in interface ShapeInfo
Parameters:
index - índice de la geometría.
Returns:
Extent de la geometría.
See Also:
ShapeInfo.getBoundingBox(int)

getType

public int getType(int index)
Description copied from interface: ShapeInfo
Obtiene el tipo de la geometría index-ésima

Specified by:
getType in interface ShapeInfo
Parameters:
index - índice.
Returns:
Tipo de geometría.
See Also:
ShapeInfo.getType(int)

addShapeInfo

public void addShapeInfo(int index,
                         java.awt.geom.Rectangle2D boundingBox,
                         int type)
                  throws java.lang.ArrayIndexOutOfBoundsException
Throws:
java.lang.ArrayIndexOutOfBoundsException
See Also:
com.iver.cit.gvsig.fmap.operations.strategies.ShapeInfo#addShapeInfo(int, java.awt.geom.Rectangle2D, int)

setShapeInfo

public void setShapeInfo(int index,
                         java.awt.geom.Rectangle2D boundingBox,
                         int type)
                  throws java.lang.ArrayIndexOutOfBoundsException
Description copied from interface: ShapeInfo
Establece en la posición index-ésima de la estructura de datos la información de una geometría

Specified by:
setShapeInfo in interface ShapeInfo
Parameters:
index - índice.
boundingBox - Extent del shape.
type - Tipo de shape.
Throws:
java.lang.ArrayIndexOutOfBoundsException - Si se intenta establecer la información para una geometría que no existe
See Also:
ShapeInfo.setShapeInfo(int, java.awt.geom.Rectangle2D, int)