Enum BroadcastConfiguration.AspectMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BroadcastConfiguration.AspectMode>
    Enclosing class:
    BroadcastConfiguration

    public static enum BroadcastConfiguration.AspectMode
    extends java.lang.Enum<BroadcastConfiguration.AspectMode>
    The AspectMode determines how an image's aspect ratio will be maintained. NONE will simply fill the bounding area with the image, disregarding the aspect ratio. FIT will fit the entire image within the bounding area while maintaining the correct aspect ratio. in practice this means that there will be letterboxing or pillarboxing. FILL will fill the bounding area with the image while maintaining the aspect ratio. in practice this means that the image will likely be cropped.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FILL  
      FIT  
      NONE  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int value  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BroadcastConfiguration.AspectMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static BroadcastConfiguration.AspectMode[] 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
    • Field Detail

      • value

        public final int value
    • Method Detail

      • values

        public static BroadcastConfiguration.AspectMode[] 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 (BroadcastConfiguration.AspectMode c : BroadcastConfiguration.AspectMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BroadcastConfiguration.AspectMode 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