Interface IPictureManifest
- All Known Subinterfaces:
IZipPictureManifest
- All Known Implementing Classes:
AbsSinglePictureManifest,AbstractSinglePictureManifest,AbstractZipPictureManifest,AbsZipPictureManifest,Base64GraphicalSchemeSinglePictureManifest,Base64GraphicalSchemeZipPictureManifest,FormSinglePictureManifest,FormZipPictureManifest,GeographicalSchemaSinglePictureManifest,GeographicalSchemaZipPictureManifest,GraphicalSchemeSinglePictureManifest,GraphicalSchemeZipPictureManifest,LayoutSinglePictureManifest,LayoutZipPictureManifest,MdSinglePictureManifest,MdZipPictureManifest,PlatformSinglePictureManifest,PlatformZipPictureManifest,UrlSinglePictureManifest
public interface IPictureManifest
Picture manifest stores extended
Picture properties and allow to access them by client queries.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IPictureManifestSpecial implementation ofIPictureManifestfor cases when information about picture cannot be got. -
Method Summary
Modifier and TypeMethodDescriptionThe pictureCompositeIdThe picturePictureDirectionVariantThe pictureInputStreambooleanisTemplate(IPictureManifestQuery query) Is picture is template
-
Field Details
-
UNRESOLVED_PICTURE_MANIFEST
Special implementation ofIPictureManifestfor cases when information about picture cannot be got.
The real example of this case may be aPictureRefwith reference to unresolved picture
-
-
Method Details
-
getCompositeId
CompositeId getCompositeId()The pictureCompositeId- Returns:
- the
CompositeIdornullif picture without id.
-
isTemplate
Is picture is template- Parameters:
query- theIPictureManifestQuery, cannot benull- Returns:
trueif picture by given query is template,falsein otherwise- Throws:
IOException- if there is a problem to read the picture contentPictureManifestException- if there is a problem to obtain the picture content or manifest
-
getDirection
The picturePictureDirectionVariant- Parameters:
query- theIPictureManifestQuery, cannot benull- Returns:
- first suitable
PictureDirectionVariantby the following algorithm:Picture variant selection in LTR-interface (in order of priority):
- Left to right
- Left to right, can flip
- Right to left, can flip
- Any
- Right to left
Picture variant selection in RTL-interface (in order of priority):
- Right to left
- Right to left, can flip
- Left to right, can flip
- Any
- Left to right
- Throws:
IOException- if there is a problem to read the picture content
-
getInputStream
The pictureInputStreamThe picture may be cropped if it contains enough information for this purpose.
- Parameters:
query- theIPictureManifestQuery, cannot benull- Returns:
- the
InputStreamof picture by given query, nevernull - Throws:
IOException- if there is a problem to read the picture contentPictureManifestException- if there is a problem to obtain the picture content or manifest
-