|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 simple line style |
Field Summary | |
---|---|
static String |
TYPE
|
Constructor Summary | |
---|---|
SimpleLineSymbol(int color,
float width)
Instantiates a SimpleLineSymbol with the given color and width. |
|
SimpleLineSymbol(int 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. |
|
SimpleLineSymbol(SimpleLineSymbol symbol)
Instantiates the SimpleLineSymbol from specified SimpleLineSymbol object. |
Method Summary | |
---|---|
Symbol |
copy()
Gets a copy of this Symbol object. |
boolean |
equals(Object obj)
|
SimpleLineSymbol.STYLE |
getStyle()
Gets the line style. |
int |
hashCode()
|
void |
setStyle(SimpleLineSymbol.STYLE style)
Sets the line style |
String |
toJson()
Converts the symbol to a Json String. |
Methods inherited from class com.esri.core.symbol.LineSymbol |
---|
getAlpha, getColor, getWidth, isAntiAlias, setAlpha, setAntiAlias, setColor, setWidth |
Methods inherited from class java.lang.Object |
---|
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(int color, float width)
color
- the line color.width
- the line width.public SimpleLineSymbol(int color, float width, SimpleLineSymbol.STYLE style)
color
- the line color.width
- the line width.style
- the line style.public SimpleLineSymbol(SimpleLineSymbol symbol)
symbol
- the specified SimpleLineSymbolObject.Method Detail |
---|
public void setStyle(SimpleLineSymbol.STYLE style)
style
- SimpleLineSymbol.STYLE
constant.public SimpleLineSymbol.STYLE getStyle()
SimpleLineSymbol.STYLE
constant.public String toJson() throws Exception
Symbol
Exception
public int hashCode()
hashCode
in class LineSymbol
public 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 |