org.estouro.theme
Class Primitive

java.lang.Object
  extended by org.estouro.theme.Primitive

public class Primitive
extends java.lang.Object

A wrapper around GDBMS Geometry in order to provide the handler related methods

Author:
Fernando González Cortés

Constructor Summary
Primitive(com.hardcode.gdbms.engine.spatial.Geometry g, int geometryIndex)
          Creates a new Primitive
 
Method Summary
 Handler[] getHandlers()
           
 com.hardcode.gdbms.engine.spatial.SnapPoint[] getSnapPoints()
           
 com.hardcode.gdbms.engine.spatial.Geometry insertVertex(java.awt.geom.Point2D vertexPoint, double tolerance)
          Gets this geometry by adding the specified point as a new vertex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Primitive

public Primitive(com.hardcode.gdbms.engine.spatial.Geometry g,
                 int geometryIndex)
Creates a new Primitive

Parameters:
g - Geometry to be wrapped
geometryIndex - index of the geometry in the Theme it was read
Method Detail

getSnapPoints

public com.hardcode.gdbms.engine.spatial.SnapPoint[] getSnapPoints()

getHandlers

public Handler[] getHandlers()

insertVertex

public com.hardcode.gdbms.engine.spatial.Geometry insertVertex(java.awt.geom.Point2D vertexPoint,
                                                               double tolerance)
                                                        throws CannotChangeGeometryException
Gets this geometry by adding the specified point as a new vertex

Parameters:
vertexPoint -
tolerance -
Returns:
Null if the vertex cannot be inserted
Throws:
CannotChangeGeometryException - If the vertex can be inserted but it makes the geometry to be in an invalid shape


Copyright © 2005-2006 Fernando González Cortés. All Rights Reserved.