adams.data.jai.transformer
Class AbstractJAITransformer

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.data.image.AbstractImageTransformer<BufferedImageContainer>
              extended by adams.data.jai.transformer.AbstractJAITransformer
All Implemented Interfaces:
CleanUpHandler, Debuggable, Destroyable, OptionHandler, SizeOfHandler, Serializable, Comparable
Direct Known Subclasses:
Crop, GaussianBlur, Gray8, NamedSetup, PassThrough, Resize, Rotate

public abstract class AbstractJAITransformer
extends AbstractImageTransformer<BufferedImageContainer>

Abstract base class for JAI transformations. Derived classes only have to override the doTransform(BufferedImage) method. The reset() method can be used to reset an algorithms internal state, e.g., after setting options.

Version:
$Revision: 4753 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
AbstractJAITransformer()
           
 
Method Summary
static AbstractJAITransformer forCommandLine(String cmdline)
          Instantiates the transformation from the given commandline (i.e., classname and optional options).
static AbstractJAITransformer forName(String classname, String[] options)
          Instantiates the transformation with the given options.
static String[] getTransformations()
          Returns a list with classnames of transformations.
 
Methods inherited from class adams.data.image.AbstractImageTransformer
checkImage, cleanUp, compareTo, destroy, doTransform, equals, shallowCopy, shallowCopy, transform
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractJAITransformer

public AbstractJAITransformer()
Method Detail

getTransformations

public static String[] getTransformations()
Returns a list with classnames of transformations.

Returns:
the transformation classnames

forName

public static AbstractJAITransformer forName(String classname,
                                             String[] options)
Instantiates the transformation with the given options.

Parameters:
classname - the classname of the transformation to instantiate
options - the options for the transformation
Returns:
the instantiated transformation or null if an error occurred

forCommandLine

public static AbstractJAITransformer forCommandLine(String cmdline)
Instantiates the transformation from the given commandline (i.e., classname and optional options).

Parameters:
cmdline - the classname (and optional options) of the transformation to instantiate
Returns:
the instantiated transformation or null if an error occurred


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.