java.lang.Object | ||
↳ | com.esri.core.symbol.MarkerSymbol | |
↳ | com.esri.core.symbol.SimpleMarkerSymbol |
Used to draw points and multipoints (or nodes of polylines and polygons) on the graphics layer using simple markers. SimpleMarkerSymbol is used to display points as a simple shape, for example, a circle.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | SimpleMarkerSymbol.STYLE | The marker style. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TYPE | The String type to represent the symbol. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SimpleMarkerSymbol(JsonNode node)
Instantiates an object of SimpleMakerSymbol from a JsonNode.
| |||||||||||
SimpleMarkerSymbol(int color, int size, SimpleMarkerSymbol.STYLE style)
Instantiates a SimpleMarkerSymbol with the given color, size and style.
| |||||||||||
SimpleMarkerSymbol(SimpleMarkerSymbol symbol)
Creates a new SimpleMarkerSymbol object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Symbol | copy() | ||||||||||
boolean | equals(Object obj) | ||||||||||
int |
getColor()
Returns the color of the symbol.
| ||||||||||
SimpleLineSymbol |
getOutline()
Gets the outline of the SimpleMarkerSymbol.
| ||||||||||
float |
getSize()
Returns the symbol size in dp unit.
| ||||||||||
SimpleMarkerSymbol.STYLE |
getStyle()
Returns the marker
SimpleMarkerSymbol.STYLE . | ||||||||||
int | hashCode() | ||||||||||
void |
setColor(int color)
Sets the color of the symbol.
| ||||||||||
void |
setOutline(SimpleLineSymbol outline)
Sets the outline of the SimpleMarkerSymbol.
| ||||||||||
void |
setSize(float size)
Sets the size in dp unit.
| ||||||||||
void |
setStyle(SimpleMarkerSymbol.STYLE style)
Sets the drawing style.
| ||||||||||
String | toJson() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.esri.core.symbol.MarkerSymbol
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.esri.core.symbol.Symbol
|
Instantiates an object of SimpleMakerSymbol from a JsonNode.
node | the SimpleMakerSymbol node. |
---|
Exception | the exception |
---|
Instantiates a SimpleMarkerSymbol with the given color, size and style.
color | the symbol color. |
---|---|
size | the symbol size in dp unit. |
style | the drawing SimpleMarkerSymbol.STYLE |
Creates a new SimpleMarkerSymbol object.
symbol | the symbol object to be cloned. |
---|
Exception | Null pointer exception is throw if the symbol is null |
---|
Returns the color of the symbol. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.
Gets the outline of the SimpleMarkerSymbol.
Returns the symbol size in dp unit.
Returns the marker SimpleMarkerSymbol.STYLE
.
Sets the color of the symbol. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.
color | the color in ARGB color value. |
---|
Sets the outline of the SimpleMarkerSymbol.
outline | The outline to set. |
---|
Sets the size in dp unit.
size | the size in dp unit. |
---|
Sets the drawing style.
style | one of the SimpleMarkerSymbol.STYLE . |
---|