com.ijchart.xychart.tickunit
Interface INumberTickUnit

All Known Implementing Classes:
DateTickUnit, DoubleTickUnit, LogTickUnit, LongTickUnit

public interface INumberTickUnit

Title: IJChart

Description: a chart library for the Java(tm) platform.

Calculate the tick unit for chart data.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.

Method Summary
 java.lang.String[] getTickUnits(double minValue, double maxValue, int maxCount, boolean includeZero)
           Calculate the tick unit by minimum value,maximum value and tick unit count.
 

Method Detail

getTickUnits

java.lang.String[] getTickUnits(double minValue,
                                double maxValue,
                                int maxCount,
                                boolean includeZero)
Calculate the tick unit by minimum value,maximum value and tick unit count.

Parameters:
minValue - double The minimum value.
maxValue - double The maximum value.
maxCount - int The maximum count of tick units (must great than 0).
includeZero - boolean A boolean flag indicates whether or not include zero value.
Returns:
String[] An array of tick units,the values are sorted ascending. All elements in array is number (never null).