Enum BackgroundRepeat.BackgroundRepeatValue

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NO_REPEAT
      The no repeat value which mean that the background will not be repeated, but displayed once with its original size.
      REPEAT
      The repeat value which means that the background with its original size will be repeated over the entire available space.
      ROUND
      The round value which mean that the background will stretch or compress.
      SPACE
      The space value which means that the background will be repeated as much as possible with its original size and without cropping.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BackgroundRepeat.BackgroundRepeatValue valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static BackgroundRepeat.BackgroundRepeatValue[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NO_REPEAT

        public static final BackgroundRepeat.BackgroundRepeatValue NO_REPEAT
        The no repeat value which mean that the background will not be repeated, but displayed once with its original size.
      • REPEAT

        public static final BackgroundRepeat.BackgroundRepeatValue REPEAT
        The repeat value which means that the background with its original size will be repeated over the entire available space.
      • ROUND

        public static final BackgroundRepeat.BackgroundRepeatValue ROUND
        The round value which mean that the background will stretch or compress. Initially, the available space is divided by module by the size of the background, if the result is less than half the size of the background, then the background is stretched in such a way that when it is repeated it will take up all the space, otherwise the background is compressed to fit one more background in the available space.
      • SPACE

        public static final BackgroundRepeat.BackgroundRepeatValue SPACE
        The space value which means that the background will be repeated as much as possible with its original size and without cropping. the first and last backgrounds are attached to opposite edges of the available space, and the whitespaces are evenly distributed between the backgrounds.
    • Constructor Detail

      • BackgroundRepeatValue

        private BackgroundRepeatValue()
    • Method Detail

      • values

        public static BackgroundRepeat.BackgroundRepeatValue[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BackgroundRepeat.BackgroundRepeatValue c : BackgroundRepeat.BackgroundRepeatValue.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BackgroundRepeat.BackgroundRepeatValue valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null