PossibleWatermark
Inheritance: java.lang.Object
public abstract class PossibleWatermark
Represents possible watermark found in a document.
Constructors
Constructor | Description |
---|---|
PossibleWatermark() |
Methods
Method | Description |
---|---|
getParent() | Gets the parent of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getWidth() | Gets the width of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getHeight() | Gets the height of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getX() | Gets the x-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getY() | Gets the y-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getRotateAngle() | Gets the rotate angle of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) in degrees. |
getText() | Gets the text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
setText(String value) | Sets the text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getFormattedTextFragments() | Gets the collection of formatted text fragments of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getImageData() | Gets or sets the image of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
setImageData(byte[] value) | |
getUnitOfMeasurement() | Gets the unit of measurement [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getCollection() | |
setCollection(PossibleWatermarkCollection value) | |
getImageSize() | |
getImageInternally() | |
remove() |
PossibleWatermark()
public PossibleWatermark()
getParent()
public abstract ContentPart getParent()
Gets the parent of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
ContentPart - The parent of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
getWidth()
public double getWidth()
Gets the width of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
double - The width of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
getHeight()
public double getHeight()
Gets the height of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
double - The height of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
getX()
public double getX()
Gets the x-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
double - The x-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
getY()
public double getY()
Gets the y-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
double - The y-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
getRotateAngle()
public double getRotateAngle()
Gets the rotate angle of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
in degrees.
Returns:
double - The rotate angle of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
getText()
public String getText()
Gets the text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
java.lang.String - The text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
setText(String value)
public void setText(String value)
Sets the text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | The text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) . |
getFormattedTextFragments()
public FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
FormattedTextFragmentCollection - The collection of formatted text fragments of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
getImageData()
public final byte[] getImageData()
Gets or sets the image of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
byte[] - The image of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
or null if the watermark has no image.
setImageData(byte[] value)
public final void setImageData(byte[] value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte[] |
getUnitOfMeasurement()
public int getUnitOfMeasurement()
Gets the unit of measurement [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement)
of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
Returns:
int - The unit of measurement [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement)
of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark)
.
getCollection()
public final PossibleWatermarkCollection getCollection()
Returns: PossibleWatermarkCollection
setCollection(PossibleWatermarkCollection value)
public final void setCollection(PossibleWatermarkCollection value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | PossibleWatermarkCollection |
getImageSize()
public final Size getImageSize()
Returns: Size
getImageInternally()
public WatermarkableImage getImageInternally()
Returns: WatermarkableImage
remove()
public abstract void remove()