Class GFPDXImage
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.pd.GFPDObject
-
- org.verapdf.gf.model.impl.pd.GFPDResource
-
- org.verapdf.gf.model.impl.pd.images.GFPDXObject
-
- org.verapdf.gf.model.impl.pd.images.GFPDXImage
-
- All Implemented Interfaces:
Object,PDObject,PDResource,PDXImage,PDXObject
- Direct Known Subclasses:
GFPDSMaskImage
public class GFPDXImage extends GFPDXObject implements PDXImage
- Author:
- Maksim Bezrukov
-
-
Field Summary
Fields Modifier and Type Field Description static StringALTERNATESstatic StringIMAGE_CSstatic StringINTENTstatic StringJPX_STREAMstatic StringS_MASKstatic StringX_IMAGE_TYPE-
Fields inherited from class org.verapdf.gf.model.impl.pd.images.GFPDXObject
OPI, resourcesHandler, X_OBJECT_TYPE
-
Fields inherited from class org.verapdf.gf.model.impl.pd.GFPDResource
RESOURCE_TYPE
-
Fields inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
contentStream, document, id, MAX_NUMBER_OF_ELEMENTS, pdcMap, pdFont, simpleCOSObject, simplePDObject
-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGFPDXImage(PDXImage simplePDObject, PDResourcesHandler resourcesHandler, PDColorSpace inheritedFillCS)protectedGFPDXImage(PDXImage simplePDObject, PDResourcesHandler resourcesHandler, PDColorSpace inheritedFillCS, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsTransparency()BooleangetcontainsAlternates()true if the image dictionary contains Alternates keyBooleangetInterpolate()Interpolate key in the image dictionary or the value of the I key in the inline image dictionaryList<? extends Object>getLinkedObjects(String link)protected List<PDSMaskImage>getSMask()-
Methods inherited from class org.verapdf.gf.model.impl.pd.images.GFPDXObject
getcontainsOPI, getcontainsSMask, getSubtype, getTypedPDXObject
-
Methods inherited from class org.verapdf.gf.model.impl.pd.GFPDResource
getisInherited
-
Methods inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
getentries, getID
-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, 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, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from interface org.verapdf.model.pdlayer.PDObject
getentries
-
Methods inherited from interface org.verapdf.model.pdlayer.PDResource
getisInherited
-
Methods inherited from interface org.verapdf.model.pdlayer.PDXObject
getcontainsOPI, getcontainsSMask, getSubtype
-
-
-
-
Field Detail
-
X_IMAGE_TYPE
public static final String X_IMAGE_TYPE
- See Also:
- Constant Field Values
-
IMAGE_CS
public static final String IMAGE_CS
- See Also:
- Constant Field Values
-
ALTERNATES
public static final String ALTERNATES
- See Also:
- Constant Field Values
-
INTENT
public static final String INTENT
- See Also:
- Constant Field Values
-
JPX_STREAM
public static final String JPX_STREAM
- See Also:
- Constant Field Values
-
S_MASK
public static final String S_MASK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFPDXImage
protected GFPDXImage(PDXImage simplePDObject, PDResourcesHandler resourcesHandler, PDColorSpace inheritedFillCS)
-
GFPDXImage
protected GFPDXImage(PDXImage simplePDObject, PDResourcesHandler resourcesHandler, PDColorSpace inheritedFillCS, String type)
-
-
Method Detail
-
getInterpolate
public Boolean getInterpolate()
Description copied from interface:PDXImageInterpolate key in the image dictionary or the value of the I key in the inline image dictionary- Specified by:
getInterpolatein interfacePDXImage
-
getcontainsAlternates
public Boolean getcontainsAlternates()
Description copied from interface:PDXImagetrue if the image dictionary contains Alternates key- Specified by:
getcontainsAlternatesin interfacePDXImage
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
getSMask
protected List<PDSMaskImage> getSMask()
-
containsTransparency
public boolean containsTransparency()
- Returns:
- true if current image contains SMask value of type stream or SMaskInData value greater then 0
-
-