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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected org.geotools.referencing.GeodeticCalculatorprotected org.piccolo2d.nodes.PPath.Doubleprotected DistanceSetterprotected Point2Dprotected Point2Dprotected javax.measure.Unit -
Constructor Summary
ConstructorsConstructorDescriptionDistanceTool(org.geotools.map.MapContent context, javax.measure.Unit unit, DistanceSetter setter) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(PiccoloMapPanel panel) voidcleanUp()voidvoidmapBoundsChanged(org.geotools.map.MapBoundsEvent arg0) voidmouseClicked(org.piccolo2d.event.PInputEvent event) voidmouseMoved(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:
mapBoundsChangedin interfaceorg.geotools.map.MapBoundsListener
-
cleanUp
public void cleanUp() -
activate
-
deactivate
public void deactivate()- Specified by:
deactivatein interfaceMapTool
-
mouseClicked
public void mouseClicked(org.piccolo2d.event.PInputEvent event) - Overrides:
mouseClickedin classorg.piccolo2d.event.PBasicInputEventHandler
-
mouseMoved
public void mouseMoved(org.piccolo2d.event.PInputEvent event) - Overrides:
mouseMovedin classorg.piccolo2d.event.PBasicInputEventHandler
-
getCursor
-