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 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

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

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

SimpleLineSymbol

public SimpleLineSymbol(Color color,
                        float width,
                        SimpleLineSymbol.Style style)
Instantiates a SimpleLineSymbol with the given color, width and style.

Parameters:
color - the line color.
width - the width in pixels.
style - line style.
Method Detail

getStyle

public SimpleLineSymbol.Style getStyle()
Get the current line style

Returns:
the current line style

setStyle

public void setStyle(SimpleLineSymbol.Style style)
Set the current line style

Parameters:
style - the current line style

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.