com.extjs.gxt.charts.client.model
Interface ScaleProvider


public interface ScaleProvider

Provides the chart scale given a minimum and maximum value.


Field Summary
static ScaleProvider DEFAULT_SCALE_PROVIDER
           
static ScaleProvider ROUNDED_NEAREST_SCALE_PROVIDER
           
 
Method Summary
 Scale calcScale(double min, double max)
          Returns the scale for the given minimum and maximum value.
 

Field Detail

DEFAULT_SCALE_PROVIDER

static final ScaleProvider DEFAULT_SCALE_PROVIDER

ROUNDED_NEAREST_SCALE_PROVIDER

static final ScaleProvider ROUNDED_NEAREST_SCALE_PROVIDER
Method Detail

calcScale

Scale calcScale(double min,
                double max)
Returns the scale for the given minimum and maximum value.

Parameters:
min - the minimum value
max - the maximum value
Returns:
the scale