Interface Graduations
- All Known Implementing Classes:
AbstractGraduations, LinearGraduations, LogarithmicGraduations
public interface Graduations
- Author:
- Pierre Lando
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontain(double value) Return true if the interval contain the given value.Return all values of this graduation.Return a child graduation with more values but less thangetMore()Return an adapted number format.doubleReturn the lower bound.getMore()Return a child graduation with more values.Return values not present in parents graduations.Return the parent graduation.intReturn the density of sub ticks.Return a child graduation for sub ticks.getSubGraduations(int N) Get the list of subgraduations corresponding to N subticks between two main consecutives ticksdoubleReturn the upper bound.booleanReturn true if the lower bound is included.booleanReturn true if the lower bound is included.
-
Method Details
-
getLowerBound
double getLowerBound()Return the lower bound.- Returns:
- the lower bound.
-
isLowerBoundIncluded
boolean isLowerBoundIncluded()Return true if the lower bound is included.- Returns:
- true if the lower bound is included.
-
getUpperBound
double getUpperBound()Return the upper bound.- Returns:
- the upper bound.
-
isUpperBoundIncluded
boolean isUpperBoundIncluded()Return true if the lower bound is included.- Returns:
- true if the lower bound is included.
-
contain
boolean contain(double value) Return true if the interval contain the given value.- Parameters:
value- the given value.- Returns:
- true if the interval contain the given value.
-
getFormat
-
getAllValues
-
getNewValues
-
getParentGraduations
-
getMore
Graduations getMore()Return a child graduation with more values.- Returns:
- a child graduation with more values.
-
getAlternative
Graduations getAlternative()Return a child graduation with more values but less thangetMore()- Returns:
- a child graduation with more values but less than
getMore()
-
getSubGraduations
Graduations getSubGraduations()Return a child graduation for sub ticks.- Returns:
- a child graduation for sub ticks.
-
getSubGraduations
-
getSubDensity
int getSubDensity()Return the density of sub ticks.- Returns:
- the density of sub ticks.
-