public class DefaultViewPortData extends java.lang.Object implements ViewPortData
Modifier and Type | Field and Description |
---|---|
java.awt.geom.AffineTransform |
mat
Transformación afín usada en la vista actual.
|
java.awt.geom.Point2D |
pxSize
Información de tamaño en pixeles.
|
Constructor and Description |
---|
DefaultViewPortData() |
DefaultViewPortData(IProjection proj,
Extent extent,
java.awt.geom.Dimension2D size) |
Modifier and Type | Method and Description |
---|---|
void |
calculateAffineTransform()
Calcula la transformación afín.
|
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 |
getHeight()
Obtiene el alto de la vista
|
java.awt.geom.AffineTransform |
getMat() |
IProjection |
getProjection()
Returns the current projection.
|
java.awt.geom.Dimension2D |
getSize()
Obtiene el tamaño de la vista
|
Time |
getTime()
Gets the time information of the viewport requested
|
double |
getWidth()
Obtiene el ancho de la vista
|
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.geom.Dimension2D sz) |
void |
setExtent(Extent ext)
Asigna la extensión del raster
|
void |
setMat(java.awt.geom.AffineTransform mat) |
void |
setProjection(IProjection proj) |
void |
setSize(java.awt.geom.Dimension2D sz) |
void |
setSize(double w,
double h)
Asigna el ancho y alto de la vista
|
void |
setTime(Time time)
Sets the time information of the viewport requested
|
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);
|
public java.awt.geom.AffineTransform mat
public java.awt.geom.Point2D pxSize
public DefaultViewPortData()
public DefaultViewPortData(IProjection proj, Extent extent, java.awt.geom.Dimension2D size)
public IProjection getProjection()
Projected
Returns the current projection.
getProjection
in interface Projected
getProjection
in interface ViewPortData
Projected.reProject(ICoordTrans)
public void setProjection(IProjection proj)
setProjection
in interface ViewPortData
public void reProject(ICoordTrans rp)
Projected
Changes projection of the graphical information of this object.
reProject
in interface Projected
reProject
in interface ViewPortData
rp
- transformation coordinates for obtaining the new projectionProjected.getProjection()
public void setCoordSys(IProjection cs)
setCoordSys
in interface ViewPortData
public java.awt.geom.AffineTransform getMat()
getMat
in interface ViewPortData
public void setMat(java.awt.geom.AffineTransform mat)
setMat
in interface ViewPortData
public java.lang.Object clone()
clone
in interface ViewPortData
clone
in class java.lang.Object
public double getWidth()
getWidth
in interface ViewPortData
public double getHeight()
getHeight
in interface ViewPortData
public java.awt.geom.Dimension2D getSize()
getSize
in interface ViewPortData
public void setSize(double w, double h)
setSize
in interface ViewPortData
w
- Anchoh
- Altopublic void setSize(java.awt.geom.Dimension2D sz)
setSize
in interface ViewPortData
public Extent getExtent()
getExtent
in interface ViewPortData
public void setExtent(java.awt.geom.Dimension2D sz)
setExtent
in interface ViewPortData
public void setExtent(Extent ext)
setExtent
in interface ViewPortData
ext
- Extentpublic void reExtent()
reExtent
in interface ViewPortData
public void setDPI(int dpi)
setDPI
in interface ViewPortData
public int getDPI()
getDPI
in interface ViewPortData
public void zoom(Extent extent)
zoom
in interface ViewPortData
extent
- public void zoom(double zoom, java.awt.geom.Point2D pt)
zoom
in interface ViewPortData
zoom
- pt
- public void zoom(double zx, double zy, java.awt.geom.Point2D pt)
zoom
in interface ViewPortData
public void zoomToCenter(double f)
zoomToCenter
in interface ViewPortData
scale
- public void centerAt(java.awt.geom.Point2D pt)
centerAt
in interface ViewPortData
pt
- public void pan(java.awt.geom.Point2D ptIni, java.awt.geom.Point2D ptFin)
pan
in interface ViewPortData
pt
- public java.awt.geom.Point2D getCenter()
getCenter
in interface ViewPortData
public void calculateAffineTransform()
calculateAffineTransform
in interface ViewPortData
public Time getTime()
ViewPortData
getTime
in interface ViewPortData
public void setTime(Time time)
ViewPortData
setTime
in interface ViewPortData