Class SemanticParagraph
- java.lang.Object
-
- org.verapdf.wcag.algorithms.entities.SemanticNode
-
- org.verapdf.wcag.algorithms.entities.SemanticTextNode
-
- org.verapdf.wcag.algorithms.entities.SemanticParagraph
-
- All Implemented Interfaces:
INode
- Direct Known Subclasses:
SemanticHeading
public class SemanticParagraph extends SemanticTextNode
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanenclosedBottomprotected booleanenclosedTopprotected intindentation-
Fields inherited from class org.verapdf.wcag.algorithms.entities.SemanticTextNode
lines
-
Fields inherited from class org.verapdf.wcag.algorithms.entities.SemanticNode
nodeInfo
-
-
Constructor Summary
Constructors Constructor Description SemanticParagraph()SemanticParagraph(SemanticType initialSemanticType)SemanticParagraph(BoundingBox bbox)SemanticParagraph(BoundingBox bbox, List<TextLine> lines)SemanticParagraph(BoundingBox bbox, List<TextLine> lines, SemanticType initialSemanticType)SemanticParagraph(SemanticParagraph paragraph)SemanticParagraph(SemanticTextNode textNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetIndentation()inthashCode()booleanisEnclosedBottom()booleanisEnclosedTop()voidsetEnclosedBottom(boolean enclosedBottom)voidsetEnclosedTop(boolean enclosedTop)voidsetIndentation(int indentation)StringtoString()-
Methods inherited from class org.verapdf.wcag.algorithms.entities.SemanticTextNode
add, addAll, getFirstBaseline, getFirstLine, getFontName, getFontSize, getFontWeight, getItalicAngle, getLastBaseline, getLastLine, getLines, getLinesNumber, getPenultLine, getSecondLine, getTextColor, hasFullLines, isEmpty, isSpaceNode, isStartsWithArabicNumber, setFirstLine, setLastLine
-
Methods inherited from class org.verapdf.wcag.algorithms.entities.SemanticNode
addChild, getBottomY, getBoundingBox, getChildren, getCorrectSemanticScore, getInitialSemanticType, getLastPageNumber, getLeftX, getNodeInfo, getPageNumber, getParent, getRecognizedStructureId, getRightX, getSemanticType, getTopY, isLeaf, isRoot, setBoundingBox, setCorrectSemanticScore, setLastPageNumber, setPageNumber, setParent, setRecognizedStructureId, setSemanticType
-
-
-
-
Constructor Detail
-
SemanticParagraph
public SemanticParagraph(SemanticParagraph paragraph)
-
SemanticParagraph
public SemanticParagraph()
-
SemanticParagraph
public SemanticParagraph(SemanticType initialSemanticType)
-
SemanticParagraph
public SemanticParagraph(BoundingBox bbox, List<TextLine> lines)
-
SemanticParagraph
public SemanticParagraph(BoundingBox bbox)
-
SemanticParagraph
public SemanticParagraph(BoundingBox bbox, List<TextLine> lines, SemanticType initialSemanticType)
-
SemanticParagraph
public SemanticParagraph(SemanticTextNode textNode)
-
-
Method Detail
-
isEnclosedTop
public boolean isEnclosedTop()
-
setEnclosedTop
public void setEnclosedTop(boolean enclosedTop)
-
isEnclosedBottom
public boolean isEnclosedBottom()
-
setEnclosedBottom
public void setEnclosedBottom(boolean enclosedBottom)
-
getIndentation
public int getIndentation()
-
setIndentation
public void setIndentation(int indentation)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSemanticTextNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSemanticTextNode
-
toString
public String toString()
- Overrides:
toStringin classSemanticTextNode
-
-