Class LineChunk
java.lang.Object
org.verapdf.wcag.algorithms.entities.BaseObject
org.verapdf.wcag.algorithms.entities.content.InfoChunk
org.verapdf.wcag.algorithms.entities.content.LineChunk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LineChunkcreateLineChunk(Integer pageNumber, double startX, double startY, double endX, double endY, double width, int cap) booleangetEnd()doublegetEndX()doublegetEndY()static VertexgetIntersectionVertex(LineChunk horizontalLine, LineChunk verticalLine) getStart()doubledoubledoublegetWidth()inthashCode()static booleanhaveIntersection(LineChunk horizontalLine, LineChunk verticalLine) booleanbooleanisSquare()booleantoString()Methods inherited from class org.verapdf.wcag.algorithms.entities.content.InfoChunk
unionBoundingBoxMethods inherited from class org.verapdf.wcag.algorithms.entities.BaseObject
getBottomY, getBoundingBox, getCenterX, getCenterY, getErrorArguments, getErrorCodes, getHeight, getLastPageNumber, getLeftX, getPageNumber, getRecognizedStructureId, getRightX, getTopY, setBoundingBox, setLastPageNumber, setPageNumber, setRecognizedStructureIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.verapdf.wcag.algorithms.entities.IObject
getBottomY, getBoundingBox, getCenterX, getCenterY, getErrorArguments, getErrorCodes, getHeight, getLastPageNumber, getLeftX, getPageNumber, getRecognizedStructureId, getRightX, getTopY, setBoundingBox, setLastPageNumber, setPageNumber, setRecognizedStructureId
-
Field Details
-
BUTT_CAP_STYLE
public static int BUTT_CAP_STYLE -
ROUND_CAP_STYLE
public static int ROUND_CAP_STYLE -
PROJECTING_SQUARE_CAP_STYLE
public static int PROJECTING_SQUARE_CAP_STYLE
-
-
Constructor Details
-
LineChunk
-
LineChunk
public LineChunk(Integer pageNumber, double startX, double startY, double endX, double endY, double width)
-
-
Method Details
-
getStartX
public double getStartX() -
getStartY
public double getStartY() -
getStart
-
getEndX
public double getEndX() -
getEndY
public double getEndY() -
getEnd
-
isHorizontalLine
public boolean isHorizontalLine() -
isVerticalLine
public boolean isVerticalLine() -
isSquare
public boolean isSquare() -
getWidth
public double getWidth()- Specified by:
getWidthin interfaceIObject- Overrides:
getWidthin classBaseObject
-
hashCode
public int hashCode() -
equals
-
toString
-
getIntersectionVertex
-
haveIntersection
-
createLineChunk
-