Enum CompositeMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CompositeMode>

    public enum CompositeMode
    extends java.lang.Enum<CompositeMode>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Arithmetic
      The arithmetic operation is useful for combining the output from the feDiffuseLighting and feSpecularLighting filters with texture data.
      Atop
      The parts of the source graphic defined in the in attribute, which overlap the destination graphic defined in the in2 attribute, replace the destination graphic.
      In
      The parts of the source graphic defined by the in attribute that overlap the destination graphic defined in the in2 attribute, replace the destination graphic.
      Lighter
      The sum of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute is displayed.
      Out
      The parts of the source graphic defined by the in attribute that fall outside the destination graphic defined in the in2 attribute, are displayed.
      Over
      The source graphic defined by the in attribute (the MDN logo) is placed over the destination graphic defined by the in2 attribute (the circle).
      Xor
      The non-overlapping regions of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute are combined.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CompositeMode()  
    • Method Summary

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

      • Over

        public static final CompositeMode Over
        The source graphic defined by the in attribute (the MDN logo) is placed over the destination graphic defined by the in2 attribute (the circle). This is the default operation, which will be used if no operation or an unsupported operation is specified.
      • In

        public static final CompositeMode In
        The parts of the source graphic defined by the in attribute that overlap the destination graphic defined in the in2 attribute, replace the destination graphic.
      • Out

        public static final CompositeMode Out
        The parts of the source graphic defined by the in attribute that fall outside the destination graphic defined in the in2 attribute, are displayed.
      • Atop

        public static final CompositeMode Atop
        The parts of the source graphic defined in the in attribute, which overlap the destination graphic defined in the in2 attribute, replace the destination graphic. The parts of the destination graphic that do not overlap with the source graphic stay untouched.
      • Xor

        public static final CompositeMode Xor
        The non-overlapping regions of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute are combined.
      • Lighter

        public static final CompositeMode Lighter
        The sum of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute is displayed.
      • Arithmetic

        public static final CompositeMode Arithmetic
        The arithmetic operation is useful for combining the output from the feDiffuseLighting and feSpecularLighting filters with texture data. If the arithmetic operation is chosen, each result pixel is computed using the following formula:

        result = k1*i1*i2 + k2*i1 + k3*i2 + k4

        where:

        • i1 and i2 indicate the corresponding pixel channel values of the input image, which map to in and in2 respectively
        • k1, k2, k3, and k4 indicate the values of the attributes with the same name.
    • Constructor Detail

      • CompositeMode

        private CompositeMode()
    • Method Detail

      • values

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

        public static CompositeMode 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