|
|||||||||
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 String |
BDIAGONAL
Fill the polygon with backward diagonal lines. |
static String |
CROSS
Fill the polygon with cross lines. |
static String |
DARKGRAY
|
static String |
DIAGCROSS
Fill the polygon with diagonally cross lines. |
static String |
FDIAGONAL
Fill the polygon with forward diagonal lines. |
static String |
GRAY
|
static String |
HORIZONTAL
Fill the polygon with horizontal lines. |
static String |
LIGHTGRAY
|
static String |
TEXTURE
Fill the polygon with texture. |
static String |
TRANSPARENT
Transparent fill polygon. |
static String |
TYPE
|
static 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(Object obj)
|
String |
getBoundaryCapType()
Deprecated. As of ArcGIS Java Server 9.3, instead use getCapType() |
String |
getBoundaryColor()
Deprecated. As of ArcGIS Java Server 9.3, instead use getColor() |
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() |
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() |
String |
getCapType()
Returns the symbol's line cap type. |
String |
getColor()
Returns the symbol's line color. |
String |
getFillColor()
Returns the symbol's fill color value. |
int |
getFillInterval()
Returns the symbol's fill interval value. |
BufferedImage |
getFillTexture()
Returns the symbol's fill texture as a buffered image. |
double |
getFillTransparency()
Returns the symbol's fill transparency value. |
String |
getFillType()
Returns the symbol's fill type value. |
String |
getJoinType()
Returns the symbol's line join type. |
String |
getLineType()
Returns the symbol's line type. |
double |
getTransparency()
Returns the symbol's line transparency value. |
String |
getType()
Returns the type of the symbol as "SimplePolygon" |
int |
getWidth()
Returns the line width of the symbol. |
int |
hashCode()
|
void |
setBoundaryCapType(String capType)
Deprecated. As of ArcGIS Java Server 9.3, instead use setCapType(String) |
void |
setBoundaryColor(String color)
Deprecated. As of ArcGIS Java Server 9.3, instead use setColor(String) |
void |
setBoundaryJoinType(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(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(String capType)
Sets the symbol's line cap type. |
void |
setColor(String color)
Sets the symbol's line color, default line color is " 0,0,0 " |
void |
setFillColor(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(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(String fillType)
Sets the symbol's fill type value. |
void |
setJoinType(String joinType)
Sets the symbol's line join type. |
void |
setLineType(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 . |
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 String TYPE
public static final String BDIAGONAL
public static final String FDIAGONAL
public static final String CROSS
public static final String DIAGCROSS
public static final String HORIZONTAL
public static final String VERTICAL
public static final String GRAY
public static final String LIGHTGRAY
public static final String DARKGRAY
public static final String TRANSPARENT
public static final String TEXTURE
Constructor Detail |
---|
public WebSimplePolygonSymbol()
Method Detail |
---|
public String getType()
getType
in class WebSimpleLineSymbol
TYPE
public void setTransparency(double transparency)
1.0
For example, symbol.setTransparency(0.5);
setTransparency
in class WebSymbol
transparency
- 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 WebSymbol
setTransparency(double)
public void setWidth(int width)
1
.
For Example, simplePolygon.setWidth(5);
setWidth
in class WebSimpleLineSymbol
width
- the width of the linegetWidth()
public int getWidth()
getWidth
in class WebSimpleLineSymbol
setWidth(int)
public void setColor(String color)
0,0,0
"
For Example, simplePolygon.setColor("0,255,255");
setColor
in class WebSimpleLineSymbol
color
- the symbol's line colorgetColor()
public String getColor()
getColor
in class WebSimpleLineSymbol
setColor(String)
public void setLineType(String type)
For Example, simplePolygon.setLineType(WebSimplePolygonSymbol.DASH_DOT);
The default style is WebSimpleLineSymbol.SOLID
setLineType
in class WebSimpleLineSymbol
type
- the symbol's line type, possible values are solid, dash, dot, dash_dot or dash_dot_dotgetLineType()
public String getLineType()
getLineType
in class WebSimpleLineSymbol
setLineType(String)
public void setCapType(String capType)
For Example, simplePolygon.setCapType(WebSimplePolygonSymbol.ROUND);
The default cap type is WebSimpleLineSymbol.BUTT
setCapType
in class WebSimpleLineSymbol
capType
- the symbol's line cap type, possible values are round, square or buttgetCapType()
public String getCapType()
getCapType
in class WebSimpleLineSymbol
setCapType(String)
public void setJoinType(String joinType)
For Example, simplePolygon.setCapType(WebSimplePolygonSymbol.MITER);
The default join type is WebSimpleLineSymbol.ROUND
setJoinType
in class WebSimpleLineSymbol
joinType
- the symbol's line join type, possible values are round, miter or bevelgetJoinType()
public String getJoinType()
getJoinType
in class WebSimpleLineSymbol
setJoinType(String)
public void setFillTransparency(double fillTransparency)
For example, simplePolygon.setFillTransparency(0.5);
fillTransparency
- the fill transparency value, default value is 1.0
getFillTransparency()
public double getFillTransparency()
For example, double fillTransparency = simplePolygon.getFillTransparency();
setFillTransparency(double)
public void setFillColor(String fillColor)
255,255,0
"
For example, simplePolygon.setFillColor("0,255,255");
fillColor
- the polygon symbol fill color valuegetFillColor()
public String getFillColor()
For example, String fillColor = simplePolygon.getFillColor();
setFillColor(java.lang.String)
public void setFillType(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 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(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 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(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 String getBoundaryColor()
getColor()
For Example, String lineColor = simplePolygon.getColor();
setColor(String)
@Deprecated public void setBoundaryType(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 String getBoundaryType()
getLineType()
setLineType(String)
@Deprecated public void setBoundaryCapType(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 String getBoundaryCapType()
getCapType()
setCapType(String)
@Deprecated public void setBoundaryJoinType(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 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.0
getTransparency()
@Deprecated public double getBoundaryTransparency()
getTransparency()
setTransparency(double)
public String toString()
toString
in class WebSimpleLineSymbol
public int hashCode()
hashCode
in class WebSimpleLineSymbol
public boolean equals(Object obj)
equals
in class WebSimpleLineSymbol
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |