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.
 
Method Summary
 boolean equals(Object obj)
           
 float getAngle()
           
 float getHeight()
          Returns the height of the marker in pixels.
 float getOffsetX()
          The MarkerSymbol adheres to a point feature.
 float getOffsetY()
          The MarkerSymbol adheres to a point feature.
 float getWidth()
          Returns the width of the marker in pixels.
 int hashCode()
           
 void setAngle(float angle)
           
protected  void setHeight(float height)
          Sets the height of the marker in pixels.
 void setOffsetX(float offsetX)
          The MarkerSymbol adheres to a point feature.
 void setOffsetY(float offsetY)
          The MarkerSymbol adheres to a point feature.
protected  void setWidth(float width)
          Sets the width of the marker in pixels
 
Methods inherited from class java.lang.Object
clone, finalize, 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()
Instantiates an empty object of MarkerSymbol.

Method Detail

getAngle

public float getAngle()

setAngle

public void setAngle(float angle)

getWidth

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


setWidth

protected void setWidth(float width)
Sets the width of the marker in pixels

Parameters:
width - the width in pixels.

getHeight

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

Returns:
the marker's height in pixels.

setHeight

protected void setHeight(float height)
Sets the height of the marker in pixels.

Parameters:
height - the marker height in pixels.

getOffsetX

public float getOffsetX()
The MarkerSymbol adheres to a point feature. The offset specifies the distance between the point and the symbol anchor point in pixels.

Returns:
the offset along the x-axis in pixels.

setOffsetX

public void setOffsetX(float offsetX)
The MarkerSymbol adheres to a point feature. The offset specifies the distance between the point and the symbol anchor point in pixels.

Parameters:
offsetX - the offset along y-axis in pixels.

getOffsetY

public float getOffsetY()
The MarkerSymbol adheres to a point feature. The offset specifies the distance between the point and the symbol anchor point in pixels.

Returns:
the offset along y-axis in pixels.

setOffsetY

public void setOffsetY(float offsetY)
The MarkerSymbol adheres to a point feature. The offset specifies the distance between the point and the symbol anchor point in pixels.

Parameters:
offsetY - the offset along y-axis in pixels.

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.