|
|||||||||
| 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
com.esri.adf.web.data.symbol.WebSimplePolygonSymbol
public class WebSimplePolygonSymbol
WebSimplePolygonSymbol represents a symbol for a polygon feature.
| Field Summary | |
|---|---|
static java.lang.String |
BDIAGONAL
Fill the polygon with backward diagonal lines. |
static java.lang.String |
CROSS
Fill the polygon with cross lines. |
static java.lang.String |
DARKGRAY
|
static java.lang.String |
DIAGCROSS
Fill the polygon with diagonally cross lines. |
static java.lang.String |
FDIAGONAL
Fill the polygon with forward diagonal lines. |
static java.lang.String |
GRAY
|
static java.lang.String |
HORIZONTAL
Fill the polygon with horizontal lines. |
static java.lang.String |
LIGHTGRAY
|
static java.lang.String |
TEXTURE
Fill the polygon with texture. |
static java.lang.String |
TRANSPARENT
Transparent fill polygon. |
static java.lang.String |
TYPE
|
static java.lang.String |
VERTICAL
Fill the polygon with vertical lines. |
| Fields inherited from class com.esri.adf.web.data.symbol.WebSimpleLineSymbol |
|---|
BEVEL, BUTT, DASH, DASH_DOT, DASH_DOT_DOT, DOT, MITER, ROUND, SOLID, SQUARE |
| Fields inherited from class com.esri.adf.web.data.symbol.WebSymbol |
|---|
transparency |
| Constructor Summary | |
|---|---|
WebSimplePolygonSymbol()
Constructs a WebSimplePolygonSymbol object by setting default value for width to 1 and color to "0,0,0". |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getBoundaryCapType()
Deprecated. As of ArcGIS Java Server 9.3, instead use getCapType() |
java.lang.String |
getBoundaryColor()
Deprecated. As of ArcGIS Java Server 9.3, instead use getColor() |
java.lang.String |
getBoundaryJoinType()
Deprecated. As of ArcGIS Java Server 9.3, instead use getJoinType() |
double |
getBoundaryTransparency()
Deprecated. As of ArcGIS Java Server 9.3, instead use getTransparency() |
java.lang.String |
getBoundaryType()
Deprecated. As of ArcGIS Java Server 9.3, instead use getLineType() |
int |
getBoundaryWidth()
Deprecated. As of ArcGIS Java Server 9.3, instead use getWidth() |
java.lang.String |
getCapType()
Returns the symbol's line cap type. |
java.lang.String |
getColor()
Returns the symbol's line color. |
java.lang.String |
getFillColor()
Returns the symbol's fill color value. |
int |
getFillInterval()
Returns the symbol's fill interval value. |
java.awt.image.BufferedImage |
getFillTexture()
Returns the symbol's fill texture as a buffered image. |
double |
getFillTransparency()
Returns the symbol's fill transparency value. |
java.lang.String |
getFillType()
Returns the symbol's fill type value. |
java.lang.String |
getJoinType()
Returns the symbol's line join type. |
java.lang.String |
getLineType()
Returns the symbol's line type. |
double |
getTransparency()
Returns the symbol's line transparency value. |
java.lang.String |
getType()
Returns the type of the symbol as "SimplePolygon" |
int |
getWidth()
Returns the line width of the symbol. |
int |
hashCode()
|
void |
setBoundaryCapType(java.lang.String capType)
Deprecated. As of ArcGIS Java Server 9.3, instead use setCapType(String) |
void |
setBoundaryColor(java.lang.String color)
Deprecated. As of ArcGIS Java Server 9.3, instead use setColor(String) |
void |
setBoundaryJoinType(java.lang.String joinType)
Deprecated. As of ArcGIS Java Server 9.3, instead use setJoinType(String) |
void |
setBoundaryTransparency(double transparency)
Deprecated. As of ArcGIS Java Server 9.3, instead use setTransparency(double) |
void |
setBoundaryType(java.lang.String lineType)
Deprecated. As of ArcGIS Java Server 9.3, instead use setLineType(String) |
void |
setBoundaryWidth(int width)
Deprecated. As of ArcGIS Java Server 9.3, instead use setWidth(int) |
void |
setCapType(java.lang.String capType)
Sets the symbol's line cap type. |
void |
setColor(java.lang.String color)
Sets the symbol's line color, default line color is " 0,0,0" |
void |
setFillColor(java.lang.String fillColor)
Sets the symbol's fill color value, default fill color is " 255,255,0" |
void |
setFillInterval(int fillInterval)
Sets the distance between lines for hatch fills. |
void |
setFillTexture(java.awt.image.BufferedImage fillTexture)
Sets the symbol's fill texture as a buffered image. |
void |
setFillTransparency(double fillTransparency)
Sets the symbol's fill transparency value. |
void |
setFillType(java.lang.String fillType)
Sets the symbol's fill type value. |
void |
setJoinType(java.lang.String joinType)
Sets the symbol's line join type. |
void |
setLineType(java.lang.String type)
Sets the symbol's line type. |
void |
setTransparency(double transparency)
Sets the percentage of line transparency for this symbol, default value is 1.0 |
void |
setWidth(int width)
Sets the symbols's line width, default line width is 1. |
java.lang.String |
toString()
|
| Methods inherited from class com.esri.adf.web.data.symbol.WebSymbol |
|---|
getAngle, isAntialiasing, setAngle, setAntialiasing |
| 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 BDIAGONAL
public static final java.lang.String FDIAGONAL
public static final java.lang.String CROSS
public static final java.lang.String DIAGCROSS
public static final java.lang.String HORIZONTAL
public static final java.lang.String VERTICAL
public static final java.lang.String GRAY
public static final java.lang.String LIGHTGRAY
public static final java.lang.String DARKGRAY
public static final java.lang.String TRANSPARENT
public static final java.lang.String TEXTURE
| Constructor Detail |
|---|
public WebSimplePolygonSymbol()
| Method Detail |
|---|
public java.lang.String getType()
getType in class WebSimpleLineSymbolTYPEpublic void setTransparency(double transparency)
1.0
For example, symbol.setTransparency(0.5);
setTransparency in class WebSymboltransparency - the transparency value. 1.0 is 0 percent transparent and 0.0 is 100 percent transparentgetTransparency()public double getTransparency()
For example,
double transparency = symbol.getTransparency();
getTransparency in class WebSymbolsetTransparency(double)public void setWidth(int width)
1.
For Example, simplePolygon.setWidth(5);
setWidth in class WebSimpleLineSymbolwidth - the width of the linegetWidth()public int getWidth()
getWidth in class WebSimpleLineSymbolsetWidth(int)public void setColor(java.lang.String color)
0,0,0"
For Example,
simplePolygon.setColor("0,255,255");
setColor in class WebSimpleLineSymbolcolor - the symbol's line colorgetColor()public java.lang.String getColor()
getColor in class WebSimpleLineSymbolsetColor(String)public void setLineType(java.lang.String type)
For Example, simplePolygon.setLineType(WebSimplePolygonSymbol.DASH_DOT);
The default style is WebSimpleLineSymbol.SOLID
setLineType in class WebSimpleLineSymboltype - the symbol's line type, possible values are solid, dash, dot, dash_dot or dash_dot_dotgetLineType()public java.lang.String getLineType()
getLineType in class WebSimpleLineSymbolsetLineType(String)public void setCapType(java.lang.String capType)
For Example, simplePolygon.setCapType(WebSimplePolygonSymbol.ROUND);
The default cap type is WebSimpleLineSymbol.BUTT
setCapType in class WebSimpleLineSymbolcapType - the symbol's line cap type, possible values are round, square or buttgetCapType()public java.lang.String getCapType()
getCapType in class WebSimpleLineSymbolsetCapType(String)public void setJoinType(java.lang.String joinType)
For Example, simplePolygon.setCapType(WebSimplePolygonSymbol.MITER);
The default join type is WebSimpleLineSymbol.ROUND
setJoinType in class WebSimpleLineSymboljoinType - the symbol's line join type, possible values are round, miter or bevelgetJoinType()public java.lang.String getJoinType()
getJoinType in class WebSimpleLineSymbolsetJoinType(String)public void setFillTransparency(double fillTransparency)
For example, simplePolygon.setFillTransparency(0.5);
fillTransparency - the fill transparency value, default value is 1.0getFillTransparency()public double getFillTransparency()
For example, double fillTransparency = simplePolygon.getFillTransparency();
setFillTransparency(double)public void setFillColor(java.lang.String fillColor)
255,255,0"
For example,
simplePolygon.setFillColor("0,255,255");
fillColor - the polygon symbol fill color valuegetFillColor()public java.lang.String getFillColor()
For example, String fillColor = simplePolygon.getFillColor();
setFillColor(java.lang.String)public void setFillType(java.lang.String fillType)
For example, simplePolygon.setFillType(WebSimplePolygonSymbol.CROSS);
The default value is WebSimpleLineSymbol.SOLID
fillType - the fill type value, possible values are solid, bdiagonal, fdiagonal, cross, diagcross, horizontal,
vertical, gray, lightgray, darkgray, texture or transparentgetFillType()public java.lang.String getFillType()
For example, String fillType = simplePolygon.getFillType();
setFillType(java.lang.String)public void setFillInterval(int fillInterval)
TEXTURE.
For example, simplePolygon.setFillInterval(5);
fillInterval - the fill interval value, default value is 6. fillInterval should
be greater than 0 and less than the width of the symbol's extent.getFillInterval()public int getFillInterval()
For Example, long fillInterval = simplePolygon.getFillInterval();
setFillInterval(int)public void setFillTexture(java.awt.image.BufferedImage fillTexture)
For Example,
simplePolygon.setFillType(WebSimplePolygonSymbol.TEXTURE);
simplePolygon.setFillTexture(javax.imageio.ImageIO.read(new java.net.URL("http://www.esri.com/graphics/orangearrow_small.gif")));
simplePolygon.setFillTransparency(0.5);
GraphicsUtil.exportSymbol(simplePolygon, 100, 100);
fillTexture - the buffered image used for filling the polygon symbolpublic java.awt.image.BufferedImage getFillTexture()
@Deprecated public void setBoundaryWidth(int width)
setWidth(int)
For Example, simplePolygon.setWidth(5);
width - the line width, default line width is 1.getWidth()@Deprecated public int getBoundaryWidth()
getWidth()
For Example, long width = simplePolygon.getWidth();
setWidth(int)@Deprecated public void setBoundaryColor(java.lang.String color)
setColor(String)
For Example,
simplePolygon.setColor("100,0,0");
color - the line color, default line color is "0,0,0"getColor()@Deprecated public java.lang.String getBoundaryColor()
getColor()
For Example, String lineColor = simplePolygon.getColor();
setColor(String)@Deprecated public void setBoundaryType(java.lang.String lineType)
setLineType(String)
For Example, simplePolygon.setLineType(WebSimplePolygonSymbol.DASH_DOT);
lineType - the line type value, possible values are solid(DEFAULT), dash, dot, dash_dot or dash_dot_dotgetLineType()@Deprecated public java.lang.String getBoundaryType()
getLineType()
setLineType(String)@Deprecated public void setBoundaryCapType(java.lang.String capType)
setCapType(String)
For Example,
simplePolygon.setCapType("WebSimplePolygonSymbol.ROUND");
capType - the line cap type value, possible values are round, square or butt(DEFAULT)getCapType()@Deprecated public java.lang.String getBoundaryCapType()
getCapType()
setCapType(String)@Deprecated public void setBoundaryJoinType(java.lang.String joinType)
setJoinType(String)
For Example, simplePolygon.setJoinType(WebSimplePolygonSymbol.BEVEL);
joinType - the line join type value, possible values are round(DEFAULT), miter or bevelgetJoinType()@Deprecated public java.lang.String getBoundaryJoinType()
getJoinType()
setJoinType(String)@Deprecated public void setBoundaryTransparency(double transparency)
setTransparency(double)
For Example, simplePolygon.setTransparency(0.5);
transparency - the line transparency value, the default value is 1.0getTransparency()@Deprecated public double getBoundaryTransparency()
getTransparency()
setTransparency(double)public java.lang.String toString()
toString in class WebSimpleLineSymbolpublic int hashCode()
hashCode in class WebSimpleLineSymbolpublic boolean equals(java.lang.Object obj)
equals in class WebSimpleLineSymbol
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||