public class LinearUnitTransform extends AbstractXyTransform
| Constructor and Description |
|---|
LinearUnitTransform(LinearUnit fromUnit,
LinearUnit toUnit) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
transform, transform, transformpublic LinearUnitTransform(LinearUnit fromUnit, LinearUnit toUnit)
protected XyPoint transformImp(XyPoint point)
AbstractXyTransformAbstractXyTransform.transform(XyPoint), except that you
do NOT have to check for identity - that will be done automatically.transformImp in class AbstractXyTransformpublic boolean isIdentity()
XyTransformpublic LinearUnit getFromUnit()
public LinearUnit getToUnit()