public class DefaultViewPortData extends Object implements ViewPortData
Modifier and Type | Field and Description |
---|---|
AffineTransform |
mat
Transformación afín usada en la vista actual.
|
Point2D |
pxSize
Información de tamaño en pixeles.
|
Constructor and Description |
---|
DefaultViewPortData() |
DefaultViewPortData(IProjection proj,
Extent extent,
Dimension2D size) |
Modifier and Type | Method and Description |
---|---|
void |
calculateAffineTransform()
Calcula la transformación afín.
|
void |
centerAt(Point2D pt)
Centrar en un punto.
|
Object |
clone() |
Point2D |
getCenter() |
int |
getDPI() |
Extent |
getExtent() |
double |
getHeight()
Obtiene el alto de la vista
|
AffineTransform |
getMat() |
IProjection |
getProjection()
Returns the current projection.
|
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(Point2D ptIni,
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(Dimension2D sz) |
void |
setExtent(Extent ext)
Asigna la extensión del raster
|
void |
setMat(AffineTransform mat) |
void |
setProjection(IProjection proj) |
void |
setSize(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,
Point2D pt) |
void |
zoom(double zoom,
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 AffineTransform mat
public Point2D pxSize
public DefaultViewPortData()
public DefaultViewPortData(IProjection proj, Extent extent, 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 AffineTransform getMat()
getMat
in interface ViewPortData
public void setMat(AffineTransform mat)
setMat
in interface ViewPortData
public Object clone()
clone
in interface ViewPortData
clone
in class Object
public double getWidth()
getWidth
in interface ViewPortData
public double getHeight()
getHeight
in interface ViewPortData
public Dimension2D getSize()
getSize
in interface ViewPortData
public void setSize(double w, double h)
setSize
in interface ViewPortData
w
- Anchoh
- Altopublic void setSize(Dimension2D sz)
setSize
in interface ViewPortData
public Extent getExtent()
getExtent
in interface ViewPortData
public void setExtent(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, Point2D pt)
zoom
in interface ViewPortData
zoom
- pt
- public void zoom(double zx, double zy, Point2D pt)
zoom
in interface ViewPortData
public void zoomToCenter(double f)
zoomToCenter
in interface ViewPortData
scale
- public void centerAt(Point2D pt)
centerAt
in interface ViewPortData
pt
- public void pan(Point2D ptIni, Point2D ptFin)
pan
in interface ViewPortData
pt
- public 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