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.Serializable
    

    The 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
      Color getFontColor() 
      int getFontSize() 
      java.lang.String getFontStyle() 
      java.lang.Float getImageAlpha() 
      java.lang.String getImageUrl()
      Gets the address of the watermark image.
      int getRandom() 
      java.lang.String getTxtContent()
      Gets the text content of the watermark.
      int getxIndex() 
      int getyIndex() 
      void setFontColor(Color fontColor)
      Sets the color of the fonts of the watermark.
      void setFontSize(int fontSize)
      Sets the size of the fonts of the watermark.
      void setFontStyle(java.lang.String fontStyle)
      Sets the style of the fonts of the watermark.
      void setImageAlpha(java.lang.Float imageAlpha)
      Sets the transparency of watermark images.
      void setImageUrl(java.lang.String imageUrl)
      Sets the address of the watermark image.
      void setRandom(int random)
      Sets the probability to displqy the watermarks.
      void setTxtContent(java.lang.String txtContent)
      Sets the text content of the watermark.
      void setxIndex(int xIndex)
      Sets the index of the watermarks.
      void setyIndex(int yIndex)
      Sets the index of the watermarks.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WaterMarkSetting

        public WaterMarkSetting()
        
    • 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.