com.esri.core.symbol
Class SimpleLineSymbol
java.lang.Object
com.esri.core.symbol.LineSymbol
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
|
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. |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
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.
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.