Enum AFPShadingMode

java.lang.Object
java.lang.Enum<AFPShadingMode>
org.apache.fop.render.afp.AFPShadingMode
All Implemented Interfaces:
Serializable, Comparable<AFPShadingMode>, java.lang.constant.Constable

public enum AFPShadingMode extends Enum<AFPShadingMode>
Enumeration of the AFP shading modes.
  • Enum Constant Details

    • COLOR

      public static final AFPShadingMode COLOR
      the color mode (the default)
    • DITHERED

      public static final AFPShadingMode DITHERED
      the dithered mode
  • Method Details

    • values

      public static AFPShadingMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AFPShadingMode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Returns:
      the name of the enumeration
    • getValueOf

      public static AFPShadingMode getValueOf(String name)
      Returns the enumeration/singleton object based on its name.
      Parameters:
      name - the name of the enumeration value
      Returns:
      the enumeration object
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AFPShadingMode>