com.supermap.services.components.spi
Class WaterMarkSetting
- java.lang.Object
-
- com.supermap.services.components.spi.WaterMarkSetting
-
- All Implemented Interfaces:
- java.io.Serializable
public class WaterMarkSetting extends java.lang.Object implements java.io.SerializableThe water mark settings class.
It is used to set the general information for map services.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description WaterMarkSetting()
-
Method Summary
Methods Modifier and Type Method and Description ColorgetFontColor()intgetFontSize()java.lang.StringgetFontStyle()java.lang.FloatgetImageAlpha()java.lang.StringgetImageUrl()Gets the address of the watermark image.intgetRandom()java.lang.StringgetTxtContent()Gets the text content of the watermark.intgetxIndex()intgetyIndex()voidsetFontColor(Color fontColor)Sets the color of the fonts of the watermark.voidsetFontSize(int fontSize)Sets the size of the fonts of the watermark.voidsetFontStyle(java.lang.String fontStyle)Sets the style of the fonts of the watermark.voidsetImageAlpha(java.lang.Float imageAlpha)Sets the transparency of watermark images.voidsetImageUrl(java.lang.String imageUrl)Sets the address of the watermark image.voidsetRandom(int random)Sets the probability to displqy the watermarks.voidsetTxtContent(java.lang.String txtContent)Sets the text content of the watermark.voidsetxIndex(int xIndex)Sets the index of the watermarks.voidsetyIndex(int yIndex)Sets the index of the watermarks.
-
-
-
Method Detail
-
getFontColor
public Color getFontColor()
-
setFontColor
public void setFontColor(Color fontColor)
Sets the color of the fonts of the watermark.
-
getFontStyle
public java.lang.String getFontStyle()
-
setFontStyle
public void setFontStyle(java.lang.String fontStyle)
Sets the style of the fonts of the watermark.
-
getRandom
public int getRandom()
-
setRandom
public void setRandom(int random)
Sets the probability to displqy the watermarks. Range: 1-->100.
-
getImageAlpha
public java.lang.Float getImageAlpha()
-
setImageAlpha
public void setImageAlpha(java.lang.Float imageAlpha)
Sets the transparency of watermark images. Range: 0-->1.
-
getFontSize
public int getFontSize()
-
setFontSize
public void setFontSize(int fontSize)
Sets the size of the fonts of the watermark.
-
getxIndex
public int getxIndex()
-
setxIndex
public void setxIndex(int xIndex)
Sets the index of the watermarks.
-
getyIndex
public int getyIndex()
-
setyIndex
public void setyIndex(int yIndex)
Sets the index of the watermarks.
-
getTxtContent
public java.lang.String getTxtContent()
Gets the text content of the watermark.
- Returns:
- The text content of the watermark.
-
setTxtContent
public void setTxtContent(java.lang.String txtContent)
Sets the text content of the watermark.
-
getImageUrl
public java.lang.String getImageUrl()
Gets the address of the watermark image.
- Returns:
- The address of the watermark image.
-
setImageUrl
public void setImageUrl(java.lang.String imageUrl)
Sets the address of the watermark image.
-
-