Class SemanticTextNode
- java.lang.Object
-
- org.verapdf.wcag.algorithms.entities.SemanticNode
-
- org.verapdf.wcag.algorithms.entities.SemanticTextNode
-
- All Implemented Interfaces:
INode
- Direct Known Subclasses:
SemanticCaption,SemanticParagraph,SemanticSpan
public class SemanticTextNode extends SemanticNode
-
-
Field Summary
Fields Modifier and Type Field Description protected List<TextLine>lines-
Fields inherited from class org.verapdf.wcag.algorithms.entities.SemanticNode
nodeInfo
-
-
Constructor Summary
Constructors Constructor Description SemanticTextNode()SemanticTextNode(TextChunk textChunk)SemanticTextNode(TextChunk textChunk, SemanticType initialSemanticType)SemanticTextNode(SemanticType initialSemanticType)SemanticTextNode(BoundingBox bbox)SemanticTextNode(BoundingBox bbox, List<TextLine> lines)SemanticTextNode(BoundingBox bbox, List<TextLine> lines, SemanticType initialSemanticType)SemanticTextNode(BoundingBox bbox, SemanticType initialSemanticType)SemanticTextNode(SemanticTextNode textNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TextLine textLine)voidaddAll(List<TextLine> text)booleanequals(Object o)doublegetFirstBaseline()TextLinegetFirstLine()StringgetFontName()doublegetFontSize()doublegetFontWeight()doublegetItalicAngle()doublegetLastBaseline()TextLinegetLastLine()List<TextLine>getLines()intgetLinesNumber()TextLinegetPenultLine()TextLinegetSecondLine()double[]getTextColor()booleanhasFullLines()inthashCode()booleanisEmpty()booleanisSpaceNode()booleanisStartsWithArabicNumber()voidsetFirstLine(TextLine firstLine)voidsetLastLine(TextLine lastLine)StringtoString()-
Methods inherited from class org.verapdf.wcag.algorithms.entities.SemanticNode
addChild, getBottomY, getBoundingBox, getChildren, getCorrectSemanticScore, getDepth, getHasHighestErrorLevel, getIndex, getInitialSemanticType, getLastPageNumber, getLeftX, getNextNeighbor, getNodeInfo, getPageNumber, getParent, getPreviousNeighbor, getRecognizedStructureId, getRightX, getSemanticType, getTopY, isLeaf, isRoot, setBoundingBox, setCorrectSemanticScore, setDepth, setHasHighestErrorLevel, setIndex, setLastPageNumber, setPageNumber, setParent, setRecognizedStructureId, setSemanticType
-
-
-
-
Constructor Detail
-
SemanticTextNode
public SemanticTextNode(SemanticTextNode textNode)
-
SemanticTextNode
public SemanticTextNode()
-
SemanticTextNode
public SemanticTextNode(SemanticType initialSemanticType)
-
SemanticTextNode
public SemanticTextNode(BoundingBox bbox)
-
SemanticTextNode
public SemanticTextNode(BoundingBox bbox, SemanticType initialSemanticType)
-
SemanticTextNode
public SemanticTextNode(BoundingBox bbox, List<TextLine> lines)
-
SemanticTextNode
public SemanticTextNode(TextChunk textChunk)
-
SemanticTextNode
public SemanticTextNode(BoundingBox bbox, List<TextLine> lines, SemanticType initialSemanticType)
-
SemanticTextNode
public SemanticTextNode(TextChunk textChunk, SemanticType initialSemanticType)
-
-
Method Detail
-
add
public void add(TextLine textLine)
-
getLinesNumber
public int getLinesNumber()
-
getFirstLine
public TextLine getFirstLine()
-
setFirstLine
public void setFirstLine(TextLine firstLine)
-
setLastLine
public void setLastLine(TextLine lastLine)
-
getSecondLine
public TextLine getSecondLine()
-
getPenultLine
public TextLine getPenultLine()
-
getLastLine
public TextLine getLastLine()
-
getFirstBaseline
public double getFirstBaseline()
-
getLastBaseline
public double getLastBaseline()
-
isEmpty
public boolean isEmpty()
-
getFontWeight
public double getFontWeight()
-
hasFullLines
public boolean hasFullLines()
-
getFontSize
public double getFontSize()
-
getItalicAngle
public double getItalicAngle()
-
getTextColor
public double[] getTextColor()
-
getFontName
public String getFontName()
-
isSpaceNode
public boolean isSpaceNode()
-
isStartsWithArabicNumber
public boolean isStartsWithArabicNumber()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSemanticNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSemanticNode
-
toString
public String toString()
- Overrides:
toStringin classSemanticNode
-
-