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 String
TEXT_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 String
getContext()
Double
getcontrastRatio()
contrast ratioString
getExtraContext()
Boolean
gethasSpecialStyle()
true, if this text chunk has style different from common styleBoolean
getisUnderlined()
true, if this text chunk is underlinedString
getparentsStandardTypes()
ampersand separated list of all parent elements standard types of this text chunk in the structure hierarchyTextChunk
getTextChunk()
Double
gettextSize()
text sizeDouble
gettextWeight()
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:SATextChunk
text size- Specified by:
gettextSize
in interfaceSATextChunk
-
getcontrastRatio
public Double getcontrastRatio()
Description copied from interface:SATextChunk
contrast ratio- Specified by:
getcontrastRatio
in interfaceSATextChunk
-
gettextWeight
public Double gettextWeight()
Description copied from interface:SATextChunk
text weight- Specified by:
gettextWeight
in interfaceSATextChunk
-
getContext
public String getContext()
- Specified by:
getContext
in interfaceObject
- Overrides:
getContext
in classGenericModelObject
- Returns:
- context of the current object
-
getExtraContext
public String getExtraContext()
- Specified by:
getExtraContext
in interfaceObject
- Overrides:
getExtraContext
in classGenericModelObject
- Returns:
- extra context of the current object
-
gethasSpecialStyle
public Boolean gethasSpecialStyle()
Description copied from interface:SATextChunk
true, if this text chunk has style different from common style- Specified by:
gethasSpecialStyle
in interfaceSATextChunk
-
getisUnderlined
public Boolean getisUnderlined()
Description copied from interface:SATextChunk
true, if this text chunk is underlined- Specified by:
getisUnderlined
in interfaceSATextChunk
-
getparentsStandardTypes
public String getparentsStandardTypes()
Description copied from interface:SATextChunk
ampersand separated list of all parent elements standard types of this text chunk in the structure hierarchy- Specified by:
getparentsStandardTypes
in interfaceSATextChunk
-
-