org.geotools.geometry.jts.spatialschema.geometry.geometry
Class GenericCurveImpl
java.lang.Object
org.geotools.geometry.jts.spatialschema.geometry.geometry.GenericCurveImpl
- All Implemented Interfaces:
- JTSGeometry, org.opengis.geometry.coordinate.GenericCurve
- Direct Known Subclasses:
- LineStringImpl
public abstract class GenericCurveImpl
- extends java.lang.Object
- implements org.opengis.geometry.coordinate.GenericCurve, JTSGeometry
The GenericCurveImpl
class/interface...
- Version:
- $Revision $
- Author:
- SYS Technologies, crossley
Method Summary |
protected abstract com.vividsolutions.jts.geom.Geometry |
computeJTSPeer()
Subclasses must override this method to compute the JTS equivalent of
this geometry. |
com.vividsolutions.jts.geom.Geometry |
getJTSGeometry()
Returns the JTS version of this geometry. |
void |
invalidateCachedJTSPeer()
This method must be called by subclasses whenever the user makes a change
to the geometry so that the cached JTS object can be recreated. |
protected void |
setJTSPeer(com.vividsolutions.jts.geom.Geometry g)
This method is meant to be invoked by the JTSUtils utility class when it
creates a Geometry from a JTS geometry. |
void |
setParent(JTSGeometry parent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.geometry.coordinate.GenericCurve |
asLineString, forConstructiveParam, forParam, getEndConstructiveParam, getEndParam, getEndPoint, getParamForPoint, getStartConstructiveParam, getStartParam, getStartPoint, getTangent, length, length |
parent
protected JTSGeometry parent
GenericCurveImpl
public GenericCurveImpl()
setParent
public final void setParent(JTSGeometry parent)
computeJTSPeer
protected abstract com.vividsolutions.jts.geom.Geometry computeJTSPeer()
- Subclasses must override this method to compute the JTS equivalent of
this geometry.
invalidateCachedJTSPeer
public final void invalidateCachedJTSPeer()
- This method must be called by subclasses whenever the user makes a change
to the geometry so that the cached JTS object can be recreated.
- Specified by:
invalidateCachedJTSPeer
in interface JTSGeometry
setJTSPeer
protected final void setJTSPeer(com.vividsolutions.jts.geom.Geometry g)
- This method is meant to be invoked by the JTSUtils utility class when it
creates a Geometry from a JTS geometry. This prevents the Geometry from
having to recompute the JTS peer the first time.
getJTSGeometry
public final com.vividsolutions.jts.geom.Geometry getJTSGeometry()
- Returns the JTS version of this geometry. If the geometry has not
changed since the last time this method was called, it will return the
exact same object.
- Specified by:
getJTSGeometry
in interface JTSGeometry
Copyright © 1996-2010 Geotools. All Rights Reserved.