public class ViewPortData extends Object implements Projected
Modifier and Type | Field and Description |
---|---|
AffineTransform |
mat
Transformación afín usada en la vista actual.
|
Constructor and Description |
---|
ViewPortData() |
ViewPortData(IProjection proj,
Extent extent,
Dimension size) |
Modifier and Type | Method and Description |
---|---|
void |
centerAt(Point2D pt)
Centrar en un punto.
|
Object |
clone() |
Point2D |
getCenter() |
int |
getDPI() |
Extent |
getExtent() |
double |
getGeoScale()
Escala Geográfica.
|
String |
getGeoScaleAsString(String fmt) |
double |
getHeight() |
AffineTransform |
getMat() |
IProjection |
getProjection()
Returns the current projection.
|
Dimension |
getSize() |
double |
getWidth() |
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(Dimension sz) |
void |
setMat(AffineTransform mat) |
void |
setProjection(IProjection proj) |
void |
setSize(Dimension sz) |
void |
setSize(double w,
double h) |
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);
|
void |
zoomToGeoScale(double scale)
Zoom a una escala (geográfica);
|
public AffineTransform mat
public ViewPortData()
public ViewPortData(IProjection proj, Extent extent, 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 AffineTransform getMat()
public void setMat(AffineTransform mat)
public double getWidth()
public double getHeight()
public Dimension getSize()
public void setSize(double w, double h)
public void setSize(Dimension sz)
public Extent getExtent()
public void setExtent(Dimension sz)
public void reExtent()
public void setDPI(int dpi)
public int getDPI()
public void zoom(Extent extent)
extent
- public void zoom(double zoom, Point2D pt)
zoom
- pt
- public void zoom(double zx, double zy, Point2D pt)
public void zoomToGeoScale(double scale)
scale
- public void zoomToCenter(double f)
scale
- public void centerAt(Point2D pt)
pt
- public Point2D getCenter()
public double getGeoScale()
dpi
- resolucion en puntos por pulgada