Class TextChunk
- java.lang.Object
-
- org.verapdf.wcag.algorithms.entities.BaseObject
-
- org.verapdf.wcag.algorithms.entities.content.InfoChunk
-
- org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
-
- org.verapdf.wcag.algorithms.entities.content.TextChunk
-
- Direct Known Subclasses:
TableToken
public class TextChunk extends TextInfoChunk
-
-
Field Summary
-
Fields inherited from class org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
baseLine, fontSize, slantDegree
-
-
Constructor Summary
Constructors Constructor Description TextChunk()TextChunk(String value)TextChunk(TextChunk chunk)TextChunk(BoundingBox bbox, String value, double fontSize, double baseLine)TextChunk(BoundingBox bbox, String value, String fontName, double fontSize, double fontWeight, double italicAngle, double baseLine, double[] fontColor, double slantDegree)TextChunk(BoundingBox bbox, String value, String fontName, double fontSize, double fontWeight, double italicAngle, double baseLine, double[] fontColor, List<Double> symbolEnds, double slantDegree)
-
Method Summary
-
Methods inherited from class org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
add, getBaseLine, getFirstBaseLine, getFontSize, getSlantDegree, getTextCenter, getTextEnd, getTextStart, isBottomUpVerticalText, isHorizontalText, isLeftRightHorizontalText, isRightLeftHorizontalText, isUpBottomVerticalText, isVerticalText, setBaseLine, setFontSize, setSlantDegree
-
Methods inherited from class org.verapdf.wcag.algorithms.entities.content.InfoChunk
unionBoundingBox
-
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
-
TextChunk
public TextChunk()
-
TextChunk
public TextChunk(String value)
-
TextChunk
public TextChunk(BoundingBox bbox, String value, double fontSize, double baseLine)
-
TextChunk
public TextChunk(BoundingBox bbox, String value, String fontName, double fontSize, double fontWeight, double italicAngle, double baseLine, double[] fontColor, List<Double> symbolEnds, double slantDegree)
-
TextChunk
public TextChunk(BoundingBox bbox, String value, String fontName, double fontSize, double fontWeight, double italicAngle, double baseLine, double[] fontColor, double slantDegree)
-
TextChunk
public TextChunk(TextChunk chunk)
-
-
Method Detail
-
getValue
public String getValue()
- Overrides:
getValuein classTextInfoChunk
-
setValue
public void setValue(String value)
-
getFontName
public String getFontName()
-
setFontName
public void setFontName(String fontName)
-
getFontWeight
public double getFontWeight()
-
setFontWeight
public void setFontWeight(double fontWeight)
-
getItalicAngle
public double getItalicAngle()
-
setItalicAngle
public void setItalicAngle(double italicAngle)
-
getFontColor
public double[] getFontColor()
-
setFontColor
public void setFontColor(double[] fontColor)
-
getContrastRatio
public double getContrastRatio()
-
setContrastRatio
public void setContrastRatio(double contrastRatio)
-
getHasSpecialStyle
public boolean getHasSpecialStyle()
-
setHasSpecialStyle
public void setHasSpecialStyle()
-
getHasSpecialBackground
public boolean getHasSpecialBackground()
-
setHasSpecialBackground
public void setHasSpecialBackground()
-
getBackgroundColor
public double[] getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(double[] backgroundColor)
-
getIsUnderlinedText
public boolean getIsUnderlinedText()
-
setIsUnderlinedText
public void setIsUnderlinedText()
-
getTextFormat
public TextFormat getTextFormat()
-
setTextFormat
public void setTextFormat(TextFormat textFormat)
-
getSymbolStartCoordinate
public Double getSymbolStartCoordinate(int index)
-
getSymbolEndCoordinate
public Double getSymbolEndCoordinate(int index)
-
getSymbolWidth
public Double getSymbolWidth(int index)
-
getAverageSymbolWidth
public double getAverageSymbolWidth()
-
getTextLength
public double getTextLength()
-
add
public void add(TextChunk chunk)
-
isEmpty
public boolean isEmpty()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classTextInfoChunk
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTextInfoChunk
-
-