public class ViewPortData extends java.lang.Object implements Projected
Modifier and Type | Field and Description |
---|---|
java.awt.geom.AffineTransform |
mat
Transformación afín usada en la vista actual.
|
Constructor and Description |
---|
ViewPortData() |
ViewPortData(IProjection proj,
Extent extent,
java.awt.Dimension size) |
Modifier and Type | Method and Description |
---|---|
void |
centerAt(java.awt.geom.Point2D pt)
Centrar en un punto.
|
java.lang.Object |
clone() |
java.awt.geom.Point2D |
getCenter() |
int |
getDPI() |
Extent |
getExtent() |
double |
getGeoScale()
Escala Geográfica.
|
java.lang.String |
getGeoScaleAsString(java.lang.String fmt) |
double |
getHeight() |
java.awt.geom.AffineTransform |
getMat() |
IProjection |
getProjection()
Returns the current projection.
|
java.awt.Dimension |
getSize() |
double |
getWidth() |
void |
pan(java.awt.geom.Point2D ptIni,
java.awt.geom.Point2D ptFin)
Desplaza la vista actual.
|
void |
reExtent() |
void |
reProject(ICoordTrans rp)
Changes projection of the graphical information of this object.
|
void |
setCoordSys(IProjection cs) |
void |
setDPI(int dpi) |
void |
setExtent(java.awt.Dimension sz) |
void |
setMat(java.awt.geom.AffineTransform mat) |
void |
setProjection(IProjection proj) |
void |
setSize(java.awt.Dimension sz) |
void |
setSize(double w,
double h) |
void |
zoom(double zx,
double zy,
java.awt.geom.Point2D pt) |
void |
zoom(double zoom,
java.awt.geom.Point2D pt)
zoom centrado en un punto.
|
void |
zoom(Extent extent)
zoom a un marco.
|
void |
zoomToCenter(double f)
Zoom a una escala (geográfica);
|
void |
zoomToGeoScale(double scale)
Zoom a una escala (geográfica);
|
public java.awt.geom.AffineTransform mat
public ViewPortData()
public ViewPortData(IProjection proj, Extent extent, java.awt.Dimension size)
public IProjection getProjection()
Projected
Returns the current projection.
getProjection
in interface Projected
Projected.reProject(ICoordTrans)
public void setProjection(IProjection proj)
public void reProject(ICoordTrans rp)
Projected
Changes projection of the graphical information of this object.
reProject
in interface Projected
rp
- transformation coordinates for obtaining the new projectionProjected.getProjection()
public void setCoordSys(IProjection cs)
public java.awt.geom.AffineTransform getMat()
public void setMat(java.awt.geom.AffineTransform mat)
public java.lang.Object clone()
clone
in class java.lang.Object
public double getWidth()
public double getHeight()
public java.awt.Dimension getSize()
public void setSize(double w, double h)
public void setSize(java.awt.Dimension sz)
public Extent getExtent()
public void setExtent(java.awt.Dimension sz)
public void reExtent()
public void setDPI(int dpi)
public int getDPI()
public void zoom(Extent extent)
extent
- public void zoom(double zoom, java.awt.geom.Point2D pt)
zoom
- pt
- public void zoom(double zx, double zy, java.awt.geom.Point2D pt)
public void zoomToGeoScale(double scale)
scale
- public void zoomToCenter(double f)
scale
- public void centerAt(java.awt.geom.Point2D pt)
pt
- public void pan(java.awt.geom.Point2D ptIni, java.awt.geom.Point2D ptFin)
pt
- public java.awt.geom.Point2D getCenter()
public double getGeoScale()
dpi
- resolucion en puntos por pulgadapublic java.lang.String getGeoScaleAsString(java.lang.String fmt)