Class 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 Detail

      • path

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

        protected boolean active
      • startCanvas

        protected Point2D startCanvas
      • unit

        protected javax.measure.Unit unit
      • calculator

        protected org.geotools.referencing.GeodeticCalculator calculator
    • Constructor Detail

      • DistanceTool

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

      • mapBoundsChanged

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

        public void cleanUp()
      • 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