com.supermap.mapping.dyn

Class DynamicStyle

  • java.lang.Object
    • com.supermap.mapping.dyn.DynamicStyle


  • public class DynamicStyle
    extends java.lang.Object
    The dynamic element style class.
    • Constructor Detail

      • DynamicStyle

        public DynamicStyle()
        Constructs a new dynamic element style object.
    • Method Detail

      • setAlpha

        public void setAlpha(int alpha)
        Sets the opacity. Value range [0,255], 0 for full transparency, 255 for total opacity.
        Parameters:
        alpha - Opacity.
      • getAlpha

        public int getAlpha()
        Gets the opacity.
        Returns:
        Opacity.
      • setTextColor

        public void setTextColor(int textColor)
        Sets the text color.
        Parameters:
        textColor - The text color.
      • getTextColor

        public int getTextColor()
        Gets the text color.
        Returns:
        The line color.
      • setLineColor

        public void setLineColor(int lineColor)
        Sets the line color.
        Parameters:
        lineColor - The line color
      • getLineColor

        public int getLineColor()
        Gets the line color.
        Returns:
        The line color
      • setBackColor

        public void setBackColor(int backColor)
        Sets the background color.
        Parameters:
        backColor - The background color.
      • getBackColor

        public int getBackColor()
        Gets the background color.
        Returns:
        The background color.
      • setSize

        public void setSize(float size)
        Sets the point size or line width.
        Parameters:
        size - The point object size or width. The unit is pixel.
      • getSize

        public float getSize()
        Gets the point size or line width.
        Returns:
        The point object size or width. The unit is pixel.
      • setBackground

        public void setBackground(android.graphics.Bitmap background)
        Sets the background image.
        Parameters:
        background - The background image.
      • getBackground

        public android.graphics.Bitmap getBackground()
        Gets the background image.
        Returns:
        The background image.
      • setAngle

        public void setAngle(float angle)
        Sets the angle.
        Parameters:
        angle - The angle
      • getAngle

        public float getAngle()
        Gets the angle.
        Returns:
        The angle
      • setScale

        public void setScale(float scale)
        Sets the display scale.
        Parameters:
        scale - The display scale.
      • getScale

        public float getScale()
        Gets the display scale.
        Returns:
        The display scale.
      • getPathEffect

        public android.graphics.PathEffect getPathEffect()
        Gets the style of a line.
        Returns:
        The style of a line.
      • setPathEffect

        public void setPathEffect(android.graphics.PathEffect effects)
        Sets the style of a line,Can be set to a dotted line, PathEffect See the documentation for Android.
        Parameters:
        effects - The style of a line.
      • getPointColor

        public int getPointColor()
        Return the color of point.
        Returns:
        The color value of point.
      • setPointColor

        public void setPointColor(int value)
        Sets the color of point.
        Parameters:
        value - The color value of point.
      • isBackgroundtransparent

        public boolean isBackgroundtransparent()
        Gets whether set the transparency of fill while drawing polygon
      • setBackgroundtransparent

        public void setBackgroundtransparent(boolean backgroundtransparent)
        Sets whether the fill is transparent while drawing polygon
      • isUnifiedStyle

        public boolean isUnifiedStyle()
        Whether to set to uniform styles (available for points only)
        Returns:
      • setUnifiedStyle

        public void setUnifiedStyle(boolean unifiedStyle)
        Sets to uniform styles (available for points only)
        Parameters:
        unifiedStyle -
      • getUnifiedStyleRadius

        public float getUnifiedStyleRadius()
        Gets the radius of circle of uniform style
        Returns:
      • setUnifiedStyleRadius

        public void setUnifiedStyleRadius(float unifiedStyleRadius)
        Sets the radius of circle of uniform style
        Parameters:
        unifiedStyleRadius -
      • getUnifiedStyleCorner

        public float getUnifiedStyleCorner()
        Sets the radian of uniform style
        Returns:
      • setUnifiedStyleCorner

        public void setUnifiedStyleCorner(float unifiedStyleCorner)
        Sets the radian of uniform style
        Parameters:
        unifiedStyleCorner -
      • getUnifiedStyleWidth

        public float getUnifiedStyleWidth()
        Gets the width of rectangle of uniform style
        Returns:
      • setUnifiedStyleWidth

        public void setUnifiedStyleWidth(float unifiedStyleWidth)
        Sets the width of rectangle of uniform style
        Parameters:
        unifiedStyleWidth -
      • getUnifiedStyleHeight

        public float getUnifiedStyleHeight()
        Gets the height of rectangle of uniform style
        Returns:
      • setUnifiedStyleHeight

        public void setUnifiedStyleHeight(float unifiedStyleHeight)
        Sets the height of rectangle of uniform style
        Parameters:
        unifiedStyleHeight -
      • setUnifiedStyleType

        public void setUnifiedStyleType(DynamicStyle.UnifiedStyleType unifiedStyleType)
        Sets the uniform style
        Parameters:
        unifiedStyleType -