com.supermap.data
Class Symbol
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Symbol
-
- Direct Known Subclasses:
- SymbolFill, SymbolLine, SymbolMarker
public abstract class Symbol extends InternalHandleDisposable
The Symbol class.All the classes such as the SymbolMarker class, the SymbolLine class and the SymbolFill class are all the subclass the Symbol class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
Release resources.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.int
getID()
Returns the ID of the Symbol object.SymbolLibrary
getLibrary()
Returns the SymbolLibrary object which the Symbol object belongs to.java.lang.String
getName()
Returns the name of the Symbol object.SymbolType
getType()
Returns the type of Symbol object.There are three types: marker symbol, line symbol, and fill symbol.void
setSymbolStyle(GeoStyle style)
Set symbol style.java.lang.String
toString()
Returns the character string describing the Symbol object and its format is that {Name=,ID=}.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the Symbol object. The name of the Symbol object can be the same as the one of others in the same symbol library.- Returns:
- the name of the Symbol object.
-
getID
public int getID()
Returns the ID of the Symbol object. The ID of the Symbol object must be unique in the same symbol library.- Returns:
- The ID of the Symbol object.
-
getLibrary
public SymbolLibrary getLibrary()
Returns the SymbolLibrary object which the Symbol object belongs to.- Returns:
- the SymbolLibrary object which the Symbol object belongs to.
-
getType
public SymbolType getType()
Returns the type of Symbol object.There are three types: marker symbol, line symbol, and fill symbol.- Returns:
- the type of symbol object.
-
toString
public java.lang.String toString()
Returns the character string describing the Symbol object and its format is that {Name=,ID=}.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the character string describing the Symbol object.
-
draw
public boolean draw(android.graphics.Bitmap bmp, Color color)
Draw the symbol object on specified Bitmap.- Parameters:
bmp
- Specify the Bitmap.color
- Background color- Returns:
- Returns true if successful; otherwise false.
-
draw
public boolean draw(android.graphics.Bitmap bmp)
Draw the symbol object on specified Bitmap.- Parameters:
bmp
- Specify the Bitmap.- Returns:
- Returns true if successful; otherwise false.
-
setSymbolStyle
public void setSymbolStyle(GeoStyle style)
Set symbol style. If not, use default style.- Parameters:
style
- Style
-
dispose
public void dispose()
Release resources. The object you don't use needs to release its resources to avoid memory leaking.
-
-