com.supermap.mapping
Class LegendItem
- java.lang.Object
-
- com.supermap.mapping.LegendItem
-
public class LegendItem extends java.lang.ObjectLegend subclasses.
-
-
Constructor Summary
Constructors Constructor and Description LegendItem()Constructs a new legend subkey object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description android.graphics.BitmapgetBitmap()Get the legend sub-item corresponding to the bitmap.java.lang.StringgetCaption()Get the legend subkey expressionintgetColor()Gets LegendItem colorvoidsetBitmap(android.graphics.Bitmap bitmap)Set the legend sub-bitmap for custom legend (the default legend does not set bitmap information)voidsetCaption(java.lang.String caption)Set the legend subkey representationvoidsetColor(int color)Sets LegendItem color
-
-
-
Method Detail
-
getBitmap
public android.graphics.Bitmap getBitmap()
Get the legend sub-item corresponding to the bitmap.- Returns:
- Legend Sub-item corresponds to bitmap.
-
getCaption
public java.lang.String getCaption()
Get the legend subkey expression- Returns:
- legend subkey expression.
-
setCaption
public void setCaption(java.lang.String caption)
Set the legend subkey representation- Parameters:
caption- legend expression.
-
setBitmap
public void setBitmap(android.graphics.Bitmap bitmap)
Set the legend sub-bitmap for custom legend (the default legend does not set bitmap information)- Parameters:
bitmap- legend bitmap.
-
getColor
public int getColor()
Gets LegendItem color- Returns:
- LegendItem color
-
setColor
public void setColor(int color)
Sets LegendItem color- Parameters:
color- Sets LegendItem color
-
-