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)
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()
void setAngle(float angle)
Sets the angle.
void setOffsetX(float offsetX)
Sets the offset along x-axis.
void 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 the MarkerSymbol node.

public MarkerSymbol (MarkerSymbol symbol)

Creates a new MarkerSymbol.

Parameters
symbol an MarkerSymbol object.

public MarkerSymbol ()

Instantiates an empty object of MarkerSymbol.

Public Methods

public boolean equals (Object obj)

public float getAngle ()

Gets the angle.

Returns
  • angle in degree.

public float getHeight ()

Returns the height of the marker in dp unit.

Returns
  • 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
  • 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
  • the offset along y-axis in dp unit.

public float getWidth ()

Returns the width of the marker in dp unit.

Returns
  • the width

public int hashCode ()

public void setAngle (float angle)

Sets the angle.

Parameters
angle the angle in degree.

public void 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 the offset along x-axis in dp unit.

public void 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 the offset along y-axis in dp unit.

Protected Methods

protected void setHeight (float height)

Sets the height of the marker in dp unit.

Parameters
height the marker height in dp unit.

protected void setWidth (float width)

Sets the width of the marker in dp unit.

Parameters
width the width in dp unit.