ContentPart
Inheritance: java.lang.Object
public abstract class ContentPart
Represents any logical part of a content (page, frame, header or a whole content) where watermark can be placed.
Methods
Method | Description |
---|---|
getParts() | |
setParts(IReadOnlyList<? extends ContentPart> value) | |
getSearchWatermarksInParts() | |
getStrategyManager() | |
findImages(ImageSearchCriteria searchCriteria) | Finds images according to the specified search criteria. |
findImages() | Finds all images in the content. |
search(SearchCriteria searchCriteria) | Finds possible watermarks according to specified search criteria. |
search() | Finds all possible watermarks in the content. |
addWatermark(Watermark watermark) | |
afterWatermarkAdding() | |
checkWatermarkingLicenseRestrictions(Watermark watermark) | |
getTopParent() | |
tryGetWatermarkerSettings() |
getParts()
public final IReadOnlyList<? extends ContentPart> getParts()
Returns: IReadOnlyList
setParts(IReadOnlyList<? extends ContentPart> value)
public final void setParts(IReadOnlyList<? extends ContentPart> value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.groupdocs.watermark.internal.IReadOnlyList<? extends com.groupdocs.watermark.contents.ContentPart> |
getSearchWatermarksInParts()
public boolean getSearchWatermarksInParts()
Returns: boolean
getStrategyManager()
public final IStrategyManager getStrategyManager()
Returns: IStrategyManager
findImages(ImageSearchCriteria searchCriteria)
public final WatermarkableImageCollection findImages(ImageSearchCriteria searchCriteria)
Finds images according to the specified search criteria.
The search is conducted in the objects specified in [Watermarker.getSearchableObjects()](../../com.groupdocs.watermark/watermarker#getSearchableObjects--)
.
Parameters:
Parameter | Type | Description |
---|---|---|
searchCriteria | ImageSearchCriteria | The search criteria to use. |
Returns: WatermarkableImageCollection - The collection of the found images.
findImages()
public final WatermarkableImageCollection findImages()
Finds all images in the content.
The search is conducted in the objects specified in [Watermarker.getSearchableObjects()](../../com.groupdocs.watermark/watermarker#getSearchableObjects--)
.
Returns: WatermarkableImageCollection - The collection of the found images.
search(SearchCriteria searchCriteria)
public final PossibleWatermarkCollection search(SearchCriteria searchCriteria)
Finds possible watermarks according to specified search criteria.
The search is conducted in the objects specified in [Watermarker.getSearchableObjects()](../../com.groupdocs.watermark/watermarker#getSearchableObjects--)
.
Parameters:
Parameter | Type | Description |
---|---|---|
searchCriteria | SearchCriteria | The search criteria to use. |
Returns: PossibleWatermarkCollection - The collection of the possible watermarks.
search()
public final PossibleWatermarkCollection search()
Finds all possible watermarks in the content.
The search is conducted in the objects specified in [Watermarker.getSearchableObjects()](../../com.groupdocs.watermark/watermarker#getSearchableObjects--)
.
Returns: PossibleWatermarkCollection - The collection of the possible watermarks.
addWatermark(Watermark watermark)
public void addWatermark(Watermark watermark)
Parameters:
Parameter | Type | Description |
---|---|---|
watermark | Watermark |
afterWatermarkAdding()
public void afterWatermarkAdding()
checkWatermarkingLicenseRestrictions(Watermark watermark)
public void checkWatermarkingLicenseRestrictions(Watermark watermark)
Parameters:
Parameter | Type | Description |
---|---|---|
watermark | Watermark |
getTopParent()
public final Content getTopParent()
Returns: Content
tryGetWatermarkerSettings()
public final WatermarkerSettings tryGetWatermarkerSettings()
Returns: WatermarkerSettings