com.esri.adf.web.data.symbol
Class WebSimpleLineSymbol

java.lang.Object
  extended by com.esri.adf.web.data.symbol.WebSymbol
      extended by com.esri.adf.web.data.symbol.WebSimpleLineSymbol
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WebSimplePolygonSymbol

public class WebSimpleLineSymbol
extends WebSymbol
implements Serializable

WebSimpleLineSymbol represents a symbol for a line feature.

See Also:
Serialized Form

Field Summary
static String BEVEL
           
static String BUTT
           
static String DASH
           
static String DASH_DOT
           
static String DASH_DOT_DOT
           
static String DOT
           
static String MITER
           
static String ROUND
          Used for both cap and join line type for this symbol.
static String SOLID
           
static String SQUARE
           
static String TYPE
           
 
Fields inherited from class com.esri.adf.web.data.symbol.WebSymbol
transparency
 
Constructor Summary
WebSimpleLineSymbol()
          Creates an empty instance of WebSimpleLineSymbol.
 
Method Summary
 boolean equals(Object obj)
           
 String getCapType()
          Returns the WebSimpleLineSymbol's line end style.
 String getColor()
          Returns the symbol's color value.
 String getJoinType()
          Returns the symbol's join type.
 String getLineType()
          Returns symbol's line type value.
 String getType()
          Returns the type of the symbol as "SimpleLine"
 int getWidth()
          Returns the line width of the symbol.
 int hashCode()
           
 void setCapType(String capType)
          Sets the line end style for this WebSimpleLineSymbol.
 void setColor(String color)
          Sets the symbol's color value, default line color is "255,255,0"
 void setJoinType(String joinType)
          Sets the line join type for this symbol.
 void setLineType(String type)
          Sets symbol's line type.
 void setWidth(int width)
          Sets the symbol's line width, default line width of the symbol is 5.
 String toString()
           
 
Methods inherited from class com.esri.adf.web.data.symbol.WebSymbol
getAngle, getTransparency, isAntialiasing, setAngle, setAntialiasing, setTransparency
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values

ROUND

public static final String ROUND
Used for both cap and join line type for this symbol.

See Also:
Constant Field Values

SQUARE

public static final String SQUARE
See Also:
Constant Field Values

BUTT

public static final String BUTT
See Also:
Constant Field Values

MITER

public static final String MITER
See Also:
Constant Field Values

BEVEL

public static final String BEVEL
See Also:
Constant Field Values

SOLID

public static final String SOLID
See Also:
Constant Field Values

DASH

public static final String DASH
See Also:
Constant Field Values

DOT

public static final String DOT
See Also:
Constant Field Values

DASH_DOT

public static final String DASH_DOT
See Also:
Constant Field Values

DASH_DOT_DOT

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

WebSimpleLineSymbol

public WebSimpleLineSymbol()
Creates an empty instance of WebSimpleLineSymbol.

Method Detail

getType

public String getType()
Returns the type of the symbol as "SimpleLine"

Specified by:
getType in class WebSymbol
Returns:
the string representation of symbol type TYPE

setWidth

public void setWidth(int width)
Sets the symbol's line width, default line width of the symbol is 5.

Overrides:
setWidth in class WebSymbol
Parameters:
width - the line width of the symbol

getWidth

public int getWidth()
Returns the line width of the symbol.

Overrides:
getWidth in class WebSymbol
Returns:
the line width

setColor

public void setColor(String color)
Sets the symbol's color value, default line color is "255,255,0"
 For Example,
   simpleLine.setColor("255,0,0");
 

Parameters:
color - the line color
See Also:
getColor()

getColor

public String getColor()
Returns the symbol's color value.

Returns:
the color of the line
See Also:
setColor(java.lang.String)

setLineType

public void setLineType(String type)
Sets symbol's line type.
 For Example,
   simpleLine.setLineType(WebSimpleLineSymbol.DASH_DOT);
 

The default style is SOLID

Parameters:
type - the line type, possible values are solid, dash, dot, dash_dot or dash_dot_dot
See Also:
getLineType()

getLineType

public String getLineType()
Returns symbol's line type value.

Returns:
the line style
See Also:
setLineType(java.lang.String)

setCapType

public void setCapType(String capType)
Sets the line end style for this WebSimpleLineSymbol.
 For Example,
   simpleLine.setCapType(WebSimpleLineSymbol.ROUND);
 

The default cap type is BUTT

Parameters:
capType - the line end style, possible values are round, square or butt
See Also:
getCapType()

getCapType

public String getCapType()
Returns the WebSimpleLineSymbol's line end style.

Returns:
the line end style
See Also:
setCapType(java.lang.String)

setJoinType

public void setJoinType(String joinType)
Sets the line join type for this symbol.
 For Example,
   simpleLine.setJoinType(WebSimpleLineSymbol.MITER);
 

The default join type is ROUND

Parameters:
joinType - the line join type, possible values are round, miter or bevel
See Also:
getJoinType()

getJoinType

public String getJoinType()
Returns the symbol's join type.

Returns:
the join type value.
See Also:
setJoinType(java.lang.String)

toString

public String toString()
Overrides:
toString in class WebSymbol

hashCode

public int hashCode()
Overrides:
hashCode in class WebSymbol

equals

public boolean equals(Object obj)
Overrides:
equals in class WebSymbol