public class

SimpleLineSymbol

extends LineSymbol
java.lang.Object
   ↳ com.esri.core.symbol.LineSymbol
     ↳ com.esri.core.symbol.SimpleLineSymbol

Class Overview

Used to draw linear features on the graphics layer.

Summary

Nested Classes
enum SimpleLineSymbol.STYLE The simple line style
 DASH        dash line. 
Constants
String TYPE The Constant TYPE.
Public Constructors
SimpleLineSymbol(JsonNode node)
Instantiates an object of SimpleLineSymbol from a JsonNode.
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(SimpleLineSymbol symbol)
Instantiates the SimpleLineSymbol from specified SimpleLineSymbol object.
Public Methods
Symbol copy()
boolean equals(Object obj)
SimpleLineSymbol.STYLE getStyle()
Gets the line style.
int hashCode()
void setStyle(SimpleLineSymbol.STYLE style)
Sets the line style.
String toJson()
[Expand]
Inherited Methods
From class com.esri.core.symbol.LineSymbol
From class java.lang.Object
From interface com.esri.core.symbol.Symbol

Constants

public static final String TYPE

The Constant TYPE.

Constant Value: "esriSLS"

Public Constructors

public SimpleLineSymbol (JsonNode node)

Instantiates an object of SimpleLineSymbol from a JsonNode.

Parameters
node the SimpleLineSymbol node.
Throws
Exception the exception

public SimpleLineSymbol (int color, float width)

Instantiates a SimpleLineSymbol with the given color and width.

Parameters
color the line color.
width the line width.

public SimpleLineSymbol (int color, float width, SimpleLineSymbol.STYLE style)

Instantiates a SimpleLineSymbol with the given color, width, and style.

Parameters
color the line color.
width the line width.
style the line style.

public SimpleLineSymbol (SimpleLineSymbol symbol)

Instantiates the SimpleLineSymbol from specified SimpleLineSymbol object.

Parameters
symbol the specified SimpleLineSymbolObject.

Public Methods

public Symbol copy ()

Throws
Exception

public boolean equals (Object obj)

public SimpleLineSymbol.STYLE getStyle ()

Gets the line style.

Returns

public int hashCode ()

public void setStyle (SimpleLineSymbol.STYLE style)

Sets the line style.

Parameters
style SimpleLineSymbol.STYLE constant.

public String toJson ()

Throws
Exception