org.cresques.ui.cmd
Class CmdPan

java.lang.Object
  extended byorg.cresques.ui.cmd.Cmd
      extended byorg.cresques.ui.cmd.CmdPan

public class CmdPan
extends Cmd

Comando pan. Añade al canvas la capacidad de desplazar la vista.

Author:
"Luis W. Sevilla"

Field Summary
 
Fields inherited from class org.cresques.ui.cmd.Cmd
cursor, DRAG, LEFT, MIDDLE, PRESS, RELEASE, RIGHT, type
 
Constructor Summary
CmdPan(CQMapCanvas canvas)
          Construye un nuevo CmdPan para el Canvas.
 
Method Summary
 void cmd(java.awt.geom.Point2D pt, int btn, int mouseEvent)
          Recibe los eventos del ratón.
 
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
 

Constructor Detail

CmdPan

public CmdPan(CQMapCanvas canvas)
Construye un nuevo CmdPan para el Canvas.

Parameters:
canvas -
Method Detail

cmd

public void cmd(java.awt.geom.Point2D pt,
                int btn,
                int mouseEvent)
Recibe los eventos del ratón.

Specified by:
cmd in class Cmd