org.jplot2d.axtick
Class AbstractLinearTickCalculator
- java.lang.Object
-
- org.jplot2d.axtick.TickCalculator
-
- org.jplot2d.axtick.DoubleTickCalculator
-
- org.jplot2d.axtick.AbstractLinearTickCalculator
-
- All Implemented Interfaces:
- RangeAdvisor
- Direct Known Subclasses:
- ArcDmsTickCalculator, LinearTickCalculator, TimeHmsTickCalculator
public abstract class AbstractLinearTickCalculator extends DoubleTickCalculator implements RangeAdvisor
-
-
Field Summary
-
Fields inherited from class org.jplot2d.axtick.TickCalculator
AUTO_MINORTICK_NUMBER, DOUBLE_PRECISION_TOLERANCE
-
-
Constructor Summary
Constructors Constructor and Description AbstractLinearTickCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcalcValuesByTickInterval(double interval, double offset, int minorTickNumber)Calculate the tick values by the given interval and minor ticks number.voidexpandRangeByTickInterval(double interval)voidexpandRangeByTickNumber(int tickNumber)The interval will be 1,2,5 * 10^ndoublegetInterval()intgetMinorNumber()double[]getMinorValues()double[]getValues()-
Methods inherited from class org.jplot2d.axtick.DoubleTickCalculator
calcLabelFormatString, convFCm2e, getInRangeValuesIdx, getRange, isValidFormat, setRange
-
Methods inherited from class org.jplot2d.axtick.TickCalculator
calcLabelTextFormat, calcValuesByTickNumber, formatValues, formatValues, getLabelFormate
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jplot2d.axtick.RangeAdvisor
getRange, setRange
-
-
-
-
Method Detail
-
calcValuesByTickInterval
public void calcValuesByTickInterval(double interval, double offset, int minorTickNumber)Description copied from class:TickCalculatorCalculate the tick values by the given interval and minor ticks number. The minor ticks number is a proposed value, and may be different from actual minor ticks number returned byTickCalculator.getMinorNumber().- Specified by:
calcValuesByTickIntervalin classTickCalculatorminorTickNumber- if the given number isTickCalculator.AUTO_MINORTICK_NUMBER, the tick number is derived from interval.
-
expandRangeByTickNumber
public void expandRangeByTickNumber(int tickNumber)
Description copied from interface:RangeAdvisorThe interval will be 1,2,5 * 10^n- Specified by:
expandRangeByTickNumberin interfaceRangeAdvisor
-
expandRangeByTickInterval
public void expandRangeByTickInterval(double interval)
- Specified by:
expandRangeByTickIntervalin interfaceRangeAdvisor
-
getInterval
public double getInterval()
- Specified by:
getIntervalin interfaceRangeAdvisor- Specified by:
getIntervalin classTickCalculator- Returns:
- the tick interval.
-
getMinorNumber
public int getMinorNumber()
- Specified by:
getMinorNumberin classTickCalculator- Returns:
- the actual minor tick number.
-
getValues
public double[] getValues()
- Specified by:
getValuesin classDoubleTickCalculator- Returns:
- the tick values
-
getMinorValues
public double[] getMinorValues()
- Specified by:
getMinorValuesin classDoubleTickCalculator- Returns:
- the minor tick values
-
-
DMelt 3.0 © DataMelt by jWork.ORG