Package repast.simphony.gis.tools
Class PositionTool
java.lang.Object
org.piccolo2d.event.PBasicInputEventHandler
repast.simphony.gis.tools.PositionTool
- All Implemented Interfaces:
EventListener
,org.piccolo2d.event.PInputEventListener
,MapTool
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPositionTool
(org.opengis.referencing.crs.CoordinateReferenceSystem crs, LocationSetter setter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(PiccoloMapPanel panel) void
cleanUp()
void
void
mouseEntered
(org.piccolo2d.event.PInputEvent event) void
mouseExited
(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, mouseClicked, mouseDragged, mousePressed, mouseReleased, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter
-
Field Details
-
active
protected boolean active -
setter
-
crs
protected org.opengis.referencing.crs.CoordinateReferenceSystem crs -
wgs84
protected org.opengis.referencing.crs.CoordinateReferenceSystem wgs84 -
transform
protected org.opengis.referencing.operation.MathTransform transform
-
-
Constructor Details
-
PositionTool
public PositionTool(org.opengis.referencing.crs.CoordinateReferenceSystem crs, LocationSetter setter)
-
-
Method Details
-
cleanUp
public void cleanUp() -
mouseEntered
public void mouseEntered(org.piccolo2d.event.PInputEvent event) - Overrides:
mouseEntered
in classorg.piccolo2d.event.PBasicInputEventHandler
-
mouseExited
public void mouseExited(org.piccolo2d.event.PInputEvent event) - Overrides:
mouseExited
in classorg.piccolo2d.event.PBasicInputEventHandler
-
mouseMoved
public void mouseMoved(org.piccolo2d.event.PInputEvent event) - Overrides:
mouseMoved
in classorg.piccolo2d.event.PBasicInputEventHandler
-
activate
-
deactivate
public void deactivate()- Specified by:
deactivate
in interfaceMapTool
-
getCursor
-