com.hardcode.gdbms.engine.spatial
Interface Geometry

All Superinterfaces:
Value
All Known Implementing Classes:
AbstractGeometryValue, GeometryCollection, GeometryImpl

public interface Geometry
extends Value

Geometry used to simple operations such as draw


Field Summary
 
Fields inherited from interface com.hardcode.gdbms.engine.values.Value
BINARY, BOOLEAN, BYTE, DATE, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, TIME, TIMESTAMP
 
Method Summary
 void draw(java.awt.Graphics2D g, org.geotools.renderer.style.Style2D style)
          Draws the geometry on the specified Graphics2D with the specified style
 java.awt.geom.Rectangle2D getBounds2D()
          Gets the bounding box of the geometry
 Geometry[] getGeometries()
           
 Geometry getGeometry(int index)
           
 int getGeometryCount()
           
 int getGeometryType()
          Gets the type of the geometry.
 java.awt.geom.Point2D[] getHandlerPoints()
           
 java.awt.geom.PathIterator getPathIterator()
          Gets a path iterator over the geometry
 SnapPoint[] getSnapPoints()
           
 boolean intersects(java.awt.geom.Rectangle2D r)
          Returns true if the geometry intersects with the rectangular area defined in r
 void transform(java.awt.geom.AffineTransform mt)
          transforms the geometry
 
Methods inherited from interface com.hardcode.gdbms.engine.values.Value
and, doEquals, doHashCode, equals, getStringValue, getType, greater, greaterEqual, inversa, less, lessEqual, like, notEquals, or, producto, suma
 

Method Detail

draw

void draw(java.awt.Graphics2D g,
          org.geotools.renderer.style.Style2D style)
Draws the geometry on the specified Graphics2D with the specified style

Parameters:
g - where to draw
style - symbol to draw

transform

void transform(java.awt.geom.AffineTransform mt)
transforms the geometry

Parameters:
mt - transformation

intersects

boolean intersects(java.awt.geom.Rectangle2D r)
Returns true if the geometry intersects with the rectangular area defined in r

Parameters:
r - Rectangular area
Returns:
boolean

getBounds2D

java.awt.geom.Rectangle2D getBounds2D()
Gets the bounding box of the geometry

Returns:

getPathIterator

java.awt.geom.PathIterator getPathIterator()
Gets a path iterator over the geometry

Returns:

getGeometryType

int getGeometryType()
Gets the type of the geometry. One of the SpatialMetadata constant

Returns:

getHandlerPoints

java.awt.geom.Point2D[] getHandlerPoints()

getSnapPoints

SnapPoint[] getSnapPoints()

getGeometryCount

int getGeometryCount()

getGeometry

Geometry getGeometry(int index)

getGeometries

Geometry[] getGeometries()


Copyright © 2005-2006 . All Rights Reserved.