public class

SimpleMarkerSymbol

extends MarkerSymbol
java.lang.Object
   ↳ com.esri.core.symbol.MarkerSymbol
     ↳ com.esri.core.symbol.SimpleMarkerSymbol

Class Overview

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.

Summary

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()
SimpleMarkerSymbol setColor(int color)
Sets the color of the symbol.
SimpleMarkerSymbol setOutline(SimpleLineSymbol outline)
Sets the outline of the SimpleMarkerSymbol.
SimpleMarkerSymbol setSize(float size)
Sets the size in dp unit.
SimpleMarkerSymbol 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

Constants

public static final String TYPE

The String type to represent the symbol.

Constant Value: "esriSMS"

Public Constructors

public SimpleMarkerSymbol (JsonNode node)

Instantiates an object of SimpleMakerSymbol from a JsonNode.

Parameters
node JsonNode: the SimpleMakerSymbol node.
Throws
Exception the exception

public SimpleMarkerSymbol (int color, int size, SimpleMarkerSymbol.STYLE style)

Instantiates a SimpleMarkerSymbol with the given color, size and style.

Parameters
color int: the symbol color.
size int: the symbol size in dp unit.
style SimpleMarkerSymbol.STYLE: the drawing SimpleMarkerSymbol.STYLE

public SimpleMarkerSymbol (SimpleMarkerSymbol symbol)

Creates a new SimpleMarkerSymbol object.

Parameters
symbol SimpleMarkerSymbol: the symbol object to be cloned.
Throws
Exception Null pointer exception is throw if the symbol is null

Public Methods

public Symbol copy ()

Returns
Symbol
Throws
Exception

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public int getColor ()

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.

Returns
int the color in RGB color value.

public SimpleLineSymbol getOutline ()

Gets the outline of the SimpleMarkerSymbol.

Returns
SimpleLineSymbol Returns the outline.

public float getSize ()

Returns the symbol size in dp unit.

Returns
float the size in dp unit.

public SimpleMarkerSymbol.STYLE getStyle ()

Returns the marker SimpleMarkerSymbol.STYLE.

Returns
SimpleMarkerSymbol.STYLE one of the style.

public int hashCode ()

Returns
int

public SimpleMarkerSymbol setColor (int color)

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.

Parameters
color int: the color in ARGB color value.
Returns
SimpleMarkerSymbol

public SimpleMarkerSymbol setOutline (SimpleLineSymbol outline)

Sets the outline of the SimpleMarkerSymbol.

Parameters
outline SimpleLineSymbol: The outline to set.
Returns
SimpleMarkerSymbol

public SimpleMarkerSymbol setSize (float size)

Sets the size in dp unit.

Parameters
size float: the size in dp unit.
Returns
SimpleMarkerSymbol

public SimpleMarkerSymbol setStyle (SimpleMarkerSymbol.STYLE style)

Sets the drawing style.

Parameters
style SimpleMarkerSymbol.STYLE: one of the SimpleMarkerSymbol.STYLE.
Returns
SimpleMarkerSymbol

public String toJson ()

Returns
String
Throws
Exception