Class IZipPictureContent.Builder
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.pictures.zip.IZipPictureContent.Builder
-
- Enclosing interface:
- IZipPictureContent
public static class IZipPictureContent.Builder extends Object
Builder of structured content of zip based picture
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IZipPictureContent.Builder
addZipPictureEntry(String name, byte[] imageData)
Add new named picture data toIZipPictureContent
IZipPictureContent.Builder
addZipPictureManifestEntry(ZipPictureManifestEntry entry)
Add new manifest entry of zip based picture toIZipPictureContent
IZipPictureContent
build()
Build a newlyIZipPictureContent
void
setGlyphsPictureFlag(boolean isGlyphsPicture)
Settrue
flag if one or more picture in new content will be block of pictures, in otherwise all glyph size in manifest entries sets to zero.
-
-
-
Method Detail
-
build
public IZipPictureContent build()
Build a newlyIZipPictureContent
- Returns:
- the instance of newly
IZipPictureContent
, nevernull
-
addZipPictureEntry
public IZipPictureContent.Builder addZipPictureEntry(String name, byte[] imageData)
Add new named picture data toIZipPictureContent
- Parameters:
name
- the name of new picture, cannot benull
imageData
- the byte array stream data of new picture, cannot benull
- Returns:
IZipPictureContent.Builder
, nevernull
-
addZipPictureManifestEntry
public IZipPictureContent.Builder addZipPictureManifestEntry(ZipPictureManifestEntry entry)
Add new manifest entry of zip based picture toIZipPictureContent
- Parameters:
entry
- the newZipPictureManifestEntry
, cannot benull
- Returns:
IZipPictureContent.Builder
, nevernull
-
setGlyphsPictureFlag
public void setGlyphsPictureFlag(boolean isGlyphsPicture)
Settrue
flag if one or more picture in new content will be block of pictures, in otherwise all glyph size in manifest entries sets to zero.This flag has no sense if all glyph sizes in manifest entries is already zero
- Parameters:
isGlyphsPicture
- the isGlyphsPicture to set
-
-