org.cresques.ui.cmd
Class CmdInfo

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

public class CmdInfo
extends Cmd

Comando info. Añade al canvas la capacidad de obtener información de un elemento debajo del cursor.

Author:
"Luis W. Sevilla"
See Also:
Coverage

Field Summary
 
Fields inherited from class org.cresques.ui.cmd.Cmd
cursor, DRAG, LEFT, MIDDLE, PRESS, RELEASE, RIGHT, type
 
Constructor Summary
CmdInfo(CQMapCanvas canvas)
          Construye un nuevo CmdInfo 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

CmdInfo

public CmdInfo(CQMapCanvas canvas)
Construye un nuevo CmdInfo 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