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, containRelative, getFormat, getLowerBound, getParentGraduations, getSubGraduations, getUpperBound, isLowerBoundIncluded, isUpperBoundIncluded, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontain, getFormat, getLowerBound, getParentGraduations, getSubGraduations, getUpperBound, isLowerBoundIncluded, isUpperBoundIncludedprotected 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()
GraduationsgetNewValues in interface Graduationspublic java.util.List<java.lang.Double> getAllValues()
GraduationsgetAllValues in interface Graduationspublic LinearGraduations getMore()
GraduationsgetMore in interface Graduationspublic LinearGraduations getAlternative()
GraduationsgetMore()getAlternative in interface GraduationsgetMore()public Graduations getSubGraduations()
GraduationsgetSubGraduations in interface Graduationspublic int getSubDensity()
GraduationsgetSubDensity in interface Graduations