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 int
computeDisplaySize(int symbolSize)
Compute the display size of the symbol passed in.int
computeSymbolSize(int displaySize)
Calculate the size of the symbol corresponding to the display size passed in.void
dispose()
Release the resource occupy by this object.boolean
draw(android.graphics.Bitmap bmp)
Draw the symbol object on specified Bitmap.boolean
draw(android.graphics.Bitmap bmp, Color color)
Draw the symbol object on specified Bitmap.SymbolMarkerStroke
get(int index)
Returns the stroke at the given index.int
getCount()
Returns the count of strokes of the SymbolMarker object.Point
getOrigin()
Returns the origin location of the symbol.SymbolType
getType()
Returns the SymbolMarker object.void
setOrigin(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.
-
-