Class ToolkitFactory

  extended by com.octo.captcha.component.image.utils.ToolkitFactory

public class ToolkitFactory
extends java.lang.Object

Description: This Factory is used in order to switch from the java.awt.Toolkit component to other implementation like PJA Toolkit. By default this factory return the java.awt.Toolkit object. But if the the parameter toolkit.implementation is fixed as a parameter of the virtual machine with the value of the class name of another implementation of Toolkit, this factory return an implementation of this class. For exemple if you set to your virtual machine -Dtoolkit.implementation=com.eteks.awt.PJAToolkit, the factory returns an implementation of com.eteks.awt.PJAToolkit

see for more info.

Field Summary
static java.lang.String TOOLKIT_IMPL
Constructor Summary
Method Summary
static java.awt.Toolkit getToolkit()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static java.lang.String TOOLKIT_IMPL
Constructor Detail


public ToolkitFactory()
Method Detail


public static java.awt.Toolkit getToolkit()

Copyright 2003-2009 JCaptcha. All Rights Reserved.