Package com.deltaxml.core.config
Enum Class SVGGranularity
- All Implemented Interfaces:
Serializable,Comparable<SVGGranularity>,Constable
Specifies the granularity at which the differences between the two SVG images will be represented from the DocumentComparator.
- Since:
- 12.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReports the differences to the SVG by repeating A and B SVG inputs adjacent to each other.Reports SVG differences by animating them by changing the opacity from 1 to 0 for delete and 0 to 1 for add.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic SVGGranularitygetSVGGranularity(String val) Returns theSVGGranularityinstance representing the supplied String value.toString()The camel case string form of each of the enumerated type constants.static SVGGranularityReturns the enum constant of this class with the specified name.static SVGGranularity[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-
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:
toStringin classEnum<SVGGranularity>- Returns:
- The camel case string form of each of the enumerated type constants.
-
getSVGGranularity
Returns the
SVGGranularityinstance 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 aSVGGranularityvalue or null for the default value- Returns:
- the
SVGGranularityinstance corresponding to the parameter, or null if the value is invalid
-