public class UserDefinedScaleCalculator extends ScaleCalculator
Modifier and Type | Field and Description |
---|---|
private double |
userDefinedIncrement |
private double |
userDefinedMinimum |
increment
Constructor and Description |
---|
UserDefinedScaleCalculator(double userDefinedMinimum,
double userDefinedIncrement)
It would seem to make sense to pass in the min and the max, but we want to allow
people to use custom implementations which will be created when the AxisChart
constructor gets called and we will not have looped the data to find the min
and max yet.
|
Modifier and Type | Method and Description |
---|---|
protected void |
computeIncrement()
Computes the axis increment WITHOUT taking into account the user specified rounding
criteria and sets it to the super class increment variable.
|
computeScaleValues, getIncrement, getMaxValue, getMinValue, getNumberOfScaleItems, getRoundingPowerOfTen, round, roundTheIncrement, setMaxValue, setMinValue, setNumberOfScaleItems, setRoundingPowerOfTen, toString
private double userDefinedMinimum
private double userDefinedIncrement
public UserDefinedScaleCalculator(double userDefinedMinimum, double userDefinedIncrement)
userDefinedMinimum
- userDefinedIncrement
- protected void computeIncrement()
computeIncrement
in class ScaleCalculator