Class TextChunk
- java.lang.Object
-
- org.verapdf.wcag.algorithms.entities.content.InfoChunk
-
- org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
-
- org.verapdf.wcag.algorithms.entities.content.TextChunk
-
- All Implemented Interfaces:
IChunk
- Direct Known Subclasses:
TableToken
public class TextChunk extends TextInfoChunk
-
-
Field Summary
-
Fields inherited from class org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
baseLine, fontSize
-
-
Constructor Summary
Constructors Constructor Description TextChunk()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, String fontColorSpace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TextChunk chunk)voidaddAll(List<TextChunk> otherChunks)booleanequals(Object o)doublegetContrastRatio()double[]getFontColor()StringgetFontColorSpace()StringgetFontName()doublegetFontWeight()booleangetHasSpecialStyle()booleangetIsUnderlinedText()doublegetItalicAngle()StringgetValue()inthashCode()voidsetContrastRatio(double contrastRatio)voidsetFontColor(double[] fontColor)voidsetFontColorSpace(String fontColorSpace)voidsetFontName(String fontName)voidsetFontWeight(double fontWeight)voidsetHasSpecialStyle()voidsetIsUnderlinedText()voidsetItalicAngle(double italicAngle)voidsetValue(String value)StringtoString()-
Methods inherited from class org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
add, getBaseLine, getFontSize, setBaseLine, setFontSize
-
Methods inherited from class org.verapdf.wcag.algorithms.entities.content.InfoChunk
getBottomY, getBoundingBox, getCenterX, getCenterY, getLastPageNumber, getLeftX, getPageNumber, getRightX, getTopY, setBoundingBox, setLastPageNumber, setPageNumber, unionBoundingBox
-
-
-
-
Constructor Detail
-
TextChunk
public TextChunk()
-
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, String fontColorSpace)
-
TextChunk
public TextChunk(TextChunk chunk)
-
-
Method Detail
-
getValue
public String getValue()
-
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()
-
getIsUnderlinedText
public boolean getIsUnderlinedText()
-
setIsUnderlinedText
public void setIsUnderlinedText()
-
getFontColorSpace
public String getFontColorSpace()
-
setFontColorSpace
public void setFontColorSpace(String fontColorSpace)
-
add
public void add(TextChunk chunk)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classTextInfoChunk
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTextInfoChunk
-
-