Class NodeUtils
- java.lang.Object
-
- org.verapdf.wcag.algorithms.semanticalgorithms.utils.NodeUtils
-
public class NodeUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static doubleEPSILONstatic doubleTABLE_BORDER_EPSILONstatic double[]UNDERLINED_TEXT_EPSILONS
-
Constructor Summary
Constructors Constructor Description NodeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanareCloseNumbers(double d1, double d2)static booleanareCloseNumbers(double d1, double d2, double epsilon)static booleanareOverlapping(TextChunk textChunk, LineChunk lineChunk)static doubleheadingProbability(INode node, INode previousNode, INode nextNode, INode nextNextNode, INode initialNode)static doubleheadingProbability(SemanticTextNode textNode, INode neighborNode)
-
-
-
Field Detail
-
EPSILON
public static final double EPSILON
- See Also:
- Constant Field Values
-
TABLE_BORDER_EPSILON
public static final double TABLE_BORDER_EPSILON
- See Also:
- Constant Field Values
-
UNDERLINED_TEXT_EPSILONS
public static final double[] UNDERLINED_TEXT_EPSILONS
-
-
Method Detail
-
headingProbability
public static double headingProbability(INode node, INode previousNode, INode nextNode, INode nextNextNode, INode initialNode)
-
headingProbability
public static double headingProbability(SemanticTextNode textNode, INode neighborNode)
-
areCloseNumbers
public static boolean areCloseNumbers(double d1, double d2, double epsilon)
-
areCloseNumbers
public static boolean areCloseNumbers(double d1, double d2)
-
-