org.geotools.renderer.shape
Class GeometryHandlerUtilities

java.lang.Object
  extended byorg.geotools.renderer.shape.GeometryHandlerUtilities

public class GeometryHandlerUtilities
extends java.lang.Object

Useful methods common to all geometry handlers

Since:
2.1.x
Author:
jeichar

Constructor Summary
GeometryHandlerUtilities()
           
 
Method Summary
static ScreenMap calculateScreenSize(com.vividsolutions.jts.geom.Envelope env, org.opengis.referencing.operation.MathTransform mt, boolean hasOpacity)
           
static java.awt.geom.Point2D calculateSpan(org.opengis.referencing.operation.MathTransform mt)
           
static com.vividsolutions.jts.geom.Envelope readBounds(java.nio.ByteBuffer buffer)
          DOCUMENT ME!
static void transform(ShapeType type, org.opengis.referencing.operation.MathTransform mt, double[] src, double[] dest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryHandlerUtilities

public GeometryHandlerUtilities()
Method Detail

readBounds

public static com.vividsolutions.jts.geom.Envelope readBounds(java.nio.ByteBuffer buffer)
DOCUMENT ME!

Parameters:
buffer -
Returns:

transform

public static void transform(ShapeType type,
                             org.opengis.referencing.operation.MathTransform mt,
                             double[] src,
                             double[] dest)
                      throws org.opengis.referencing.operation.TransformException
Throws:
org.opengis.referencing.operation.TransformException

calculateSpan

public static java.awt.geom.Point2D calculateSpan(org.opengis.referencing.operation.MathTransform mt)
                                           throws org.opengis.referencing.operation.NoninvertibleTransformException,
                                                  org.opengis.referencing.operation.TransformException
Throws:
org.opengis.referencing.operation.NoninvertibleTransformException
org.opengis.referencing.operation.TransformException

calculateScreenSize

public static ScreenMap calculateScreenSize(com.vividsolutions.jts.geom.Envelope env,
                                            org.opengis.referencing.operation.MathTransform mt,
                                            boolean hasOpacity)
                                     throws org.opengis.referencing.operation.TransformException,
                                            org.opengis.referencing.operation.NoninvertibleTransformException
Throws:
org.opengis.referencing.operation.TransformException
org.opengis.referencing.operation.NoninvertibleTransformException


Copyright © GeoTools. All Rights Reserved.