geoComplex
Class StandardGeoCell

java.lang.Object
  extended bycomplex.StandardCell
      extended bygeoComplex.StandardGeoCell
All Implemented Interfaces:
Cell, GeoCell

public class StandardGeoCell
extends StandardCell
implements GeoCell

A standard implementation of a cell of a geometric complex.

Author:
ting

Field Summary
private  Geometry geo
           
 
Fields inherited from class complex.StandardCell
complex
 
Constructor Summary
StandardGeoCell(CellID id, IntegerMap map, int dim, GeoComplex geoComplex)
           
StandardGeoCell(CellID id, IntegerMap map, int dim, Geometry geo, GeoComplex geoComplex)
           
 
Method Summary
 boolean contains(Point p)
          Test, if the Cell contains a given point.
 GeoComplex getGeoComplex()
          Returns the GeoComplex containing this cell.
 Geometry getGeometry()
          Returns the geometric information of this cell.
 void setGeometry(Geometry geo)
           
 java.awt.Shape toShape(java.awt.geom.AffineTransform transform)
          Returns this cell as a shape, if this cell is contained in a two-dimensional complex.
 
Methods inherited from class complex.StandardCell
getBoundary, getComplex, getDim, getID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface complex.Cell
getBoundary, getComplex, getDim, getID
 

Field Detail

geo

private Geometry geo
Constructor Detail

StandardGeoCell

public StandardGeoCell(CellID id,
                       IntegerMap map,
                       int dim,
                       Geometry geo,
                       GeoComplex geoComplex)

StandardGeoCell

public StandardGeoCell(CellID id,
                       IntegerMap map,
                       int dim,
                       GeoComplex geoComplex)
Method Detail

setGeometry

public void setGeometry(Geometry geo)

getGeometry

public Geometry getGeometry()
Description copied from interface: GeoCell
Returns the geometric information of this cell.

Specified by:
getGeometry in interface GeoCell
Returns:
the associated Geometry object containing the geometric information of this cell

contains

public boolean contains(Point p)
Description copied from interface: GeoCell
Test, if the Cell contains a given point.

Specified by:
contains in interface GeoCell
Parameters:
p - a point
Returns:
true iff the point is contained in the cell

toShape

public java.awt.Shape toShape(java.awt.geom.AffineTransform transform)
Description copied from interface: GeoCell
Returns this cell as a shape, if this cell is contained in a two-dimensional complex.

Specified by:
toShape in interface GeoCell
Returns:
a Shape object describing the cell

getGeoComplex

public GeoComplex getGeoComplex()
Description copied from interface: GeoCell
Returns the GeoComplex containing this cell. This is a shortcut for (GeoComplex) getComplex().

Specified by:
getGeoComplex in interface GeoCell