Class GFGlyph
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.operator.textshow.GFGlyph
-
- Direct Known Subclasses:
GFCIDGlyph
public class GFGlyph extends GenericModelObject implements Glyph
Represents glyph used in text.- Author:
- Sergey Shemyakov
-
-
Field Summary
Fields Modifier and Type Field Description static StringGLYPH_TYPE-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject)protectedGFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetactualTextPresent()true if an ActualText entry is present for this glyphstatic GlyphgetGlyph(PDFont font, int glyphCode, int renderingMode, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject)StringgetID()BooleangetisGlyphPresent()true if glyph is present in the font programStringgetname()glyph name, or empty string if the glyph is not identified by the name (as in case of CID fonts)LonggetrenderingMode()value of the rendering mode at the moment the glyph is shownStringgettoUnicode()unicode value of the glyphBooleangetunicodePUA()true if toUnicode value contains codes from Unicode Private Use AreaDoublegetwidthFromDictionary()width of the glyph specified in the Font dictionaryDoublegetwidthFromFontProgram()width of the glyph in the embedded font program-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, 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
getContext, getExtraContext, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
GLYPH_TYPE
public static final String GLYPH_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFGlyph
protected GFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject)
-
GFGlyph
protected GFGlyph(PDFont font, int glyphCode, int renderingMode, String id, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject, String type)
-
-
Method Detail
-
getGlyph
public static Glyph getGlyph(PDFont font, int glyphCode, int renderingMode, GFOpMarkedContent markedContent, StructureElementAccessObject structureElementAccessObject)
-
getname
public String getname()
Description copied from interface:Glyphglyph name, or empty string if the glyph is not identified by the name (as in case of CID fonts)
-
getwidthFromDictionary
public Double getwidthFromDictionary()
Description copied from interface:Glyphwidth of the glyph specified in the Font dictionary- Specified by:
getwidthFromDictionaryin interfaceGlyph
-
getwidthFromFontProgram
public Double getwidthFromFontProgram()
Description copied from interface:Glyphwidth of the glyph in the embedded font program- Specified by:
getwidthFromFontProgramin interfaceGlyph
-
getisGlyphPresent
public Boolean getisGlyphPresent()
Description copied from interface:Glyphtrue if glyph is present in the font program- Specified by:
getisGlyphPresentin interfaceGlyph
-
gettoUnicode
public String gettoUnicode()
Description copied from interface:Glyphunicode value of the glyph- Specified by:
gettoUnicodein interfaceGlyph
-
getrenderingMode
public Long getrenderingMode()
Description copied from interface:Glyphvalue of the rendering mode at the moment the glyph is shown- Specified by:
getrenderingModein interfaceGlyph
-
getID
public String getID()
- Specified by:
getIDin interfaceObject- Overrides:
getIDin classGenericModelObject- Returns:
- id of the current object
-
getunicodePUA
public Boolean getunicodePUA()
Description copied from interface:Glyphtrue if toUnicode value contains codes from Unicode Private Use Area- Specified by:
getunicodePUAin interfaceGlyph
-
getactualTextPresent
public Boolean getactualTextPresent()
Description copied from interface:Glyphtrue if an ActualText entry is present for this glyph- Specified by:
getactualTextPresentin interfaceGlyph
-
-