public enum SVGGranularity extends java.lang.Enum<SVGGranularity>
Specifies the granularity at which the differences between the two SVG images will be represented from the DocumentComparator.
Enum Constant and Description |
---|
ADJACENT
Reports the differences to the SVG by repeating A and B SVG inputs adjacent to each other.
|
ANIMATE_INLINE
Reports SVG differences by animating them by changing the opacity from 1 to 0 for delete and 0 to 1 for add.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static SVGGranularity |
getSVGGranularity(java.lang.String val)
Returns the
SVGGranularity instance representing the supplied String value. |
java.lang.String |
toString()
The camel case string form of each of the enumerated type constants.
|
static SVGGranularity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SVGGranularity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 .
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.
public static final SVGGranularity ANIMATE_INLINE
public static SVGGranularity[] values()
for (SVGGranularity c : SVGGranularity.values()) System.out.println(c);
public static SVGGranularity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<SVGGranularity>
public static SVGGranularity getSVGGranularity(java.lang.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.
val
- a Sting representation of a SVGGranularity
value or null for the default valueSVGGranularity
instance corresponding to the parameter, or null if the value is invalid