Class DistanceTool

java.lang.Object
org.piccolo2d.event.PBasicInputEventHandler
repast.simphony.gis.tools.DistanceTool
All Implemented Interfaces:
EventListener, org.geotools.map.MapBoundsListener, org.piccolo2d.event.PInputEventListener, MapTool

public class DistanceTool extends org.piccolo2d.event.PBasicInputEventHandler implements MapTool, org.geotools.map.MapBoundsListener
  • Field Details

    • path

      protected org.piccolo2d.nodes.PPath.Double path
    • active

      protected boolean active
    • start

      protected Point2D start
    • startCanvas

      protected Point2D startCanvas
    • unit

      protected javax.measure.Unit unit
    • calculator

      protected org.geotools.referencing.GeodeticCalculator calculator
    • setter

      protected DistanceSetter setter
  • Constructor Details

    • DistanceTool

      public DistanceTool(org.geotools.map.MapContent context, javax.measure.Unit unit, DistanceSetter setter)
  • Method Details

    • mapBoundsChanged

      public void mapBoundsChanged(org.geotools.map.MapBoundsEvent arg0)
      Specified by:
      mapBoundsChanged in interface org.geotools.map.MapBoundsListener
    • cleanUp

      public void cleanUp()
    • activate

      public void activate(PiccoloMapPanel panel)
      Specified by:
      activate in interface MapTool
    • deactivate

      public void deactivate()
      Specified by:
      deactivate in interface MapTool
    • mouseClicked

      public void mouseClicked(org.piccolo2d.event.PInputEvent event)
      Overrides:
      mouseClicked in class org.piccolo2d.event.PBasicInputEventHandler
    • mouseMoved

      public void mouseMoved(org.piccolo2d.event.PInputEvent event)
      Overrides:
      mouseMoved in class org.piccolo2d.event.PBasicInputEventHandler
    • getCursor

      public Cursor getCursor()
      Specified by:
      getCursor in interface MapTool