|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.symbol.WebSymbol
com.esri.adf.web.data.symbol.WebSimpleLineSymbol
public class WebSimpleLineSymbol
WebSimpleLineSymbol
represents a symbol for a line feature.
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 |
---|
public static final String TYPE
public static final String ROUND
public static final String SQUARE
public static final String BUTT
public static final String MITER
public static final String BEVEL
public static final String SOLID
public static final String DASH
public static final String DOT
public static final String DASH_DOT
public static final String DASH_DOT_DOT
Constructor Detail |
---|
public WebSimpleLineSymbol()
WebSimpleLineSymbol
.
Method Detail |
---|
public String getType()
getType
in class WebSymbol
TYPE
public void setWidth(int width)
5
.
setWidth
in class WebSymbol
width
- the line width of the symbolpublic int getWidth()
getWidth
in class WebSymbol
public void setColor(String color)
255,255,0
"
For Example, simpleLine.setColor("255,0,0");
color
- the line colorgetColor()
public String getColor()
setColor(java.lang.String)
public void setLineType(String type)
For Example, simpleLine.setLineType(WebSimpleLineSymbol.DASH_DOT);
The default style is SOLID
type
- the line type, possible values are solid, dash, dot, dash_dot or dash_dot_dotgetLineType()
public String getLineType()
setLineType(java.lang.String)
public void setCapType(String capType)
WebSimpleLineSymbol
. For Example, simpleLine.setCapType(WebSimpleLineSymbol.ROUND);
The default cap type is BUTT
capType
- the line end style, possible values are round, square or buttgetCapType()
public String getCapType()
WebSimpleLineSymbol
's line end style.
setCapType(java.lang.String)
public void setJoinType(String joinType)
For Example, simpleLine.setJoinType(WebSimpleLineSymbol.MITER);
The default join type is ROUND
joinType
- the line join type, possible values are round, miter or bevelgetJoinType()
public String getJoinType()
setJoinType(java.lang.String)
public String toString()
toString
in class WebSymbol
public int hashCode()
hashCode
in class WebSymbol
public boolean equals(Object obj)
equals
in class WebSymbol
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |