Class DefaultChartScales
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartScales
-
- All Implemented Interfaces:
IsDefaultScales
public final class DefaultChartScales extends Object implements IsDefaultScales
Defaults for scales/axes option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description DefaultChartScales(Scales scales)
Creates the object by scales option element instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsDefaultScale
getAxis(ScaleId scaleId, AxisKind kind)
Returns the default configuration for x axis.
-
-
-
Constructor Detail
-
DefaultChartScales
public DefaultChartScales(Scales scales)
Creates the object by scales option element instance.- Parameters:
scales
- scales option element instance.
-
-
Method Detail
-
getAxis
public IsDefaultScale getAxis(ScaleId scaleId, AxisKind kind)
Description copied from interface:IsDefaultScales
Returns the default configuration for x axis.- Specified by:
getAxis
in interfaceIsDefaultScales
- Parameters:
scaleId
- the scale id to use to get the defaultkind
- axis kind to use if the scale id is not recognizable- Returns:
- the default configuration for x axis.
-
-