Package repast.simphony.gis.tools
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 Summary
Modifier and TypeFieldDescriptionprotected boolean
protected org.geotools.referencing.GeodeticCalculator
protected org.piccolo2d.nodes.PPath.Double
protected DistanceSetter
protected Point2D
protected Point2D
protected javax.measure.Unit
-
Constructor Summary
ConstructorDescriptionDistanceTool
(org.geotools.map.MapContent context, javax.measure.Unit unit, DistanceSetter setter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(PiccoloMapPanel panel) void
cleanUp()
void
void
mapBoundsChanged
(org.geotools.map.MapBoundsEvent arg0) void
mouseClicked
(org.piccolo2d.event.PInputEvent event) void
mouseMoved
(org.piccolo2d.event.PInputEvent event) Methods inherited from class org.piccolo2d.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter
-
Field Details
-
path
protected org.piccolo2d.nodes.PPath.Double path -
active
protected boolean active -
start
-
startCanvas
-
unit
protected javax.measure.Unit unit -
calculator
protected org.geotools.referencing.GeodeticCalculator calculator -
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 interfaceorg.geotools.map.MapBoundsListener
-
cleanUp
public void cleanUp() -
activate
-
deactivate
public void deactivate()- Specified by:
deactivate
in interfaceMapTool
-
mouseClicked
public void mouseClicked(org.piccolo2d.event.PInputEvent event) - Overrides:
mouseClicked
in classorg.piccolo2d.event.PBasicInputEventHandler
-
mouseMoved
public void mouseMoved(org.piccolo2d.event.PInputEvent event) - Overrides:
mouseMoved
in classorg.piccolo2d.event.PBasicInputEventHandler
-
getCursor
-