Class Scales

    • Method Detail

      • hasAxis

        public boolean hasAxis​(String scaleId)
        Returns true if the scale with the id passed as argument exists.
        Parameters:
        scaleId - scale id to check
        Returns:
        true if the scale with the id passed as argument exists
      • hasAxis

        public boolean hasAxis​(ScaleId scaleId)
        Returns true if the scale with the id passed as argument exists.
        Parameters:
        scaleId - scale id to check
        Returns:
        true if the scale with the id passed as argument exists
      • getAxis

        public Scale getAxis​(String scaleId)
        Returns the scale with the id passed as argument or null if not exist.
        Parameters:
        scaleId - scale id to check
        Returns:
        the scale with the id passed as argument or null if not exist
      • getAxis

        public Scale getAxis​(ScaleId scaleId)
        Returns the scale with the id passed as argument or null if not exist.
        Parameters:
        scaleId - scale id to check
        Returns:
        the scale with the id passed as argument or null if not exist
      • getAxes

        public List<Scale> getAxes()
        Returns a list of X axes.
        Returns:
        a list of X axes.
      • getAxis

        public IsDefaultScale getAxis​(ScaleId scaleId,
                                      AxisKind kind)
        Description copied from interface: IsDefaultScales
        Returns the default configuration for x axis.
        Specified by:
        getAxis in interface IsDefaultScales
        Parameters:
        scaleId - the scale id to use to get the default
        kind - axis kind to use if the scale id is not recognizable
        Returns:
        the default configuration for x axis.