com.hardcode.gdbms.engine.spatial
Class GeometryImpl

java.lang.Object
  extended by com.hardcode.gdbms.engine.values.AbstractValue
      extended by com.hardcode.gdbms.engine.spatial.AbstractGeometryValue
          extended by com.hardcode.gdbms.engine.spatial.GeometryImpl
All Implemented Interfaces:
Geometry, Value

public class GeometryImpl
extends AbstractGeometryValue
implements Geometry


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 deleteHandler(int index)
           
 int doHashCode()
          The hashCode implementation.
 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()
           
 java.lang.String getStringValue(ValueWriter writer)
          Gets the string representation of the value as it is defined in the specified ValueWriter
 boolean intersects(java.awt.geom.Rectangle2D r)
          Returns true if the geometry intersects with the rectangular area defined in r
 java.lang.String toString()
          DOCUMENT ME!
 void transform(java.awt.geom.AffineTransform mt)
          transforms the geometry
 
Methods inherited from class com.hardcode.gdbms.engine.spatial.AbstractGeometryValue
equals, getType, notEquals
 
Methods inherited from class com.hardcode.gdbms.engine.values.AbstractValue
and, doEquals, equals, greater, greaterEqual, hashCode, inversa, less, lessEqual, like, or, producto, suma
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hardcode.gdbms.engine.values.Value
and, doEquals, equals, getType, greater, greaterEqual, inversa, less, lessEqual, like, notEquals, or, producto, suma
 

Method Detail

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!

draw

public void draw(java.awt.Graphics2D g,
                 org.geotools.renderer.style.Style2D style)
Description copied from interface: Geometry
Draws the geometry on the specified Graphics2D with the specified style

Specified by:
draw in interface Geometry
Parameters:
g - where to draw
style - symbol to draw
See Also:
Geometry.draw(java.awt.Graphics2D, org.geotools.renderer.style.Style2D)

intersects

public boolean intersects(java.awt.geom.Rectangle2D r)
Description copied from interface: Geometry
Returns true if the geometry intersects with the rectangular area defined in r

Specified by:
intersects in interface Geometry
Parameters:
r - Rectangular area
Returns:
boolean
See Also:
Geometry.intersects(java.awt.geom.Rectangle2D)

transform

public void transform(java.awt.geom.AffineTransform mt)
Description copied from interface: Geometry
transforms the geometry

Specified by:
transform in interface Geometry
Parameters:
mt - transformation
See Also:
Geometry.transform(java.awt.geom.AffineTransform)

doHashCode

public int doHashCode()
Description copied from interface: Value
The hashCode implementation. Every value with the same semantic information must return the same int

Specified by:
doHashCode in interface Value
Returns:
integer
See Also:
Value.doHashCode()

getStringValue

public java.lang.String getStringValue(ValueWriter writer)
Description copied from interface: Value
Gets the string representation of the value as it is defined in the specified ValueWriter

Specified by:
getStringValue in interface Value
Parameters:
writer - Specifies the string representation for the values
Returns:
String
See Also:
com.hardcode.gdbms.engine.values.Value#getStringValue(com.hardcode.gdbms.engine.data.driver.ValueWriter)

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()
Description copied from interface: Geometry
Gets the bounding box of the geometry

Specified by:
getBounds2D in interface Geometry
Returns:

getPathIterator

public java.awt.geom.PathIterator getPathIterator()
Description copied from interface: Geometry
Gets a path iterator over the geometry

Specified by:
getPathIterator in interface Geometry
Returns:

getGeometryType

public int getGeometryType()
Description copied from interface: Geometry
Gets the type of the geometry. One of the SpatialMetadata constant

Specified by:
getGeometryType in interface Geometry
Returns:

getHandlerPoints

public java.awt.geom.Point2D[] getHandlerPoints()
Specified by:
getHandlerPoints in interface Geometry
See Also:
Geometry.getHandlerPoints()

getSnapPoints

public SnapPoint[] getSnapPoints()
Specified by:
getSnapPoints in interface Geometry

deleteHandler

public void deleteHandler(int index)

getGeometryCount

public int getGeometryCount()
Specified by:
getGeometryCount in interface Geometry

getGeometry

public Geometry getGeometry(int index)
Specified by:
getGeometry in interface Geometry

getGeometries

public Geometry[] getGeometries()
Specified by:
getGeometries in interface Geometry


Copyright © 2005-2006 . All Rights Reserved.