public class Scales extends Object
Modifier | Constructor and Description |
---|---|
protected |
Scales(ScalesOptions options)
Builds the object storing the root options element.
|
Modifier and Type | Method and Description |
---|---|
List<Axis> |
getAxes()
Returns the list of X axes.
|
Axis |
getAxisById(ScaleId scaleId)
Returns the scale with the id passed as argument or
null if not exist. |
Axis |
getAxisById(String scaleId)
Returns the scale with the id passed as argument or
null if not exist. |
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
void |
setAxes(Axis... axes)
Sets an array of X axes.
|
protected Scales(ScalesOptions options)
options
- root options element.public void setAxes(Axis... axes)
axes
- an array of axes.public Axis getAxisById(String scaleId)
null
if not exist.scaleId
- scale id to checknull
if not existpublic Axis getAxisById(ScaleId scaleId)
null
if not exist.scaleId
- scale id to checknull
if not existpublic List<Axis> getAxes()
protected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()