|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.renderer.lite.RendererUtilities
Class for holding utility functions that are common tasks for people using the "StreamingRenderer/Renderer".
Constructor Summary | |
RendererUtilities()
|
Method Summary | |
static double |
calculateScale(com.vividsolutions.jts.geom.Envelope envelope,
org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem,
int imageWidth,
int imageHeight,
double DPI)
Find the scale denominator of the map. |
static com.vividsolutions.jts.geom.Envelope |
createMapEnvelope(java.awt.Rectangle paintArea,
java.awt.geom.AffineTransform worldToScreen)
Creates the map's bounding box in real world coordinates ((Taken from the old LiteRenderer)) |
static java.awt.geom.AffineTransform |
worldToScreenTransform(com.vividsolutions.jts.geom.Envelope mapExtent,
java.awt.Rectangle paintArea)
Sets up the affine transform ((Taken from the old LiteRenderer)) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RendererUtilities()
Method Detail |
public static java.awt.geom.AffineTransform worldToScreenTransform(com.vividsolutions.jts.geom.Envelope mapExtent, java.awt.Rectangle paintArea)
mapExtent
- the map extentpaintArea
- the size of the rendering output area
public static com.vividsolutions.jts.geom.Envelope createMapEnvelope(java.awt.Rectangle paintArea, java.awt.geom.AffineTransform worldToScreen) throws java.awt.geom.NoninvertibleTransformException
worldToScreen
- a transform which converts World coordinates to
screen pixel coordinates.paintArea
- the size of the rendering output area
java.awt.geom.NoninvertibleTransformException
public static double calculateScale(com.vividsolutions.jts.geom.Envelope envelope, org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem, int imageWidth, int imageHeight, double DPI) throws java.lang.Exception
envelope
- coordinateReferenceSystem
- imageWidth
- imageHeight
- DPI
- screen dots per inch (OGC standard is 90)
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |