jwo.landserf.process
Class TransformAdapter

java.lang.Object
  extended by jwo.landserf.process.TransformAdapter
All Implemented Interfaces:
Transformable

public class TransformAdapter
extends Object
implements Transformable

Provides a default transformer that leaves coordinates unchanged. This can be useful for methods that require a Transformable object where a default transformation is needed.

Version:
2.3, 4th October, 2005.
Author:
Jo Wood

Constructor Summary
TransformAdapter()
           
 
Method Summary
 boolean doInterpolation()
          Indicates whether the transformation uses nearest neighbour (false) or some interpolator (true).
 String getDescription()
          Provides a description of this transformation.
 Footprint invTransformCoords(Footprint fpIn)
          Performs an inverse transform of the location given by the footprint, but in this case, creates a new identical footprint.
 Footprint transformCoords(Footprint fpIn)
          Transforms the location given by the footprint, but in this case creates a new identical footprint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformAdapter

public TransformAdapter()
Method Detail

transformCoords

public Footprint transformCoords(Footprint fpIn)
Transforms the location given by the footprint, but in this case creates a new identical footprint.

Specified by:
transformCoords in interface Transformable
Parameters:
fpIn - Incoming footprint to transform.
Returns:
Transformed footprint (unchanged).

invTransformCoords

public Footprint invTransformCoords(Footprint fpIn)
Performs an inverse transform of the location given by the footprint, but in this case, creates a new identical footprint.

Specified by:
invTransformCoords in interface Transformable
Parameters:
fpIn - Incoming footprint on which to perform the inverse transform.
Returns:
Transformed footprint (unchanged).

getDescription

public String getDescription()
Provides a description of this transformation.

Specified by:
getDescription in interface Transformable
Returns:
Description of the transformation.

doInterpolation

public boolean doInterpolation()
Indicates whether the transformation uses nearest neighbour (false) or some interpolator (true). In this case, it always uses nearest neighbour.

Specified by:
doInterpolation in interface Transformable
Returns:
True if transformation should perform some local interpolation.


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009