Package de.redsix.pdfcompare
Class PageDiffCalculator
java.lang.Object
de.redsix.pdfcompare.PageDiffCalculator
-
Constructor Summary
ConstructorsConstructorDescriptionPageDiffCalculator(int totalPixels, double allowedDiffInPercent) PageDiffCalculator(PageArea diffArea) This is a convenience constructor for a single diff. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDiffArea(PageArea diffArea) booleanbooleanvoidvoidbooleandoubleinthashCode()
-
Constructor Details
-
PageDiffCalculator
public PageDiffCalculator(int totalPixels, double allowedDiffInPercent) -
PageDiffCalculator
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
-
hashCode
public int hashCode() -
addDiffArea
-
getDiffArea
-