Class LinearGraduations
java.lang.Object
org.scilab.forge.scirenderer.ruler.graduations.AbstractGraduations
org.scilab.forge.scirenderer.ruler.graduations.LinearGraduations
- All Implemented Interfaces:
Graduations
A linear graduation is a graduation with regular spaces mark.
The mark distance is called "Step" and have for value
mantissa x 10^exponent.
Where mantissa is 1, 2 or 5.
Exponent is an integer.- Author:
- Pierre Lando
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intThe step exponent.protected final intThe step mantissa. -
Method Summary
Modifier and TypeMethodDescriptionstatic LinearGraduationscreate(double lowerBound, boolean lowerBoundIncluded, double upperBound, boolean upperBoundIncluded) static LinearGraduationscreate(double lowerBound, double upperBound) static LinearGraduationscreate(Graduations parentGraduations, double lowerBound, boolean lowerBoundIncluded, double upperBound, boolean upperBoundIncluded) Return all values of this graduation.Return a child graduation with more values but less thangetMore()getMore()Return a child graduation with more values.Return values not present in parents graduations.intReturn the density of sub ticks.Return a child graduation for sub ticks.Methods inherited from class AbstractGraduations
contain, containRelative, getFormat, getLowerBound, getParentGraduations, getSubGraduations, getUpperBound, isLowerBoundIncluded, isUpperBoundIncluded, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Graduations
contain, getFormat, getLowerBound, getParentGraduations, getSubGraduations, getUpperBound, isLowerBoundIncluded, isUpperBoundIncluded
-
Field Details
-
stepExponent
protected final int stepExponentThe step exponent. -
stepMantissa
protected final int stepMantissaThe step mantissa.
-
-
Method Details
-
create
-
create
public static LinearGraduations create(Graduations parentGraduations, double lowerBound, boolean lowerBoundIncluded, double upperBound, boolean upperBoundIncluded) -
create
public static LinearGraduations create(double lowerBound, boolean lowerBoundIncluded, double upperBound, boolean upperBoundIncluded) -
getNewValues
Description copied from interface:GraduationsReturn values not present in parents graduations.- Specified by:
getNewValuesin interfaceGraduations- Returns:
- values not present in parents graduations.
-
getAllValues
Description copied from interface:GraduationsReturn all values of this graduation.- Specified by:
getAllValuesin interfaceGraduations- Returns:
- all values of this graduation.
-
getMore
Description copied from interface:GraduationsReturn a child graduation with more values.- Specified by:
getMorein interfaceGraduations- Returns:
- a child graduation with more values.
-
getAlternative
Description copied from interface:GraduationsReturn a child graduation with more values but less thangetMore()- Specified by:
getAlternativein interfaceGraduations- Returns:
- a child graduation with more values but less than
getMore()
-
getSubGraduations
Description copied from interface:GraduationsReturn a child graduation for sub ticks.- Specified by:
getSubGraduationsin interfaceGraduations- Returns:
- a child graduation for sub ticks.
-
getSubDensity
public int getSubDensity()Description copied from interface:GraduationsReturn the density of sub ticks.- Specified by:
getSubDensityin interfaceGraduations- Returns:
- the density of sub ticks.
-