Class SemanticTextNode
- java.lang.Object
-
- org.verapdf.wcag.algorithms.entities.BaseObject
-
- org.verapdf.wcag.algorithms.entities.SemanticNode
-
- org.verapdf.wcag.algorithms.entities.SemanticTextNode
-
- 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, getChildren, getCorrectSemanticScore, getDepth, getHasLowestDepthError, getIndex, getInitialSemanticType, getNextNeighbor, getNextNode, getNodeInfo, getParent, getPreviousNeighbor, getPreviousNode, getSemanticType, isLeaf, isRoot, setAttributesDictionary, setCorrectSemanticScore, setDepth, setHasLowestDepthError, setIndex, setParent, setSemanticType
-
Methods inherited from class org.verapdf.wcag.algorithms.entities.BaseObject
getBottomY, getBoundingBox, getCenterX, getCenterY, getErrorArguments, getErrorCodes, getHeight, getLastPageNumber, getLeftX, getPageNumber, getRecognizedStructureId, getRightX, getTopY, getWidth, setBoundingBox, setLastPageNumber, setPageNumber, setRecognizedStructureId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.verapdf.wcag.algorithms.entities.IObject
getBottomY, getBoundingBox, getCenterX, getCenterY, getErrorArguments, getErrorCodes, getHeight, getLastPageNumber, getLeftX, getPageNumber, getRecognizedStructureId, getRightX, getTopY, getWidth, setBoundingBox, setLastPageNumber, setPageNumber, setRecognizedStructureId
-
-
-
-
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()
-
getFirstNonSpaceLine
public TextLine getFirstNonSpaceLine(int pageNumber)
-
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
-
-