com.supermap.data
Class SymbolMarker
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Symbol
-
- com.supermap.data.SymbolMarker
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcomputeDisplaySize(int symbolSize)Compute the display size of the symbol passed in.intcomputeSymbolSize(int displaySize)Calculate the size of the symbol corresponding to the display size passed in.voiddispose()Release the resource occupy by this object.booleandraw(android.graphics.Bitmap bmp)Draw the symbol object on specified Bitmap.booleandraw(android.graphics.Bitmap bmp, Color color)Draw the symbol object on specified Bitmap.SymbolMarkerStrokeget(int index)Returns the stroke at the given index.intgetCount()Returns the count of strokes of the SymbolMarker object.PointgetOrigin()Returns the origin location of the symbol.SymbolTypegetType()Returns the SymbolMarker object.voidsetOrigin(Point point)Sets the origin location of the symbol returned.-
Methods inherited from class com.supermap.data.Symbol
getID, getLibrary, getName, setSymbolStyle, toString
-
-
-
-
Method Detail
-
computeDisplaySize
public int computeDisplaySize(int symbolSize)
Compute the display size of the symbol passed in.- Parameters:
symbolSize- set the size of the symbol. Throw an exception when the parameter is less than or equal to zero.- Returns:
- the display size converted.
-
computeSymbolSize
public int computeSymbolSize(int displaySize)
Calculate the size of the symbol corresponding to the display size passed in.- Parameters:
displaySize- the display size specifiedl. Throw an exception when the parameter is less than or equal to zero.- Returns:
- the symbol size converted.
-
dispose
public void dispose()
Release the resource occupy by this object.
-
getType
public SymbolType getType()
Returns the SymbolMarker object.
-
getOrigin
public Point getOrigin()
Returns the origin location of the symbol.- Returns:
- the origin location of the symbol.
-
setOrigin
public void setOrigin(Point point)
Sets the origin location of the symbol returned.- Parameters:
point- the origin location of the symbol.
-
get
public SymbolMarkerStroke get(int index)
Returns the stroke at the given index.- Parameters:
index- the specified index- Returns:
- the stroke at the given index.
-
getCount
public int getCount()
Returns the count of strokes of the SymbolMarker object.- Returns:
- the count of strokes of the SymbolMarker object.
-
draw
public boolean draw(android.graphics.Bitmap bmp, Color color)Draw the symbol object on specified Bitmap.
-
-