Package de.redsix.pdfcompare
Class PageDiffCalculator
- java.lang.Object
-
- de.redsix.pdfcompare.PageDiffCalculator
-
public class PageDiffCalculator extends Object
-
-
Constructor Summary
Constructors Constructor Description PageDiffCalculator(int totalPixels, double allowedDiffInPercent)PageDiffCalculator(PageArea diffArea)This is a convenience constructor for a single diff.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDiffArea(PageArea diffArea)booleandifferencesFound()booleandifferencesFoundInExclusion()voiddiffFound()voiddiffFoundInExclusion()booleanequals(Object o)PageAreagetDiffArea()doublegetDifferenceInPercent()inthashCode()
-
-
-
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()
-
addDiffArea
public void addDiffArea(PageArea diffArea)
-
getDiffArea
public PageArea getDiffArea()
-
-