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)
-
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 underlinedDoublegettextSize()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
-
-
Constructor Detail
-
GFSATextChunk
public GFSATextChunk(TextChunk textChunk)
-
-
Method Detail
-
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
-
-