Enum Class SVGGranularity

java.lang.Object
java.lang.Enum<SVGGranularity>
com.deltaxml.core.config.SVGGranularity
All Implemented Interfaces:
Serializable, Comparable<SVGGranularity>, Constable

public enum SVGGranularity extends Enum<SVGGranularity>

Specifies the granularity at which the differences between the two SVG images will be represented from the DocumentComparator.

Since:
12.2
  • Enum Constant Details

    • ADJACENT

      public static final SVGGranularity ADJACENT

      Reports the differences to the SVG by repeating A and B SVG inputs adjacent to each other. Respective A and B SVGs will be highlighted with red and green bounding boxes .

    • DETAILED_ADJACENT

      public static final SVGGranularity DETAILED_ADJACENT

      Reports the differences to the SVG by repeating the A and B SVG inputs adjacent to each other, with individual changes highlighted with bounding boxes.

    • ANIMATE_INLINE

      public static final SVGGranularity ANIMATE_INLINE
      Reports SVG differences by animating them by changing the opacity from 1 to 0 for delete and 0 to 1 for add. This setting will override any other SVG configuration.
  • Method Details

    • values

      public static SVGGranularity[] 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 SVGGranularity 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
    • toString

      public String toString()
      The camel case string form of each of the enumerated type constants. Here, the string for an enumeration constant of the form 'FIRST_SECOND_THIRD' is 'firstSecondThird'.
      Overrides:
      toString in class Enum<SVGGranularity>
      Returns:
      The camel case string form of each of the enumerated type constants.
    • getSVGGranularity

      public static SVGGranularity getSVGGranularity(String val)

      Returns the SVGGranularity instance representing the supplied String value.

      This method should not be used under normal circumstances, enum instance values should be used instead.

      Parameters:
      val - a Sting representation of a SVGGranularity value or null for the default value
      Returns:
      the SVGGranularity instance corresponding to the parameter, or null if the value is invalid