org.jplot2d.axtick
Class ArcDmsTickCalculator
- java.lang.Object
-
- org.jplot2d.axtick.TickCalculator
-
- org.jplot2d.axtick.DoubleTickCalculator
-
- org.jplot2d.axtick.AbstractLinearTickCalculator
-
- org.jplot2d.axtick.ArcDmsTickCalculator
-
- All Implemented Interfaces:
- RangeAdvisor
public class ArcDmsTickCalculator extends AbstractLinearTickCalculator
-
-
Field Summary
-
Fields inherited from class org.jplot2d.axtick.TickCalculator
AUTO_MINORTICK_NUMBER, DOUBLE_PRECISION_TOLERANCE
-
-
Constructor Summary
Constructors Constructor and Description ArcDmsTickCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringcalcLabelFormatString(java.lang.Object values)Calculate a proper format string to format the labels on given values.ArcDmsFormatcalcLabelTextFormat(java.lang.Object values)Calculate a proper text format to format the labels on given values.voidcalcValuesByTickNumber(int tickNumber, int minorTickNumber)Calculate the tick values by the given tick number and minor ticks number.java.lang.StringgetLabelFormate()Returns a proper format string to format the labels on ticks values returned byTickCalculator.getValues().-
Methods inherited from class org.jplot2d.axtick.AbstractLinearTickCalculator
calcValuesByTickInterval, expandRangeByTickInterval, expandRangeByTickNumber, getInterval, getMinorNumber, getMinorValues, getValues
-
Methods inherited from class org.jplot2d.axtick.DoubleTickCalculator
convFCm2e, getInRangeValuesIdx, getRange, isValidFormat, setRange
-
Methods inherited from class org.jplot2d.axtick.TickCalculator
formatValues, formatValues
-
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
-
calcValuesByTickNumber
public void calcValuesByTickNumber(int tickNumber, int minorTickNumber)Description copied from class:TickCalculatorCalculate the tick values by the given tick number 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:
calcValuesByTickNumberin classTickCalculatorminorTickNumber- if the given number isTickCalculator.AUTO_MINORTICK_NUMBER, the tick number is automatically chosen.
-
calcLabelTextFormat
public ArcDmsFormat calcLabelTextFormat(java.lang.Object values)
Description copied from class:TickCalculatorCalculate a proper text format to format the labels on given values. A calculator can just returns a text format and do not provide a format string (returns a empty string). If The returned text format isnull, a proper format string must be provided.- Specified by:
calcLabelTextFormatin classTickCalculator- Returns:
- a text format object
-
calcLabelFormatString
public java.lang.String calcLabelFormatString(java.lang.Object values)
Description copied from class:TickCalculatorCalculate a proper format string to format the labels on given values.- Overrides:
calcLabelFormatStringin classDoubleTickCalculator- Returns:
-
getLabelFormate
public java.lang.String getLabelFormate()
Description copied from class:TickCalculatorReturns a proper format string to format the labels on ticks values returned byTickCalculator.getValues(). Some calculator can derive format from its internal status directly.- Specified by:
getLabelFormatein classTickCalculator
-
-
DMelt 3.0 © DataMelt by jWork.ORG