Class TextBlock
- java.lang.Object
-
- org.verapdf.wcag.algorithms.entities.content.InfoChunk
-
- org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
-
- org.verapdf.wcag.algorithms.entities.content.TextBlock
-
- All Implemented Interfaces:
IChunk
public class TextBlock extends TextInfoChunk
-
-
Field Summary
-
Fields inherited from class org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
baseLine, fontSize, slantDegree
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TextLine line)booleanequals(Object o)TextLinegetFirstLine()TextLinegetLastLine()List<TextLine>getLines()intgetLinesNumber()TextLinegetPenultLine()TextLinegetSecondLine()inthashCode()booleanisEmpty()voidsetFirstLine(TextLine firstLine)voidsetLastLine(TextLine lastLine)StringtoString()-
Methods inherited from class org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
add, getBaseLine, getFirstBaseLine, getFontSize, getSlantDegree, getTextCenter, getTextEnd, getTextStart, getValue, isBottomUpVerticalText, isHorizontalText, isLeftRightHorizontalText, isRightLeftHorizontalText, isUpBottomVerticalText, isVerticalText, setBaseLine, setFontSize, setSlantDegree
-
Methods inherited from class org.verapdf.wcag.algorithms.entities.content.InfoChunk
getBottomY, getBoundingBox, getCenterX, getCenterY, getLastPageNumber, getLeftX, getPageNumber, getRightX, getTopY, setBoundingBox, setLastPageNumber, setPageNumber, unionBoundingBox
-
-
-
-
Method Detail
-
getFirstLine
public TextLine getFirstLine()
-
getLastLine
public TextLine getLastLine()
-
setLastLine
public void setLastLine(TextLine lastLine)
-
setFirstLine
public void setFirstLine(TextLine firstLine)
-
getSecondLine
public TextLine getSecondLine()
-
getPenultLine
public TextLine getPenultLine()
-
add
public void add(TextLine line)
-
getLinesNumber
public int getLinesNumber()
-
isEmpty
public boolean isEmpty()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTextInfoChunk
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classTextInfoChunk
-
-