Class DesignerSnapshotCompare.Result

java.lang.Object
com.iizigo.panel.DesignerSnapshotCompare.Result
Enclosing class:
DesignerSnapshotCompare

public static final class DesignerSnapshotCompare.Result extends Object
The result of a comparison.
Author:
Christopher Mindus
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Rectangle
    The bounding box of the differing pixels in image pixels, null when none differ.
    final int
    The count of differing pixels.
    final boolean
    Flag for a comparison that could be made.
    final ImageData
    The difference mask: a 1-bit image, index 1 (black) where the pixels differ, null when not requested or not comparable.
    final String
    The reason when not comparable, null otherwise.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a short description of the result.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • isComparable

      public final boolean isComparable
      Flag for a comparison that could be made.
    • reason

      public final String reason
      The reason when not comparable, null otherwise.
    • differing

      public final int differing
      The count of differing pixels.
    • box

      public final Rectangle box
      The bounding box of the differing pixels in image pixels, null when none differ.
    • mask

      public final ImageData mask
      The difference mask: a 1-bit image, index 1 (black) where the pixels differ, null when not requested or not comparable.
  • Method Details

    • toString

      public String toString()
      Gets a short description of the result.
      Overrides:
      toString in class Object
      Returns:
      The description.