JMSLTM Numerical Library 4.0

com.imsl.chart
Interface Transform

All Known Implementing Classes:
TransformDate

public interface Transform

Defines a custom transformation along an axis. Axis1D has built in support for linear and logarithmic transformations. Additional transformations can be specified by setting the "CustomTransform" attribute in an Axis1D to an object that implements this interface. The interface consists of two methods that must be implemented. Each method is the inverse of the other.


Method Summary
 double mapUnitToUser(double unit)
          Maps points in the interval [0,1] to user coordinates.
 double mapUserToUnit(double user)
          Maps user coordinate to the interval [0,1].
 void setupMapping(Axis1D axis1d)
          Initializes the mappings between user and coordinate space.
 

Method Detail

mapUnitToUser

public double mapUnitToUser(double unit)
Maps points in the interval [0,1] to user coordinates.


mapUserToUnit

public double mapUserToUnit(double user)
Maps user coordinate to the interval [0,1]. The user coordinate interval is specified by the "Window" attribute for the axis with which the transform is associated.


setupMapping

public void setupMapping(Axis1D axis1d)
Initializes the mappings between user and coordinate space.


JMSLTM Numerical Library 4.0

Copyright 1970-2006 Visual Numerics, Inc.
Built June 1 2006.