Class PageDiffCalculator

java.lang.Object
de.redsix.pdfcompare.PageDiffCalculator

public class PageDiffCalculator extends Object
  • Constructor Details

    • 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 Details

    • diffFound

      public void diffFound()
    • diffFoundInExclusion

      public void diffFoundInExclusion()
    • differencesFound

      public boolean differencesFound()
    • differencesFoundInExclusion

      public boolean differencesFoundInExclusion()
    • getDifferenceInPercent

      public double getDifferenceInPercent()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public void addDiffArea(PageArea diffArea)
    • getDiffArea

      public PageArea getDiffArea()