com.vividsolutions.jump.workbench.ui.cursortool
Class MeasureTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended by com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
          extended by com.vividsolutions.jump.workbench.ui.cursortool.MeasureTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class MeasureTool
extends MultiClickTool

A tool which displays cumlative length, angle and cumlative area of a linestring drawn on the screen.

Version:
1.0
Author:
Martin Davis

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Constructor Summary
MeasureTool()
           
 
Method Summary
 java.awt.Cursor getCursor()
           
 javax.swing.Icon getIcon()
           
 void mouseLocationChanged(java.awt.event.MouseEvent e)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
cancelGesture, getCoordinates, mouseDragged, mouseMoved, mousePressed, mouseReleased
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, createCursor, createCursor, createStandardSnappingPolicies, deactivate, getColor, getName, getSnapManager, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, setColor, toString, workbench, workbenchFrame
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasureTool

public MeasureTool()
Method Detail

getIcon

public javax.swing.Icon getIcon()
Returns:
null to use a default icon

getCursor

public java.awt.Cursor getCursor()
Specified by:
getCursor in interface CursorTool
Overrides:
getCursor in class AbstractCursorTool

mouseLocationChanged

public void mouseLocationChanged(java.awt.event.MouseEvent e)