|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cresques.ui.cmd.Cmd org.cresques.ui.cmd.CmdZoom
Comando zoom. Añade al canvas la capacidad de aumentar y disminuir la vista.
Field Summary | |
double |
aumenta
|
double |
reduce
|
Fields inherited from class org.cresques.ui.cmd.Cmd |
cursor, DRAG, LEFT, MIDDLE, PRESS, RELEASE, RIGHT, type |
Constructor Summary | |
CmdZoom(CQMapCanvas canvas)
Construye un nuevo CmdZoom para el Canvas |
Method Summary | |
void |
cmd(java.awt.geom.Point2D pt,
int bt,
int mouseEvent)
Recibe los eventos del ratón. |
void |
zoomBox(Extent box)
Realiza un zoom que abarque el Extent; |
void |
zoomMas(java.awt.geom.Point2D pt)
Realiza un zoom de aumento, centrado en el Point2D; |
void |
zoomMenos(java.awt.geom.Point2D pt)
Realiza un zoom de disminución, centrado en el Point2D; |
Methods inherited from class org.cresques.ui.cmd.Cmd |
get, getCursor, getEventsWanted, register |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public double aumenta
public double reduce
Constructor Detail |
public CmdZoom(CQMapCanvas canvas)
canvas
- Method Detail |
public void cmd(java.awt.geom.Point2D pt, int bt, int mouseEvent)
cmd
in class Cmd
public void zoomMas(java.awt.geom.Point2D pt)
pt
- public void zoomMenos(java.awt.geom.Point2D pt)
pt
- public void zoomBox(Extent box)
box
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |