geoComplex
Class DBGeoCell

java.lang.Object
  extended bycomplex.DBCell
      extended bygeoComplex.DBGeoCell
All Implemented Interfaces:
Cell, GeoCell

public class DBGeoCell
extends DBCell
implements GeoCell

A cell of a geometric complex, which is contained in a database.

Author:
ting

Field Summary
 
Fields inherited from class complex.DBCell
session
 
Constructor Summary
DBGeoCell(DBSession session, CellID id)
           
DBGeoCell(DBSession session, CellID id, int dim)
           
 
Method Summary
 boolean contains(Point p)
          Test, if the Cell contains a given point.
 Complex getComplex()
          Returns the complex containing this cell.
 GeoComplex getGeoComplex()
          Returns the GeoComplex containing this cell.
 Geometry getGeometry()
          Returns the geometric information of this cell.
 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.DBCell
getBoundary, 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, getDim, getID
 

Constructor Detail

DBGeoCell

public DBGeoCell(DBSession session,
                 CellID id)

DBGeoCell

public DBGeoCell(DBSession session,
                 CellID id,
                 int dim)
Method Detail

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

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

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

getComplex

public Complex getComplex()
Description copied from interface: Cell
Returns the complex containing this cell.

Specified by:
getComplex in interface Cell
Overrides:
getComplex in class DBCell