com.partnersoft.geometry.measurement
Class LinearUnitTransform

java.lang.Object
  extended by com.partnersoft.geometry.xy.AbstractXyTransform
      extended by com.partnersoft.geometry.measurement.LinearUnitTransform
All Implemented Interfaces:
Immutable, XyTransform

public class LinearUnitTransform
extends AbstractXyTransform


Constructor Summary
LinearUnitTransform(LinearUnit fromUnit, LinearUnit toUnit)
           
 
Method Summary
 LinearUnit getFromUnit()
           
 LinearUnit getToUnit()
           
 boolean isIdentity()
          True if this transform will return the input unchanged, and can therefore be skipped or discarded.
protected  XyPoint transformImp(XyPoint point)
          Subclasses must implement this to do the actual work of transformation.
 
Methods inherited from class com.partnersoft.geometry.xy.AbstractXyTransform
transform, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearUnitTransform

public LinearUnitTransform(LinearUnit fromUnit,
                           LinearUnit toUnit)
Method Detail

transformImp

protected XyPoint transformImp(XyPoint point)
Description copied from class: AbstractXyTransform
Subclasses must implement this to do the actual work of transformation. It behaves the same way as AbstractXyTransform.transform(XyPoint), except that you do NOT have to check for identity - that will be done automatically.

Specified by:
transformImp in class AbstractXyTransform

isIdentity

public boolean isIdentity()
Description copied from interface: XyTransform
True if this transform will return the input unchanged, and can therefore be skipped or discarded.


getFromUnit

public LinearUnit getFromUnit()

getToUnit

public LinearUnit getToUnit()