org.geotools.gui.tools
Class ClickPanToolImpl
java.lang.Object
org.geotools.gui.tools.AbstractTool
org.geotools.gui.tools.PanToolImpl
org.geotools.gui.tools.ClickPanToolImpl
- All Implemented Interfaces:
- ClickPanTool, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, PanTool, Tool
- public class ClickPanToolImpl
- extends PanToolImpl
- implements ClickPanTool
Pan the map so that the new extent has the click point in the middle of the
map and then zoom in/out by the zoomFactor.
- Version:
- $Id: ClickPanToolImpl.java 17672 2006-01-19 00:25:55Z desruisseaux $
- Author:
- Cameron Shorter
Method Summary |
void |
addMouseListener(java.awt.Component component,
MapContext context)
Register this tool to receive MouseEvents from component . |
void |
mousePressed(java.awt.event.MouseEvent e)
Do nothing for mousePressed. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Do nothing for mouseReleased. |
Methods inherited from class org.geotools.gui.tools.AbstractTool |
addMouseListener, addMouseMotionListener, destroy, getContext, getCursor, getName, mouseDragged, mouseEntered, mouseExited, mouseMoved, paint, removeMouseListeners, setCursor, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClickPanToolImpl
public ClickPanToolImpl()
- Construct a ZoomTool.
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Do nothing for mousePressed.
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
- Overrides:
mousePressed
in class PanToolImpl
- Parameters:
e
- MouseEvent
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Do nothing for mouseReleased.
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
- Overrides:
mouseReleased
in class PanToolImpl
- Parameters:
e
- MouseEvent
addMouseListener
public void addMouseListener(java.awt.Component component,
MapContext context)
- Register this tool to receive MouseEvents from
component
.
- Specified by:
addMouseListener
in interface Tool
- Overrides:
addMouseListener
in class PanToolImpl
- Parameters:
component
- The tool will process mouseEvents from this component.context
- The Context that will be changed by this Tool.
Copyright © GeoTools. All Rights Reserved.