Class ContrastRatioConsumer
- java.lang.Object
-
- org.verapdf.wcag.algorithms.semanticalgorithms.consumers.WCAGConsumer
-
- org.verapdf.wcag.algorithms.semanticalgorithms.consumers.ContrastRatioConsumer
-
public class ContrastRatioConsumer extends WCAGConsumer implements Consumer<INode>
-
-
Constructor Summary
Constructors Constructor Description ContrastRatioConsumer(String sourcePdfPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(INode node)voidcalculateContrast(ITree tree)voidcalculateContrastRatio(TextChunk textChunk)voidcalculateContrastRation(TextChunk textChunk, BufferedImage renderedPage)doublegetContrastRatio(double first, double second)DoublegetPercent()BufferedImagegetRenderPage(int pageNumber)WCAGProgressStatusgetWCAGProgressStatus()
-
-
-
Constructor Detail
-
ContrastRatioConsumer
public ContrastRatioConsumer(String sourcePdfPath)
-
-
Method Detail
-
calculateContrast
public void calculateContrast(ITree tree)
-
getContrastRatio
public double getContrastRatio(double first, double second)
-
getRenderPage
public BufferedImage getRenderPage(int pageNumber)
-
calculateContrastRatio
public void calculateContrastRatio(TextChunk textChunk)
-
calculateContrastRation
public void calculateContrastRation(TextChunk textChunk, BufferedImage renderedPage)
-
getPercent
public Double getPercent()
- Overrides:
getPercentin classWCAGConsumer
-
getWCAGProgressStatus
public WCAGProgressStatus getWCAGProgressStatus()
- Overrides:
getWCAGProgressStatusin classWCAGConsumer
-
-