net.refractions.udig.tool.info
Class InfoTool

java.lang.Object
  extended by AbstractModalTool
      extended by net.refractions.udig.tool.info.InfoTool

public class InfoTool
extends AbstractModalTool

InfoTool is Map Tool used to grab identity information about what is on the screen.

InfoTool makes use its ModalTool superclass to access RenderManager; getInfo is a first class request supported by the API. You can however trace through this code as an example for creating your own tools.

Workflow:

Version:
$Revision: 1.9 $
Author:
Jody Garnett

Field Summary
static java.lang.String CATEGORY_ID
           
static java.lang.String ID
          ID of the current tool.
 
Constructor Summary
InfoTool()
          Creates an LayerPointInfo Tool.
 
Method Summary
 void dispose()
           
 void feedback(MapMouseEvent e)
          Provides user feedback
 void mouseDragged(MapMouseEvent e)
           
 void mousePressed(MapMouseEvent e)
           
 void mouseReleased(MapMouseEvent e)
          What's this then?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
ID of the current tool.

See Also:
Constant Field Values

CATEGORY_ID

public static final java.lang.String CATEGORY_ID
See Also:
Constant Field Values
Constructor Detail

InfoTool

public InfoTool()
Creates an LayerPointInfo Tool.

Method Detail

mousePressed

public void mousePressed(MapMouseEvent e)

mouseDragged

public void mouseDragged(MapMouseEvent e)

feedback

public void feedback(MapMouseEvent e)
Provides user feedback

Parameters:
e -

mouseReleased

public void mouseReleased(MapMouseEvent e)
What's this then?

See class description for intended workflow.

See Also:
net.refractions.udig.project.ui.tool.AbstractTool#mouseReleased(MapMouseEvent)

dispose

public void dispose()
See Also:
net.refractions.udig.project.ui.tool.Tool#dispose()