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
-
Field Summary
Fields inherited from class org.verapdf.wcag.algorithms.entities.content.TextInfoChunk
baseLine, fontSize, slantDegree -
Constructor Summary
ConstructorsConstructorDescriptionTextChunk(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
Modifier and TypeMethodDescriptionvoidvoidvoidadjustSymbolEndsToBoundingBox(List<Double> symbolEnds) booleandoubledouble[]doubledouble[]doublebooleanbooleanbooleandoublegetSymbolEndCoordinate(int index) getSymbolStartCoordinate(int index) getSymbolWidth(int index) doublegetValue()inthashCode()booleanisEmpty()booleanvoidsetBackgroundColor(double[] backgroundColor) voidsetContrastRatio(double contrastRatio) voidsetFontColor(double[] fontColor) voidsetFontName(String fontName) voidsetFontWeight(double fontWeight) voidvoidvoidvoidsetItalicAngle(double italicAngle) voidsetSymbolEnds(List<Double> symbolEnds) voidsetTextFormat(TextFormat textFormat) voidtoString()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, setSlantDegreeMethods inherited from class org.verapdf.wcag.algorithms.entities.content.InfoChunk
unionBoundingBoxMethods 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, setRecognizedStructureIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 Details
-
TextChunk
public TextChunk() -
TextChunk
-
TextChunk
-
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
-
-
Method Details
-
getValue
- Overrides:
getValuein classTextInfoChunk
-
setValue
-
getFontName
-
setFontName
-
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
-
setTextFormat
-
getSymbolEnds
-
setSymbolEnds
-
getSymbolStartCoordinate
-
getSymbolEndCoordinate
-
getSymbolWidth
-
adjustSymbolEndsToBoundingBox
-
getAverageSymbolWidth
public double getAverageSymbolWidth() -
getTextLength
public double getTextLength() -
addAll
-
add
-
isEmpty
public boolean isEmpty() -
isWhiteSpaceChunk
public boolean isWhiteSpaceChunk() -
equals
- Overrides:
equalsin classTextInfoChunk
-
hashCode
public int hashCode()- Overrides:
hashCodein classTextInfoChunk
-
toString
-