public abstract class

MarkerSymbol

extends Object
implements Symbol
java.lang.Object
   ↳ com.esri.core.symbol.MarkerSymbol
Known Direct Subclasses

Class Overview

The base class for all the marker symbol. Use its subclasses, SimpleMarkerSymbol or PictureMarkerSymbol, directly to draw points and multipoints on the graphics layer.

Summary

Public Constructors
MarkerSymbol(JsonNode node)
Instantiates an object of MarkerSymbol from a JsonNode.
MarkerSymbol(MarkerSymbol symbol)
Creates a new MarkerSymbol.
MarkerSymbol()
Instantiates an empty object of MarkerSymbol.
Public Methods
boolean equals(Object obj)
static MarkerSymbol fromJson(String json)
For internal use only
float getAngle()
Gets the angle.
float getHeight()
Returns the height of the marker in dp unit.
float getOffsetX()
Gets the offset along x-axis.
float getOffsetY()
Gets the offset along y-axis.
float getWidth()
Returns the width of the marker in dp unit.
int hashCode()
MarkerSymbol setAngle(float angle)
Sets the angle.
MarkerSymbol setOffsetX(float offsetX)
Sets the offset along x-axis.
MarkerSymbol setOffsetY(float offsetY)
Sets the offset along y-axis.
Protected Methods
void setHeight(float height)
Sets the height of the marker in dp unit.
void setWidth(float width)
Sets the width of the marker in dp unit.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.symbol.Symbol

Public Constructors

public MarkerSymbol (JsonNode node)

Instantiates an object of MarkerSymbol from a JsonNode.

Parameters
node JsonNode: the MarkerSymbol node.

public MarkerSymbol (MarkerSymbol symbol)

Creates a new MarkerSymbol.

Parameters
symbol MarkerSymbol: an MarkerSymbol object.

public MarkerSymbol ()

Instantiates an empty object of MarkerSymbol.

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static MarkerSymbol fromJson (String json)

For internal use only

Parameters
json String
Returns
MarkerSymbol
Throws
Exception

public float getAngle ()

Gets the angle.

Returns
float angle in degree.

public float getHeight ()

Returns the height of the marker in dp unit.

Returns
float the marker's height in dp unit.

public float getOffsetX ()

Gets the offset along x-axis. The MarkerSymbol adheres to a point feature. The offset specifies the distance between the point and the symbol anchor point along x-axis in dp unit.

Returns
float the offset along the x-axis in dp unit.

public float getOffsetY ()

Gets the offset along y-axis. The MarkerSymbol adheres to a point feature. The offset specifies the distance between the point and the symbol anchor point along y-axis in dp unit.

Returns
float the offset along y-axis in dp unit.

public float getWidth ()

Returns the width of the marker in dp unit.

Returns
float the width

public int hashCode ()

Returns
int

public MarkerSymbol setAngle (float angle)

Sets the angle.

Parameters
angle float: the angle in degree.
Returns
MarkerSymbol

public MarkerSymbol setOffsetX (float offsetX)

Sets the offset along x-axis. The MarkerSymbol adheres to a point feature. The offset specifies the distance between the point and the symbol anchor point along x-axis in dp unit.

Parameters
offsetX float: the offset along x-axis in dp unit.
Returns
MarkerSymbol

public MarkerSymbol setOffsetY (float offsetY)

Sets the offset along y-axis. The MarkerSymbol adheres to a point feature. The offset specifies the distance between the point and the symbol anchor point along y-axis in dp unit.

Parameters
offsetY float: the offset along y-axis in dp unit.
Returns
MarkerSymbol

Protected Methods

protected void setHeight (float height)

Sets the height of the marker in dp unit.

Parameters
height float: the marker height in dp unit.

protected void setWidth (float width)

Sets the width of the marker in dp unit.

Parameters
width float: the width in dp unit.