Class AbstractSinglePictureManifest<T extends PictureDef>
- java.lang.Object
- 
- com._1c.g5.v8.dt.platform.pictures.AbstractSinglePictureManifest<T>
 
- 
- All Implemented Interfaces:
- IPictureManifest
 - Direct Known Subclasses:
- AbsSinglePictureManifest,- LayoutSinglePictureManifest,- MdSinglePictureManifest,- PlatformSinglePictureManifest
 
 public abstract class AbstractSinglePictureManifest<T extends PictureDef> extends Object implements IPictureManifest Abstract implementation ofIPictureManifestfor single picture
- 
- 
Field Summary- 
Fields inherited from interface com._1c.g5.v8.dt.platform.pictures.IPictureManifestUNRESOLVED_PICTURE_MANIFEST
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractSinglePictureManifest(T picture)Create instance ofAbstractSinglePictureManifest
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CompositeIdgetCompositeId()The pictureCompositeIdPictureDirectionVariantgetDirection(IPictureManifestQuery query)The picturePictureDirectionVariantprotected abstract Optional<InputStream>getInputStream()ReadInputStreamfrom current picture.Optional<InputStream>getInputStream(IPictureManifestQuery query)The pictureInputStreamprotected TgetPicture()Source picture instancebooleanisTemplate(IPictureManifestQuery query)Is picture is template
 
- 
- 
- 
Constructor Detail- 
AbstractSinglePictureManifestpublic AbstractSinglePictureManifest(T picture) Create instance ofAbstractSinglePictureManifest- Parameters:
- picture- the source picture, cannot be- null
 
 
- 
 - 
Method Detail- 
getCompositeIdpublic CompositeId getCompositeId() Description copied from interface:IPictureManifestThe pictureCompositeId- Specified by:
- getCompositeIdin interface- IPictureManifest
- Returns:
- the CompositeIdornullif picture without id.
 
 - 
isTemplatepublic boolean isTemplate(IPictureManifestQuery query) Description copied from interface:IPictureManifestIs picture is template- Specified by:
- isTemplatein interface- IPictureManifest
- Parameters:
- query- the- IPictureManifestQuery, cannot be- null
- Returns:
- trueif picture by given query is template,- falsein otherwise
 
 - 
getDirectionpublic PictureDirectionVariant getDirection(IPictureManifestQuery query) throws IOException Description copied from interface:IPictureManifestThe picturePictureDirectionVariant- Specified by:
- getDirectionin interface- IPictureManifest
- Parameters:
- query- the- IPictureManifestQuery, cannot be- null
- 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
 
 - 
getInputStreampublic Optional<InputStream> getInputStream(IPictureManifestQuery query) throws IOException Description copied from interface:IPictureManifestThe pictureInputStreamThe picture may be cropped if it contains enough information for this purpose. - Specified by:
- getInputStreamin interface- IPictureManifest
- Parameters:
- query- the- IPictureManifestQuery, cannot be- null
- Returns:
- the InputStreamof picture by given query, nevernull
- Throws:
- IOException- if there is a problem to read the picture content
 
 - 
getPictureprotected T getPicture() Source picture instance- Returns:
- the picture instance, never null
 
 - 
getInputStreamprotected abstract Optional<InputStream> getInputStream() throws IOException ReadInputStreamfrom current picture.- Returns:
- InputStreamof picture, optional, never- null
- Throws:
- IOException- if there is a problem obtaining an read picture content or manifest
 
 
- 
 
-