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,SemanticList,SemanticParagraph,SemanticPart,SemanticSpan
public class SemanticTextNode extends SemanticNode
-
-
Field Summary
-
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<TextColumn> columns)SemanticTextNode(BoundingBox bbox, SemanticType initialSemanticType)SemanticTextNode(SemanticTextNode textNode)
-
Method Summary
-
Methods inherited from class org.verapdf.wcag.algorithms.entities.SemanticNode
addChild, getAttributesDictionary, getBottomY, getBoundingBox, getChildren, getCorrectSemanticScore, getDepth, getErrorArguments, getErrorCodes, getHasLowestDepthError, getIndex, getInitialSemanticType, getLastPageNumber, getLeftX, getNextNeighbor, getNextNode, getNodeInfo, getPageNumber, getParent, getPreviousNeighbor, getPreviousNode, getRecognizedStructureId, getRightX, getSemanticType, getTopY, isLeaf, isRoot, setAttributesDictionary, setBoundingBox, setCorrectSemanticScore, setDepth, setHasLowestDepthError, 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<TextColumn> columns)
-
SemanticTextNode
public SemanticTextNode(TextChunk textChunk)
-
SemanticTextNode
public SemanticTextNode(TextChunk textChunk, SemanticType initialSemanticType)
-
-
Method Detail
-
add
public void add(TextLine textLine)
-
addAll
public void addAll(List<TextColumn> text)
-
getColumns
public List<TextColumn> getColumns()
-
getLinesNumber
public int getLinesNumber()
-
getColumnsNumber
public int getColumnsNumber()
-
getFirstLine
public TextLine getFirstLine()
-
setFirstLine
public void setFirstLine(TextLine firstLine)
-
setLastLine
public void setLastLine(TextLine lastLine)
-
setLastColumn
public void setLastColumn(TextColumn lastColumn)
-
getFirstColumn
public TextColumn getFirstColumn()
-
getLastColumn
public TextColumn getLastColumn()
-
getPenultColumn
public TextColumn getPenultColumn()
-
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()
-
getFirstNonSpaceLine
public TextLine getFirstNonSpaceLine()
-
hasFullLines
public boolean hasFullLines()
-
getFontSize
public double getFontSize()
-
getItalicAngle
public double getItalicAngle()
-
getTextColor
public double[] getTextColor()
-
getFontName
public String getFontName()
-
getTextFormat
public TextFormat getTextFormat()
-
setTextFormat
public void setTextFormat(TextFormat textFormat)
-
getMaxFontSize
public Double getMaxFontSize()
-
getBackgroundColor
public double[] getBackgroundColor()
-
isSpaceNode
public boolean isSpaceNode()
-
isStartsWithArabicNumber
public boolean isStartsWithArabicNumber()
-
getValue
public String getValue()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSemanticNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSemanticNode
-
toString
public String toString()
- Overrides:
toStringin classSemanticNode
-
-