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()
SimpleLineSymbol 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 JsonNode: the SimpleLineSymbol node.
Throws
Exception the exception

public SimpleLineSymbol (int color, float width)

Instantiates a SimpleLineSymbol with the given color and width.

Parameters
color int: the line color.
width float: the line width.

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

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

Parameters
color int: the line color.
width float: the line width.
style SimpleLineSymbol.STYLE: the line style.

public SimpleLineSymbol (SimpleLineSymbol symbol)

Instantiates the SimpleLineSymbol from specified SimpleLineSymbol object.

Parameters
symbol SimpleLineSymbol: the specified SimpleLineSymbolObject.

Public Methods

public Symbol copy ()

Returns
Symbol
Throws
Exception

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public SimpleLineSymbol.STYLE getStyle ()

Gets the line style.

Returns
SimpleLineSymbol.STYLE SimpleLineSymbol.STYLE constant.

public int hashCode ()

Returns
int

public SimpleLineSymbol setStyle (SimpleLineSymbol.STYLE style)

Sets the line style.

Parameters
style SimpleLineSymbol.STYLE: SimpleLineSymbol.STYLE constant.
Returns
SimpleLineSymbol

public String toJson ()

Returns
String
Throws
Exception