Enum Class CompositeMode

java.lang.Object
java.lang.Enum<CompositeMode>
com.github.weisj.jsvg.attributes.filter.CompositeMode
All Implemented Interfaces:
Serializable, Comparable<CompositeMode>, Constable

public enum CompositeMode extends Enum<CompositeMode>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The arithmetic operation is useful for combining the output from the feDiffuseLighting and feSpecularLighting filters with texture data.
    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 source graphic defined by the in attribute that overlap the destination graphic defined in the in2 attribute, replace the destination graphic.
    The sum of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute is displayed.
    The parts of the source graphic defined by the in attribute that fall outside the destination graphic defined in the in2 attribute, are displayed.
    The source graphic defined by the in attribute (the MDN logo) is placed over the destination graphic defined by the in2 attribute (the circle).
    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static CompositeMode[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

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

    • 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 Details

    • CompositeMode

      private CompositeMode()
  • Method Details

    • values

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

      public static CompositeMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null