|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cresques.geo.ViewPortData
public class ViewPortData
Datos de vista sobre las capas. Mantiene un conjunto de datos necesarios, que describen el modo de ver las capas actual. cmartinez: Esta clase no debería formar parte de una API, pero se deja hasta que se aborde el refactoring de libProjection.
| Field Summary | |
|---|---|
AffineTransform |
mat
Transformación afín usada en la vista actual. |
| Constructor Summary | |
|---|---|
ViewPortData()
|
|
ViewPortData(IProjection proj,
Extent extent,
Dimension size)
|
|
| Method Summary | |
|---|---|
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); |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public AffineTransform mat
| Constructor Detail |
|---|
public ViewPortData()
public ViewPortData(IProjection proj,
Extent extent,
Dimension size)
| Method Detail |
|---|
public IProjection getProjection()
ProjectedReturns the current projection.
getProjection in interface ProjectedProjected.reProject(ICoordTrans)public void setProjection(IProjection proj)
public void reProject(ICoordTrans rp)
ProjectedChanges projection of the graphical information of this object.
reProject in interface Projectedrp - transformation coordinates for obtaining the new projectionProjected.getProjection()public void setCoordSys(IProjection cs)
public AffineTransform getMat()
public void setMat(AffineTransform mat)
public Object clone()
clone in class Objectpublic 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 void pan(Point2D ptIni,
Point2D ptFin)
pt - public Point2D getCenter()
public double getGeoScale()
dpi - resolucion en puntos por pulgadapublic String getGeoScaleAsString(String fmt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||