public class Scales extends AbstractModel<Options,IsDefaultScales> implements IsDefaultScales
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SINGLE_AXIS_ID
Default name of axis when the chart has got only 1 scale (polar, radar) is "scale"
|
static String |
DEFAULT_X_AXIS_ID
Default name of X axis is "x-axis-0"
|
static String |
DEFAULT_Y_AXIS_ID
Default name of Y axis is "y-axis-0"
|
Constructor and Description |
---|
Scales(IsDefaultScales defaultValues)
Creates a scales object by defaults values.
|
Modifier and Type | Method and Description |
---|---|
List<Scale> |
getXAxes()
Returns a list of X axes.
|
IsDefaultScale |
getXAxis()
Returns the default configuration for x axis.
|
List<Scale> |
getYAxes()
Returns a list of Y axes.
|
IsDefaultScale |
getYAxis()
Returns the default configuration for y axis.
|
boolean |
isDisplay()
Returns if the scales are shown.
|
void |
setDisplay(boolean display)
Sets if the scales are shown.
|
void |
setXAxes(Scale... scales)
Sets all X axes of chart.
|
void |
setYAxes(Scale... scales)
Sets all Y axes of chart.
|
checkAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModel
getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public static final String DEFAULT_X_AXIS_ID
public static final String DEFAULT_Y_AXIS_ID
public static final String DEFAULT_SINGLE_AXIS_ID
public Scales(IsDefaultScales defaultValues)
defaultValues
- default values of scalespublic void setDisplay(boolean display)
display
- true
if the scales are shown.public boolean isDisplay()
isDisplay
in interface IsDefaultScales
true
if the scales are shown.public void setXAxes(Scale... scales)
scales
- array of axes.public void setYAxes(Scale... scales)
scales
- array of axes.public IsDefaultScale getXAxis()
IsDefaultScales
getXAxis
in interface IsDefaultScales
public IsDefaultScale getYAxis()
IsDefaultScales
getYAxis
in interface IsDefaultScales