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.

用于计算坐标轴的刻度值.

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)
          根据最小值和最大值及数据的最大个数来确定坐标轴上的刻度值.
 

Method Detail

getTickUnits

java.lang.String[] getTickUnits(double minValue,
                                double maxValue,
                                int maxCount,
                                boolean includeZero)
根据最小值和最大值及数据的最大个数来确定坐标轴上的刻度值.

Parameters:
minValue - double 最小值.
maxValue - double 最大值.
maxCount - int 刻度值的最大个数,必须大于0.
includeZero - boolean 布尔值,是否包含0值.
Returns:
String[] 刻度值非空数组,且值按由小到大的顺序排列,数组的每个元素都是数字,(不为null).