Enum GradientType

    • Enum Constant Detail

      • LINEAR

        public static final GradientType LINEAR
        Creates an image consisting of a progressive transition between two or more colors along a straight line.
        Here is the definition.
      • RADIAL

        public static final GradientType RADIAL
        Creates an image consisting of a progressive transition between two or more colors that radiate from an origin. Its shape may be a circle or an ellipse.
        Here is the definition.
    • Method Detail

      • values

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

        public static GradientType 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
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property
      • getCssStatement

        public String getCssStatement()
        Returns the CSS statement which represents the gradient type.
        Returns:
        the CSS statement which represents the gradient type