|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGeometryHandlerUtilities
public class GeometryHandlerUtilities
Useful methods common to all geometry handlers
Constructor Summary | |
---|---|
GeometryHandlerUtilities()
|
Method Summary | |
---|---|
static ScreenMap |
calculateScreenSize(Rectangle screenSize,
boolean hasOpacity)
|
static Point2D |
calculateSpan(MathTransform mt,
int x,
int y)
calculates the distance between the centers of the two pixels at x,y |
static Envelope |
readBounds(ByteBuffer buffer)
DOCUMENT ME! |
static void |
transform(ShapeType type,
MathTransform mt,
double[] src,
double[] dest,
int numPoints)
Applies the specied transformation to the points in src, dropping the transformed points in dest. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryHandlerUtilities()
Method Detail |
---|
public static Envelope readBounds(ByteBuffer buffer)
buffer
-
public static void transform(ShapeType type, MathTransform mt, double[] src, double[] dest, int numPoints) throws TransformException
type
- mt
- src
- dest
-
TransformException
public static Point2D calculateSpan(MathTransform mt, int x, int y) throws NoninvertibleTransformException, TransformException
mt
- the transform to use to calculate the centers.x
- the x coordinate at which to make the calculationy
- the y coordinate at which to make the calculation
NoninvertibleTransformException
TransformException
public static ScreenMap calculateScreenSize(Rectangle screenSize, boolean hasOpacity) throws TransformException, NoninvertibleTransformException
TransformException
NoninvertibleTransformException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |