de.gsi.chart.axes.spi.transforms.DefaultAxisTransform Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chartfx-chart Show documentation
Show all versions of chartfx-chart Show documentation
This charting library ${project.artifactId}- is an extension
in the spirit of Oracle's XYChart and performance/time-proven JDataViewer charting functionalities.
Emphasis was put on plotting performance for both large number of data points and real-time displays,
as well as scientific accuracies leading to error bar/surface plots, and other scientific plotting
features (parameter measurements, fitting, multiple axes, zoom, ...).
package de.gsi.chart.axes.spi.transforms;
import de.gsi.chart.axes.Axis;
/**
* Identity axis transform
*
* @author rstein
*/
public class DefaultAxisTransform extends AbstractAxisTransform {
public DefaultAxisTransform(final Axis axis) {
super(axis);
}
@Override
public double forward(final double val) {
return val;
}
@Override
public double backward(final double val) {
return val;
}
@Override
public double getRoundedMinimumRange(final double min) {
return Math.ceil(min);
}
@Override
public double getRoundedMaximumRange(final double max) {
return Math.floor(max);
}
}