com.esri.core.symbol
Class SimpleLineSymbol

java.lang.Object
  extended by com.esri.core.symbol.LineSymbol
      extended by com.esri.core.symbol.SimpleLineSymbol
All Implemented Interfaces:
PaintSymbol, Symbol, Serializable

public class SimpleLineSymbol
extends LineSymbol

Used to draw linear features on the graphics layer.

See Also:
Serialized Form

Field Summary
static String TYPE
           
 
Constructor Summary
SimpleLineSymbol(int color, int width)
          Instantiates a SimpleLineSymbol with the given color and width.
SimpleLineSymbol(org.codehaus.jackson.JsonNode node)
          Instantiates an object of SimpleLineSymbol from a JsonNode.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toJson()
          Converts the symbol to a Json String.
 android.graphics.Paint toPaint(android.graphics.Paint p)
          Returns the symbol as a Paint object.
 
Methods inherited from class com.esri.core.symbol.LineSymbol
getAlpha, getColor, getWidth, isAntiAlias, setAlpha, setAntiAlias, setColor, setWidth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

SimpleLineSymbol

public SimpleLineSymbol(org.codehaus.jackson.JsonNode node)
                 throws Exception
Instantiates an object of SimpleLineSymbol from a JsonNode.

Parameters:
node - the SimpleLineSymbol node.
Throws:
Exception

SimpleLineSymbol

public SimpleLineSymbol(int color,
                        int width)
Instantiates a SimpleLineSymbol with the given color and width.

Parameters:
color - the line color.
width - the width in pixels.
Method Detail

toPaint

public android.graphics.Paint toPaint(android.graphics.Paint p)
Description copied from interface: PaintSymbol
Returns the symbol as a Paint object.

Parameters:
p - override the given paint object instead of create a new paint object.
Returns:
the symbol as a paint object.

toJson

public String toJson()
              throws Exception
Description copied from interface: Symbol
Converts the symbol to a Json String.

Throws:
Exception

hashCode

public int hashCode()
Overrides:
hashCode in class LineSymbol

equals

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


Copyright © 2010. All Rights Reserved.