Package com.stimulsoft.report.components
Class StiWatermark
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.components.StiWatermark
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,Cloneable
The class describes the watermark of the page.
-
Field Summary
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionStiWatermark(StiBrush textBrush, String text, double angle, StiFont font, boolean showBehind) StiWatermark(StiBrush textBrush, String text, double angle, StiFont font, boolean showBehind, boolean enabled, boolean aspectRatio) StiWatermark(StiBrush textBrush, String text, double angle, StiFont font, boolean showBehind, boolean enabled, boolean aspectRatio, boolean rightToLeft) -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectclone()booleandoublegetAngle()Gets or sets angle of Watermark.final booleanGets or sets value, indicates that this watermark's image will save its aspect ratio.getBufferedImage(StiReport report, StiRectangle rect) getBufferedImage(StiReport report, StiRectangle rect, StiRefObject<byte[]> imgBytes) getBytes()booleanGets or sets value which indicates where Watermark should be drawing or not.final StiFontgetFont()Gets or sets font of Watermark.Gets or sets the watermark's image alignment.Gets or sets value watermark's image.doubleGets or sets value to multiply by it an image size.booleanGets or sets value, indicates that this watermark's image will stretch on the page.booleanGets or sets the watermark's image should be tiled.intGets or sets the transparency of the watermark's image.final booleanGets or sets watermark's output direction.booleanGets or sets value which indicates where Watermark should be drawing behind or in front of page.booleanGets or sets value which indicates where Watermark's image should be drawing behind or in front of page.getText()Gets or sets text of Watermark.final StiBrushGets or sets a brush to Watermark.voidLoadFromJsonObject(JSONObject jObject) voidputImage(byte[] image) voidvoidvoidsetAngle(double value) final voidsetAspectRatio(boolean value) voidvoidsetEnabled(boolean value) voidsetEnabledExpression(String enabledExpression) final voidvoidvoidvoidsetImageBytes(String value) voidsetImageHyperlink(String imageHyperlink) voidsetImageMultipleFactor(double value) voidsetImageStretch(boolean value) voidsetImageTiling(boolean value) voidsetImageTransparency(int imageTransparency) final voidsetRightToLeft(boolean value) voidsetShowBehind(boolean value) voidsetShowImageBehind(boolean value) voidfinal voidsetTextBrush(StiBrush value) final booleanMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Constructor Details
-
StiWatermark
public StiWatermark() -
StiWatermark
-
StiWatermark
-
StiWatermark
-
-
Method Details
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
getBufferedImage
-
getBufferedImage
public BufferedImage getBufferedImage(StiReport report, StiRectangle rect, StiRefObject<byte[]> imgBytes) -
getImageBytes
Gets or sets value watermark's image. -
setImageBytes
-
putImage
- Throws:
UnsupportedEncodingException
-
putImage
-
resetImage
public void resetImage() -
getBytes
-
setBytes
-
setImage
-
getImageAlignment
Gets or sets the watermark's image alignment. -
setImageAlignment
-
getAngle
public double getAngle()Gets or sets angle of Watermark. -
getAspectRatio
public final boolean getAspectRatio()Gets or sets value, indicates that this watermark's image will save its aspect ratio. -
getEnabled
public boolean getEnabled()Gets or sets value which indicates where Watermark should be drawing or not. -
getFont
Gets or sets font of Watermark. -
getImageMultipleFactor
public double getImageMultipleFactor()Gets or sets value to multiply by it an image size. -
getImageStretch
public boolean getImageStretch()Gets or sets value, indicates that this watermark's image will stretch on the page. -
getImageTiling
public boolean getImageTiling()Gets or sets the watermark's image should be tiled. -
getImageTransparency
public int getImageTransparency()Gets or sets the transparency of the watermark's image. -
setImageTransparency
public void setImageTransparency(int imageTransparency) -
getRightToLeft
public final boolean getRightToLeft()Gets or sets watermark's output direction. -
getShowBehind
public boolean getShowBehind()Gets or sets value which indicates where Watermark should be drawing behind or in front of page. -
getShowImageBehind
public boolean getShowImageBehind()Gets or sets value which indicates where Watermark's image should be drawing behind or in front of page. -
getText
Gets or sets text of Watermark. -
getTextBrush
Gets or sets a brush to Watermark. -
setAngle
public void setAngle(double value) -
setAspectRatio
public final void setAspectRatio(boolean value) -
setEnabled
public void setEnabled(boolean value) -
setFont
-
setImageMultipleFactor
public void setImageMultipleFactor(double value) -
setImageStretch
public void setImageStretch(boolean value) -
setImageTiling
public void setImageTiling(boolean value) -
setRightToLeft
public final void setRightToLeft(boolean value) -
setShowBehind
public void setShowBehind(boolean value) -
setShowImageBehind
public void setShowImageBehind(boolean value) -
setText
-
setTextBrush
-
ShouldSerializeTextBrush
public final boolean ShouldSerializeTextBrush() -
clone
-
getEnabledExpression
- Returns:
- the enabledExpression
-
setEnabledExpression
- Parameters:
enabledExpression- the enabledExpression to set
-
getImageHyperlink
- Returns:
- the imageHyperlink
-
setImageHyperlink
- Parameters:
imageHyperlink- the imageHyperlink to set
-
existImage
public boolean existImage()
-