Class LinearGraduations
- java.lang.Object
-
- org.scilab.forge.scirenderer.ruler.graduations.AbstractGraduations
-
- org.scilab.forge.scirenderer.ruler.graduations.LinearGraduations
-
- All Implemented Interfaces:
Graduations
public final class LinearGraduations extends AbstractGraduations implements Graduations
A linear graduation is a graduation with regular spaces mark. The mark distance is called "Step" and have for valuemantissa x 10^exponent. Where mantissa is 1, 2 or 5. Exponent is an integer.- Author:
- Pierre Lando
-
-
Field Summary
Fields Modifier and Type Field Description protected intstepExponentThe step exponent.protected intstepMantissaThe step mantissa.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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)java.util.List<java.lang.Double>getAllValues()Return all values of this graduation.LinearGraduationsgetAlternative()Return a child graduation with more values but less thangetMore()LinearGraduationsgetMore()Return a child graduation with more values.java.util.List<java.lang.Double>getNewValues()Return values not present in parents graduations.intgetSubDensity()Return the density of sub ticks.GraduationsgetSubGraduations()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
-
-
-
-
Method Detail
-
create
public static LinearGraduations create(double lowerBound, double upperBound)
-
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
public java.util.List<java.lang.Double> getNewValues()
Description copied from interface:GraduationsReturn values not present in parents graduations.- Specified by:
getNewValuesin interfaceGraduations- Returns:
- values not present in parents graduations.
-
getAllValues
public java.util.List<java.lang.Double> getAllValues()
Description copied from interface:GraduationsReturn all values of this graduation.- Specified by:
getAllValuesin interfaceGraduations- Returns:
- all values of this graduation.
-
getMore
public LinearGraduations getMore()
Description copied from interface:GraduationsReturn a child graduation with more values.- Specified by:
getMorein interfaceGraduations- Returns:
- a child graduation with more values.
-
getAlternative
public LinearGraduations 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
public Graduations 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.
-
-