com.rapidminer.gui.plotter
Interface AxisTransformation

All Known Implementing Classes:
AxisTransformationId, AxisTransformationLog

public interface AxisTransformation

Transforms the given value, e.g. by just returning it (id) or applying a log function.

Author:
Ingo Mierswa

Method Summary
 double adaptTicsMax(double max, double ticSize)
          Adapts the maximum corresponding to the given tic size.
 double adaptTicsMin(double min, double ticSize)
          Adapts the minimum corresponding to the given tic size.
 java.lang.String format(double value, int formatNumber)
          Returns the formatted value.
 double inverseTransform(double value)
          Returns the inverse transformation of the given value, e.g. just returning it (id) or applying a exponential function (for log transformation).
 double transform(double value)
          Transforms the given value, e.g. by just returning it (id) or applying a log function.
 

Method Detail

transform

double transform(double value)
Transforms the given value, e.g. by just returning it (id) or applying a log function. Please note that this method might throw an IllegalArgumentException if the number is not supported.


inverseTransform

double inverseTransform(double value)
Returns the inverse transformation of the given value, e.g. just returning it (id) or applying a exponential function (for log transformation). Please note that this method might throw an IllegalArgumentException if the number is not supported.


format

java.lang.String format(double value,
                        int formatNumber)
Returns the formatted value. Might return null. The format number indicates the number of format calls done before.


adaptTicsMin

double adaptTicsMin(double min,
                    double ticSize)
Adapts the minimum corresponding to the given tic size.


adaptTicsMax

double adaptTicsMax(double max,
                    double ticSize)
Adapts the maximum corresponding to the given tic size.



Copyright © 2001-2009 by Rapid-I