Package org.geotools.swing.tool
Class ZoomOutTool
Object
MapMouseAdapter
CursorTool
AbstractZoomTool
ZoomOutTool
- All Implemented Interfaces:
 MapMouseListener
A cursor tool to zoom out the map pane display.
 
For mouse clicks, the display will be zoomed-out such that the map centre is the position of the mouse click and the map width and height are calculated as:
   len = len.old * z 
 where z is the linear zoom increment (>= 1.0)- Since:
 - 2.6
 - Author:
 - Michael Bedward
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PointCursor hotspot coordinatesstatic final StringCursorstatic final StringIcon for the controlstatic final StringTool namestatic final StringTool tip textFields inherited from class AbstractZoomTool
DEFAULT_ZOOM_FACTOR, zoom - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns false to indicate that this tool does not draw a box on the map display when the mouse is being draggedGet the mouse cursor for this toolvoidZoom out by the currently set increment, with the map centred at the location (in world coords) of the mouse clickMethods inherited from class AbstractZoomTool
getZoom, setZoomMethods inherited from class CursorTool
getMapPane, setMapPaneMethods inherited from class MapMouseAdapter
onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelMoved 
- 
Field Details
- 
TOOL_NAME
Tool name - 
TOOL_TIP
Tool tip text - 
CURSOR_IMAGE
Cursor- See Also:
 
 - 
CURSOR_HOTSPOT
Cursor hotspot coordinates - 
ICON_IMAGE
Icon for the control- See Also:
 
 
 - 
 - 
Constructor Details
- 
ZoomOutTool
public ZoomOutTool()Constructor 
 - 
 - 
Method Details
- 
onMouseClicked
Zoom out by the currently set increment, with the map centred at the location (in world coords) of the mouse click- Specified by:
 onMouseClickedin interfaceMapMouseListener- Overrides:
 onMouseClickedin classMapMouseAdapter- Parameters:
 ev- the mouse event
 - 
getCursor
Get the mouse cursor for this tool- Overrides:
 getCursorin classCursorTool- Returns:
 - the default cursor
 
 - 
drawDragBox
public boolean drawDragBox()Returns false to indicate that this tool does not draw a box on the map display when the mouse is being dragged- Overrides:
 drawDragBoxin classCursorTool- Returns:
 - true if this tool supports drawing a drag-box on the map; false otherwise
 
 
 -