com.hardcode.gdbms.engine.spatial
Class GeometryCollection

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.GeometryCollection
All Implemented Interfaces:
Geometry, Value

public class GeometryCollection
extends AbstractGeometryValue
implements Geometry


Nested Class Summary
 class GeometryCollection.CollectionIterator
           
 
Field Summary
 
Fields inherited from interface com.hardcode.gdbms.engine.values.Value
BINARY, BOOLEAN, BYTE, DATE, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, TIME, TIMESTAMP
 
Constructor Summary
GeometryCollection(Geometry[] geoms, int geometryType)
           
 
Method Summary
 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
 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, toString, 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
 

Constructor Detail

GeometryCollection

public GeometryCollection(Geometry[] geoms,
                          int geometryType)
Method Detail

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

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

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

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:

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:
Object.hashCode()

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

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
See Also:
Geometry.getHandlerPoints()

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.