org.geotools.gui.widget
Interface MapPane

All Superinterfaces:
java.util.EventListener, MapBoundsListener, MapLayerListListener

public interface MapPane
extends MapBoundsListener, MapLayerListListener

This class provides core functionality for drawing a map. A redraw is required if any of the parameters in the associated Context changes.

Version:
$Id: MapPane.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Cameron Shorter
Task:
TODO Should extend LayerListener as well. Ie, if features inside a \ layer change, then a redraw is required.

Method Summary
 Tool getTool()
          Deprecated. Get the tool assigned to this mapPane.
 void setTool(Tool tool)
          Deprecated. Set the tool for this mapPane.
 
Methods inherited from interface org.geotools.map.event.MapBoundsListener
mapBoundsChanged
 
Methods inherited from interface org.geotools.map.event.MapLayerListListener
layerAdded, layerChanged, layerMoved, layerRemoved
 

Method Detail

setTool

public void setTool(Tool tool)
             throws java.lang.IllegalArgumentException
Deprecated. 
Set the tool for this mapPane. The tool handles all the mouse and key actions on behalf of this mapPane. Different tools can be assigned in order to get the mapPane to behave differently.

Parameters:
tool - The tool to use for this mapPane.
Throws:
java.lang.IllegalArgumentException - if tool is null.

getTool

public Tool getTool()
Deprecated. 
Get the tool assigned to this mapPane. If none is assigned, then null is returned.

Returns:
The tool assigned to this mapPane.


Copyright © GeoTools. All Rights Reserved.