public final class LinearGraduations extends AbstractGraduations implements Graduations
mantissa x 10^exponent
.
Where mantissa is 1, 2 or 5.
Exponent is an integer.Modifier and Type | Field and Description |
---|---|
protected int |
stepExponent
The step exponent.
|
protected int |
stepMantissa
The step mantissa.
|
Modifier and Type | Method and Description |
---|---|
static LinearGraduations |
create(double lowerBound,
boolean lowerBoundIncluded,
double upperBound,
boolean upperBoundIncluded) |
static LinearGraduations |
create(double lowerBound,
double upperBound) |
static LinearGraduations |
create(Graduations parentGraduations,
double lowerBound,
boolean lowerBoundIncluded,
double upperBound,
boolean upperBoundIncluded) |
java.util.List<java.lang.Double> |
getAllValues()
Return all values of this graduation.
|
LinearGraduations |
getAlternative()
Return a child graduation with more values but less than
getMore() |
LinearGraduations |
getMore()
Return a child graduation with more values.
|
java.util.List<java.lang.Double> |
getNewValues()
Return values not present in parents graduations.
|
int |
getSubDensity()
Return the density of sub ticks.
|
Graduations |
getSubGraduations()
Return a child graduation for sub ticks.
|
contain, getFormat, getLowerBound, getParentGraduations, getUpperBound, isLowerBoundIncluded, isUpperBoundIncluded, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contain, getFormat, getLowerBound, getParentGraduations, getUpperBound, isLowerBoundIncluded, isUpperBoundIncluded
protected final int stepExponent
protected final int stepMantissa
public static LinearGraduations create(double lowerBound, double upperBound)
public static LinearGraduations create(Graduations parentGraduations, double lowerBound, boolean lowerBoundIncluded, double upperBound, boolean upperBoundIncluded)
public static LinearGraduations create(double lowerBound, boolean lowerBoundIncluded, double upperBound, boolean upperBoundIncluded)
public java.util.List<java.lang.Double> getNewValues()
Graduations
getNewValues
in interface Graduations
public java.util.List<java.lang.Double> getAllValues()
Graduations
getAllValues
in interface Graduations
public LinearGraduations getMore()
Graduations
getMore
in interface Graduations
public LinearGraduations getAlternative()
Graduations
getMore()
getAlternative
in interface Graduations
getMore()
public Graduations getSubGraduations()
Graduations
getSubGraduations
in interface Graduations
public int getSubDensity()
Graduations
getSubDensity
in interface Graduations