com.supermap.mapping.dyn
Class DynamicStyle
- java.lang.Object
-
- com.supermap.mapping.dyn.DynamicStyle
-
public class DynamicStyle extends java.lang.ObjectThe dynamic element style class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classDynamicStyle.UnifiedStyleTypeThe 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 intgetAlpha()Gets the opacity.floatgetAngle()Gets the angle.intgetBackColor()Gets the background color.android.graphics.BitmapgetBackground()Gets the background image.intgetLineColor()Gets the line color.android.graphics.PathEffectgetPathEffect()Gets the style of a line.intgetPointColor()Return the color of point.floatgetScale()Gets the display scale.floatgetSize()Gets the point size or line width.intgetTextColor()Gets the text color.floatgetUnifiedStyleCorner()Sets the radian of uniform stylefloatgetUnifiedStyleHeight()Gets the height of rectangle of uniform stylefloatgetUnifiedStyleRadius()Gets the radius of circle of uniform styleDynamicStyle.UnifiedStyleTypegetUnifiedStyleType()Gets the uniform stylefloatgetUnifiedStyleWidth()Gets the width of rectangle of uniform stylebooleanisBackgroundtransparent()Gets whether set the transparency of fill while drawing polygonbooleanisUnifiedStyle()Whether to set to uniform styles (available for points only)voidsetAlpha(int alpha)Sets the opacity.voidsetAngle(float angle)Sets the angle.voidsetBackColor(int backColor)Sets the background color.voidsetBackground(android.graphics.Bitmap background)Sets the background image.voidsetBackgroundtransparent(boolean backgroundtransparent)Sets whether the fill is transparent while drawing polygonvoidsetLineColor(int lineColor)Sets the line color.voidsetPathEffect(android.graphics.PathEffect effects)Sets the style of a line,Can be set to a dotted line, PathEffect See the documentation for Android.voidsetPointColor(int value)Sets the color of point.voidsetScale(float scale)Sets the display scale.voidsetSize(float size)Sets the point size or line width.voidsetTextColor(int textColor)Sets the text color.voidsetUnifiedStyle(boolean unifiedStyle)Sets to uniform styles (available for points only)voidsetUnifiedStyleCorner(float unifiedStyleCorner)Sets the radian of uniform stylevoidsetUnifiedStyleHeight(float unifiedStyleHeight)Sets the height of rectangle of uniform stylevoidsetUnifiedStyleRadius(float unifiedStyleRadius)Sets the radius of circle of uniform stylevoidsetUnifiedStyleType(DynamicStyle.UnifiedStyleType unifiedStyleType)Sets the uniform stylevoidsetUnifiedStyleWidth(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-
-
-