|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.symbol.LineSymbol
com.esri.core.symbol.SimpleLineSymbol
public class SimpleLineSymbol

Used to draw linear features on the graphics layer.
| Nested Class Summary | |
|---|---|
static class |
SimpleLineSymbol.Style
The line style. |
| Field Summary | |
|---|---|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
SimpleLineSymbol(Color color,
float width)
Instantiates a SimpleLineSymbol with the given color and width. |
|
SimpleLineSymbol(Color color,
float width,
SimpleLineSymbol.Style style)
Instantiates a SimpleLineSymbol with the given color, width and style. |
|
SimpleLineSymbol(org.codehaus.jackson.JsonNode node)
Instantiates an object of SimpleLineSymbol from a JsonNode. |
|
| Method Summary | |
|---|---|
Symbol |
copy()
Gets a copy of this Symbol object. |
boolean |
equals(Object obj)
|
SimpleLineSymbol.Style |
getStyle()
Get the current line style |
int |
hashCode()
|
void |
setStyle(SimpleLineSymbol.Style style)
Set the current line style |
String |
toJson()
Converts the symbol to a Json String. |
| Methods inherited from class com.esri.core.symbol.LineSymbol |
|---|
getAlpha, getColor, getWidth, setAlpha, setColor, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
public SimpleLineSymbol(org.codehaus.jackson.JsonNode node)
throws Exception
node - the SimpleLineSymbol node.
Exception
public SimpleLineSymbol(Color color,
float width)
color - the line color.width - the width in pixels.
public SimpleLineSymbol(Color color,
float width,
SimpleLineSymbol.Style style)
color - the line color.width - the width in pixels.style - line style.| Method Detail |
|---|
public SimpleLineSymbol.Style getStyle()
public void setStyle(SimpleLineSymbol.Style style)
style - the current line style
public String toJson()
throws Exception
Symbol
Exceptionpublic int hashCode()
hashCode in class LineSymbolpublic boolean equals(Object obj)
equals in class LineSymbol
public Symbol copy()
throws Exception
Symbol
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||