|
|||||||||
| 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 java.lang.String |
BEVEL
|
static java.lang.String |
BUTT
|
static java.lang.String |
DASH
|
static java.lang.String |
DASH_DOT
|
static java.lang.String |
DASH_DOT_DOT
|
static java.lang.String |
DOT
|
static java.lang.String |
MITER
|
static java.lang.String |
ROUND
Used for both cap and join line type for this symbol. |
static java.lang.String |
SOLID
|
static java.lang.String |
SQUARE
|
static java.lang.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(java.lang.Object obj)
|
java.lang.String |
getCapType()
Returns the WebSimpleLineSymbol's line end style. |
java.lang.String |
getColor()
Returns the symbol's color value. |
java.lang.String |
getJoinType()
Returns the symbol's join type. |
java.lang.String |
getLineType()
Returns symbol's line type value. |
java.lang.String |
getType()
Returns the type of the symbol as "SimpleLine" |
int |
getWidth()
Returns the line width of the symbol. |
int |
hashCode()
|
void |
setCapType(java.lang.String capType)
Sets the line end style for this WebSimpleLineSymbol. |
void |
setColor(java.lang.String color)
Sets the symbol's color value, default line color is " 255,255,0" |
void |
setJoinType(java.lang.String joinType)
Sets the line join type for this symbol. |
void |
setLineType(java.lang.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. |
java.lang.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 java.lang.String TYPE
public static final java.lang.String ROUND
public static final java.lang.String SQUARE
public static final java.lang.String BUTT
public static final java.lang.String MITER
public static final java.lang.String BEVEL
public static final java.lang.String SOLID
public static final java.lang.String DASH
public static final java.lang.String DOT
public static final java.lang.String DASH_DOT
public static final java.lang.String DASH_DOT_DOT
| Constructor Detail |
|---|
public WebSimpleLineSymbol()
WebSimpleLineSymbol.
| Method Detail |
|---|
public java.lang.String getType()
getType in class WebSymbolTYPEpublic void setWidth(int width)
5.
setWidth in class WebSymbolwidth - the line width of the symbolpublic int getWidth()
getWidth in class WebSymbolpublic void setColor(java.lang.String color)
255,255,0"
For Example,
simpleLine.setColor("255,0,0");
color - the line colorgetColor()public java.lang.String getColor()
setColor(java.lang.String)public void setLineType(java.lang.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 java.lang.String getLineType()
setLineType(java.lang.String)public void setCapType(java.lang.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 java.lang.String getCapType()
WebSimpleLineSymbol's line end style.
setCapType(java.lang.String)public void setJoinType(java.lang.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 java.lang.String getJoinType()
setJoinType(java.lang.String)public java.lang.String toString()
toString in class WebSymbolpublic int hashCode()
hashCode in class WebSymbolpublic boolean equals(java.lang.Object obj)
equals in class WebSymbol
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||