com.esri.core.symbol
Class SimpleLineSymbol

java.lang.Object
  extended by com.esri.core.symbol.LineSymbol
      extended by com.esri.core.symbol.SimpleLineSymbol
All Implemented Interfaces:
Symbol, Serializable

public class SimpleLineSymbol
extends LineSymbol

Used to draw linear features on the graphics layer.

See Also:
Serialized Form

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

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

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,
                        float width)
Instantiates a SimpleLineSymbol with the given color and width.

Parameters:
color - the line color.
width - the line width.

SimpleLineSymbol

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.

SimpleLineSymbol

public SimpleLineSymbol(SimpleLineSymbol symbol)
Instantiates the SimpleLineSymbol from specified SimpleLineSymbol object.

Parameters:
symbol - the specified SimpleLineSymbolObject.
Method Detail

setStyle

public void setStyle(SimpleLineSymbol.STYLE style)
Sets the line style

Parameters:
style - SimpleLineSymbol.STYLE constant.

getStyle

public SimpleLineSymbol.STYLE getStyle()
Gets the line style.

Returns:
SimpleLineSymbol.STYLE constant.

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

copy

public Symbol copy()
            throws Exception
Description copied from interface: Symbol
Gets a copy of this Symbol object.

Returns:
Symbol object
Throws:
Exception


Copyright © 2012. All Rights Reserved.