Class PageDiffCalculator


  • public class PageDiffCalculator
    extends Object
    • Constructor Detail

      • PageDiffCalculator

        public PageDiffCalculator​(int totalPixels,
                                  double allowedDiffInPercent)
      • PageDiffCalculator

        public PageDiffCalculator​(PageArea diffArea)
        This is a convenience constructor for a single diff. The result is the same as the following code:
        
         pdc = new PageDiffCalculator(0, 0);
         pdc.diffFound();
         pdc.addDiffArea(pageArea);
         
        Parameters:
        diffArea - the page area that covers the diff.
    • Method Detail

      • diffFound

        public void diffFound()
      • diffFoundInExclusion

        public void diffFoundInExclusion()
      • differencesFound

        public boolean differencesFound()
      • differencesFoundInExclusion

        public boolean differencesFoundInExclusion()
      • getDifferenceInPercent

        public double getDifferenceInPercent()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • addDiffArea

        public void addDiffArea​(PageArea diffArea)
      • getDiffArea

        public PageArea getDiffArea()