Package org.verapdf.gf.model.impl.sa
Class GFSATextChunk
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.sa.GFSAChunk
-
- org.verapdf.gf.model.impl.sa.GFSATextChunk
-
- All Implemented Interfaces:
Object,SAChunk,SATextChunk
public class GFSATextChunk extends GFSAChunk implements SATextChunk
- Author:
- Maxim Plushchov
-
-
Field Summary
Fields Modifier and Type Field Description static StringTEXT_CHUNK_TYPE-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Constructor Description GFSATextChunk(TextChunk textChunk, String parentsStandardTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContext()DoublegetcontrastRatio()contrast ratioStringgetExtraContext()BooleangethasSpecialStyle()true, if this text chunk has style different from common styleBooleangetisUnderlined()true, if this text chunk is underlinedStringgetparentsStandardTypes()ampersand separated list of all parent elements standard types of this text chunk in the structure hierarchyTextChunkgetTextChunk()DoublegettextSize()text sizeDoublegettextWeight()text weight-
Methods inherited from class org.verapdf.model.GenericModelObject
getID, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.verapdf.model.baselayer.Object
getID, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
TEXT_CHUNK_TYPE
public static final String TEXT_CHUNK_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTextChunk
public TextChunk getTextChunk()
-
gettextSize
public Double gettextSize()
Description copied from interface:SATextChunktext size- Specified by:
gettextSizein interfaceSATextChunk
-
getcontrastRatio
public Double getcontrastRatio()
Description copied from interface:SATextChunkcontrast ratio- Specified by:
getcontrastRatioin interfaceSATextChunk
-
gettextWeight
public Double gettextWeight()
Description copied from interface:SATextChunktext weight- Specified by:
gettextWeightin interfaceSATextChunk
-
getContext
public String getContext()
- Specified by:
getContextin interfaceObject- Overrides:
getContextin classGenericModelObject- Returns:
- context of the current object
-
getExtraContext
public String getExtraContext()
- Specified by:
getExtraContextin interfaceObject- Overrides:
getExtraContextin classGenericModelObject- Returns:
- extra context of the current object
-
gethasSpecialStyle
public Boolean gethasSpecialStyle()
Description copied from interface:SATextChunktrue, if this text chunk has style different from common style- Specified by:
gethasSpecialStylein interfaceSATextChunk
-
getisUnderlined
public Boolean getisUnderlined()
Description copied from interface:SATextChunktrue, if this text chunk is underlined- Specified by:
getisUnderlinedin interfaceSATextChunk
-
getparentsStandardTypes
public String getparentsStandardTypes()
Description copied from interface:SATextChunkampersand separated list of all parent elements standard types of this text chunk in the structure hierarchy- Specified by:
getparentsStandardTypesin interfaceSATextChunk
-
-