Interface ScaleId

    • Method Detail

      • create

        static ScaleId create​(String id)
        Returns a key instance by its string value.
        Parameters:
        id - string value to use
        Returns:
        new scale id instance
      • isValid

        static boolean isValid​(String id)
        Returns true if scale id passed as argument is not null and its value could be a valid scale id.
        Parameters:
        id - scale id to be checked
        Returns:
        true if scale id passed as argument is not null and its value could be a valid scale id.
      • isValid

        static boolean isValid​(ScaleId id)
        Returns true if scale id passed as argument is not null and its value is not null as well and could be a valid scale id.
        Parameters:
        id - scale id to be checked
        Returns:
        true if scale id passed as argument is not null and its value is not null as well and could be a valid scale id.
      • checkIfValid

        static void checkIfValid​(ScaleId id)
        Checks if scale id passed as argument is not null and its value is not null as well and could be a valid scale id.
        If not, throw a IllegalArgumentException.
        Parameters:
        id - scale id to be checked
      • checkIfValid

        static void checkIfValid​(String id)
        Checks if scale id passed as argument is not null and its value is not null as well and could be a valid scale id.
        If not, throw a IllegalArgumentException.
        Parameters:
        id - scale id as string to be checked
      • checkAndGetScaleID

        static ScaleId checkAndGetScaleID​(String id,
                                          ScaleId defaultValue)
        Returns the ID of the scale checking the default ones, DefaultScaleId.
        Parameters:
        id - scale id value stored in the a object
        defaultValue - the default value if not exist
        Returns:
        the ID of the scale
      • getAxisKind

        AxisKind getAxisKind()
        Returns the default axis kind for this default scale id.
        Returns:
        the default axis kind for this default scale id