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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
DynamicStyle.UnifiedStyleType
The uniform style
-
Constructor Summary
Constructors Constructor and Description DynamicStyle()
Constructs a new dynamic element style object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getAlpha()
Gets the opacity.float
getAngle()
Gets the angle.int
getBackColor()
Gets the background color.android.graphics.Bitmap
getBackground()
Gets the background image.int
getLineColor()
Gets the line color.android.graphics.PathEffect
getPathEffect()
Gets the style of a line.int
getPointColor()
Return the color of point.float
getScale()
Gets the display scale.float
getSize()
Gets the point size or line width.int
getTextColor()
Gets the text color.float
getUnifiedStyleCorner()
Sets the radian of uniform stylefloat
getUnifiedStyleHeight()
Gets the height of rectangle of uniform stylefloat
getUnifiedStyleRadius()
Gets the radius of circle of uniform styleDynamicStyle.UnifiedStyleType
getUnifiedStyleType()
Gets the uniform stylefloat
getUnifiedStyleWidth()
Gets the width of rectangle of uniform styleboolean
isBackgroundtransparent()
Gets whether set the transparency of fill while drawing polygonboolean
isUnifiedStyle()
Whether to set to uniform styles (available for points only)void
setAlpha(int alpha)
Sets the opacity.void
setAngle(float angle)
Sets the angle.void
setBackColor(int backColor)
Sets the background color.void
setBackground(android.graphics.Bitmap background)
Sets the background image.void
setBackgroundtransparent(boolean backgroundtransparent)
Sets whether the fill is transparent while drawing polygonvoid
setLineColor(int lineColor)
Sets the line color.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.void
setPointColor(int value)
Sets the color of point.void
setScale(float scale)
Sets the display scale.void
setSize(float size)
Sets the point size or line width.void
setTextColor(int textColor)
Sets the text color.void
setUnifiedStyle(boolean unifiedStyle)
Sets to uniform styles (available for points only)void
setUnifiedStyleCorner(float unifiedStyleCorner)
Sets the radian of uniform stylevoid
setUnifiedStyleHeight(float unifiedStyleHeight)
Sets the height of rectangle of uniform stylevoid
setUnifiedStyleRadius(float unifiedStyleRadius)
Sets the radius of circle of uniform stylevoid
setUnifiedStyleType(DynamicStyle.UnifiedStyleType unifiedStyleType)
Sets the uniform stylevoid
setUnifiedStyleWidth(float unifiedStyleWidth)
Sets the width of rectangle of uniform style
-
-
-
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
-
-
getUnifiedStyleType
public DynamicStyle.UnifiedStyleType getUnifiedStyleType()
Gets the uniform style- Returns:
-
setUnifiedStyleType
public void setUnifiedStyleType(DynamicStyle.UnifiedStyleType unifiedStyleType)
Sets the uniform style- Parameters:
unifiedStyleType
-
-
-