public class Transformer
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
double |
maxGeoX |
double |
maxGeoY |
double |
minGeoX |
double |
minGeoY |
| Constructor and Description |
|---|
Transformer(double centerX,
double centerY,
float paperWidth,
float paperHeight,
double scale,
int dpi,
DistanceUnit unitEnum,
double rotation,
java.lang.String geodeticSRS,
boolean isIntegerSvg,
boolean strictEpsg4326) |
| Modifier and Type | Method and Description |
|---|---|
Transformer |
clone() |
com.itextpdf.awt.geom.AffineTransform |
getBaseTransform() |
com.itextpdf.awt.geom.AffineTransform |
getBitmapTransform() |
int |
getDpi() |
double |
getGeoH() |
com.itextpdf.awt.geom.AffineTransform |
getGeoTransform(boolean reverseRotation) |
double |
getGeoW() |
double |
getMaxGeoX() |
double |
getMaxGeoY() |
double |
getMinGeoX() |
double |
getMinGeoY() |
float |
getPaperH() |
float |
getPaperPosX() |
float |
getPaperPosY() |
float |
getPaperW() |
com.itextpdf.awt.geom.AffineTransform |
getPdfTransform() |
double |
getResolution() |
long |
getRotatedBitmapH() |
long |
getRotatedBitmapW() |
double |
getRotatedGeoH() |
double |
getRotatedGeoW() |
double |
getRotatedMaxGeoX() |
double |
getRotatedMaxGeoY() |
double |
getRotatedMinGeoX() |
double |
getRotatedMinGeoY() |
float |
getRotatedPaperH() |
float |
getRotatedPaperW() |
long |
getRotatedSvgH() |
long |
getRotatedSvgW() |
double |
getRotation() |
double |
getScale() |
double |
getStraightBitmapH() |
double |
getStraightBitmapW() |
long |
getStraightSvgH() |
long |
getStraightSvgW() |
float |
getSvgFactor() |
com.itextpdf.awt.geom.AffineTransform |
getSvgTransform() |
void |
setClipping(com.itextpdf.text.pdf.PdfContentByte dc) |
void |
setMapPos(float x,
float y) |
void |
setResolution(double resolution) |
void |
setRotation(double rotation) |
boolean |
strictEpsg4326() |
void |
zoom(Transformer mainTransformer,
float factor) |
public double minGeoX
public double minGeoY
public double maxGeoX
public double maxGeoY
public Transformer(double centerX,
double centerY,
float paperWidth,
float paperHeight,
double scale,
int dpi,
DistanceUnit unitEnum,
double rotation,
java.lang.String geodeticSRS,
boolean isIntegerSvg,
boolean strictEpsg4326)
centerX - geographic center in projection - xcenterY - geographic center in projection - ypaperWidth - e.g. map width in pt on the PDFpaperHeight - e.g. map height in pt on the PDFscale - e.g. 10000 if scale is 1:10,000dpi - as selected in requestunitEnum - the distance unit of the map e.g. DistanceUnit.M for metersrotation - the rotation of the map per the requestgeodeticSRS - if not null then it is a the srs to use with the geodeticstrictEpsg4326 - if true then EPSG:4326 should interpretted as lat/long otherwise use the "incorrect" long/latpublic double getGeoW()
public double getGeoH()
public double getStraightBitmapW()
public double getStraightBitmapH()
public long getRotatedBitmapW()
public long getRotatedBitmapH()
public double getRotatedGeoW()
public double getRotatedGeoH()
public float getRotatedPaperW()
public float getRotatedPaperH()
public double getRotatedMinGeoX()
public double getRotatedMaxGeoX()
public double getRotatedMinGeoY()
public double getRotatedMaxGeoY()
public long getRotatedSvgW()
public long getRotatedSvgH()
public long getStraightSvgW()
public long getStraightSvgH()
public float getPaperW()
public float getPaperH()
public void setMapPos(float x,
float y)
public float getPaperPosX()
public float getPaperPosY()
public com.itextpdf.awt.geom.AffineTransform getBaseTransform()
public com.itextpdf.awt.geom.AffineTransform getGeoTransform(boolean reverseRotation)
reverseRotation - True to do the rotation in the other directionpublic com.itextpdf.awt.geom.AffineTransform getSvgTransform()
public com.itextpdf.awt.geom.AffineTransform getPdfTransform()
public com.itextpdf.awt.geom.AffineTransform getBitmapTransform()
public double getScale()
public void zoom(Transformer mainTransformer, float factor)
public Transformer clone()
clone in class java.lang.Objectpublic double getMinGeoX()
public double getMinGeoY()
public double getMaxGeoX()
public double getMaxGeoY()
public float getSvgFactor()
public double getRotation()
public void setClipping(com.itextpdf.text.pdf.PdfContentByte dc)
public void setRotation(double rotation)
public double getResolution()
public void setResolution(double resolution)
public int getDpi()
public boolean strictEpsg4326()