org.geotools.gui.tools
Class ToolFactoryImpl

java.lang.Object
  extended byorg.geotools.gui.tools.ToolFactory
      extended byorg.geotools.gui.tools.ToolFactoryImpl

public class ToolFactoryImpl
extends ToolFactory

An implementation of ToolFactory to be used to construct tools. This class should not be called directly. Instead it should be created from ToolFactory, and ToolFactory methods should be called instead.


Constructor Summary
protected ToolFactoryImpl()
          Create an instance of ToolFactoryImpl.
 
Method Summary
 ToolList createDefaultToolList()
          Creates a ToolList with Pan, ZoomIn, ZoomOut and selectedTool=ZoomIn.
 PanTool createPanTool()
          Create an instance of PanTool.
 ToolList createToolList()
          Creates an empty ToolList with selectedTool=null.
 ZoomTool createZoomTool()
          Create an instance of ZoomTool.
 ZoomTool createZoomTool(double zoomFactor)
          Create an instance of ZoomTool.
 
Methods inherited from class org.geotools.gui.tools.ToolFactory
createFactory, createFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolFactoryImpl

protected ToolFactoryImpl()
Create an instance of ToolFactoryImpl. Note that this constructor should only be called from ToolFactory.

Method Detail

createPanTool

public PanTool createPanTool()
Description copied from class: ToolFactory
Create an instance of PanTool.

Specified by:
createPanTool in class ToolFactory
Returns:
the PanTool.

createZoomTool

public ZoomTool createZoomTool()
Description copied from class: ToolFactory
Create an instance of ZoomTool.

Specified by:
createZoomTool in class ToolFactory
Returns:
the ZoomTool.

createZoomTool

public ZoomTool createZoomTool(double zoomFactor)
Create an instance of ZoomTool.

Specified by:
createZoomTool in class ToolFactory
Parameters:
zoomFactor - he factor to zoom in/out by, zoomFactor=0.5 means zoom in, zoomFactor=2 means zoom out.
Returns:
The ZoomTool.

createToolList

public ToolList createToolList()
Creates an empty ToolList with selectedTool=null.

Specified by:
createToolList in class ToolFactory
Returns:
An empty ToolList.

createDefaultToolList

public ToolList createDefaultToolList()
Creates a ToolList with Pan, ZoomIn, ZoomOut and selectedTool=ZoomIn.

Specified by:
createDefaultToolList in class ToolFactory
Returns:
An ToolList with Pan, ZoomIn, ZoomOut and selectedTool=ZoomIn.


Copyright © GeoTools. All Rights Reserved.