org.geotools.gui.tools
Class ToolFactory

java.lang.Object
  extended byorg.geotools.gui.tools.ToolFactory
Direct Known Subclasses:
ToolFactoryImpl

public abstract class ToolFactory
extends java.lang.Object

Factory for constructing Tool classes.

Version:
$Id: ToolFactory.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Cameron Shorter

Constructor Summary
ToolFactory()
           
 
Method Summary
abstract  ToolList createDefaultToolList()
          Creates an empty ToolList with selectedTool=null.
static ToolFactory createFactory()
          Create an instance of the factory.
static ToolFactory createFactory(java.lang.String factoryClass)
          Create an instance of the factory.
abstract  PanTool createPanTool()
          Create an instance of PanTool.
abstract  ToolList createToolList()
          Creates an empty ToolList with selectedTool=null.
abstract  ZoomTool createZoomTool()
          Create an instance of ZoomTool.
abstract  ZoomTool createZoomTool(double zoomFactor)
          Create an instance of ZoomTool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolFactory

public ToolFactory()
Method Detail

createFactory

public static ToolFactory createFactory()
Create an instance of the factory.

Returns:
An instance of ToolFactory, or null if ToolFactory could not be created.

createFactory

public static ToolFactory createFactory(java.lang.String factoryClass)
Create an instance of the factory.

Parameters:
factoryClass - The name of the factory, eg: "org.geotools.gui.tools.ToolFactoryImpl".
Returns:
An instance of the Factory, or null if the Factory could not be created.

createPanTool

public abstract PanTool createPanTool()
Create an instance of PanTool.

Returns:
the PanTool.

createZoomTool

public abstract ZoomTool createZoomTool()
Create an instance of ZoomTool.

Returns:
the ZoomTool.

createZoomTool

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

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 abstract ToolList createToolList()
Creates an empty ToolList with selectedTool=null.

Returns:
An empty ToolList.

createDefaultToolList

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

Returns:
An empty ToolList.


Copyright © GeoTools. All Rights Reserved.