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 int
The step exponent.protected final int
The step mantissa. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) 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.int
Return the density of sub ticks.Return a child graduation for sub ticks.Methods inherited from class org.scilab.forge.scirenderer.ruler.graduations.AbstractGraduations
contain, containRelative, getFormat, getLowerBound, getParentGraduations, getSubGraduations, getUpperBound, isLowerBoundIncluded, isUpperBoundIncluded, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.scilab.forge.scirenderer.ruler.graduations.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:Graduations
Return values not present in parents graduations.- Specified by:
getNewValues
in interfaceGraduations
- Returns:
- values not present in parents graduations.
-
getAllValues
Description copied from interface:Graduations
Return all values of this graduation.- Specified by:
getAllValues
in interfaceGraduations
- Returns:
- all values of this graduation.
-
getMore
Description copied from interface:Graduations
Return a child graduation with more values.- Specified by:
getMore
in interfaceGraduations
- Returns:
- a child graduation with more values.
-
getAlternative
Description copied from interface:Graduations
Return a child graduation with more values but less thangetMore()
- Specified by:
getAlternative
in interfaceGraduations
- Returns:
- a child graduation with more values but less than
getMore()
-
getSubGraduations
Description copied from interface:Graduations
Return a child graduation for sub ticks.- Specified by:
getSubGraduations
in interfaceGraduations
- Returns:
- a child graduation for sub ticks.
-
getSubDensity
public int getSubDensity()Description copied from interface:Graduations
Return the density of sub ticks.- Specified by:
getSubDensity
in interfaceGraduations
- Returns:
- the density of sub ticks.
-