JMSLTM Numerical Library 6.1

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

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


mapUserToUnit

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

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


JMSLTM Numerical Library 6.1

Copyright © 1970-2010 Visual Numerics, Inc.
Built July 30 2010.