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:
Serializable
public class AxisList<T extends Axis> extends AbstractConfigurationObject
Alternative AxisContainer to allow multiple axes- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AxisList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAxis(T axis)Adds a new axis to the listbooleancontains(Axis axis)List<T>getAxes()TgetAxis(int index)Finds the axis at the given indexintgetNumberOfAxes()intindexOf(Axis axis)voidremoveAxis(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 axis- Returns:
- 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)
-
-