com.esri.core.symbol
Class MarkerSymbol

java.lang.Object
  extended by com.esri.core.symbol.MarkerSymbol
All Implemented Interfaces:
Symbol, Serializable
Direct Known Subclasses:
PictureMarkerSymbol, SimpleMarkerSymbol, TextSymbol

public abstract class MarkerSymbol
extends Object
implements Symbol

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

See Also:
Serialized Form

Constructor Summary
MarkerSymbol()
          Instantiates an empty object of MarkerSymbol.
MarkerSymbol(org.codehaus.jackson.JsonNode node)
          Instantiates an object of MarkerSymbol from a JsonNode.
MarkerSymbol(MarkerSymbol symbol)
          Creates a new MarkerSymbol.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.core.symbol.Symbol
copy, toJson
 

Constructor Detail

MarkerSymbol

public MarkerSymbol(org.codehaus.jackson.JsonNode node)
Instantiates an object of MarkerSymbol from a JsonNode.

Parameters:
node - the MarkerSymbol node.

MarkerSymbol

public MarkerSymbol(MarkerSymbol symbol)
Creates a new MarkerSymbol.

Parameters:
symbol - an MarkerSymbol object.

MarkerSymbol

public MarkerSymbol()
Instantiates an empty object of MarkerSymbol.

Method Detail

getAngle

public float getAngle()
Gets the angle.

Returns:
angle in degree.

setAngle

public void setAngle(float angle)
Sets the angle.

Parameters:
angle - the angle in degree.

getWidth

public float getWidth()
Returns the width of the marker in dp unit.


getHeight

public float getHeight()
Returns the height of the marker in dp unit.

Returns:
the marker's height in dp unit.

getOffsetX

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.

setOffsetX

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.

getOffsetY

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.

setOffsetY

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.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.