We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.charts.model.
Class AxisList<T extends Axis>
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.AxisList<T>
-
All Implemented Interfaces:
public class AxisList<T extends Axis> extends AbstractConfigurationObject
Alternative AxisContainer to allow multiple axes
See Also:
-
-
Constructor Summary
Constructors Constructor Description AxisList()
-
Method Summary
All Methods Modifier and Type Method Description void
addAxis(T axis)
Adds a new axis to the list
boolean
contains(Axis axis)
List<T>
getAxes()
T
getAxis(int index)
Finds the axis at the given index
int
getNumberOfAxes()
int
indexOf(Axis axis)
void
removeAxis(T axis)
Removes an axis from the list
-
-
-
Method Detail
-
getNumberOfAxes
public int getNumberOfAxes()
Returns:
the number of axes in the list
-
getAxis
public T getAxis(int index)
Finds the axis at the given index
Parameters:
index
- The index of the axisReturns:
The axis at the given index
-
addAxis
public void addAxis(T axis)
Adds a new axis to the list
Parameters:
axis
- The axis to add
-
removeAxis
public void removeAxis(T axis)
Removes an axis from the list
Parameters:
axis
- The axis to remove
-
indexOf
public int indexOf(Axis axis)
-
contains
public boolean contains(Axis axis)
-
-