Class AxisList<T extends Axis>

All Implemented Interfaces:
Serializable

public class AxisList<T extends Axis> extends AbstractConfigurationObject
Alternative AxisContainer to allow multiple axes
Version:
$Id: $Id
Author:
Vaadin
See Also:
  • Constructor Details

    • AxisList

      public AxisList()
  • Method Details

    • getNumberOfAxes

      public int getNumberOfAxes()

      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
    • getAxes

      public List<T> getAxes()

      getAxes.

      Returns:
      The list of axes. Used only for serialization.
    • 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)

      indexOf.

      Parameters:
      axis - a Axis object.
      Returns:
      a int.
    • contains

      public boolean contains(Axis axis)

      contains.

      Parameters:
      axis - a Axis object.
      Returns:
      a boolean.