|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.symbol.FillSymbol
public abstract class FillSymbol
Base class for polygon symbols. Use the subclass, SimpleFillSymbol, to draw polygon features on the graphics layer. The fill symbol can have an optional outline, which is defined by a line symbol.
Constructor Summary | |
---|---|
FillSymbol()
Instantiates an empty object of FillSymbol. |
|
FillSymbol(org.codehaus.jackson.JsonNode node)
Instantiates an object of FillSymbol from a JsonNode. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getAlpha()
Helper to getColor() that just returns the color's alpha value. |
int |
getColor()
Returns the color to fill the polygon with. |
LineSymbol |
getOutline()
Returns the outline of the polygon. |
int |
hashCode()
|
void |
setAlpha(int alpha)
Sets the symbol transparency. |
void |
setColor(int color)
Sets the color to fill the polygon with. |
void |
setOutline(LineSymbol outline)
Sets the outline of the polygon. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.core.symbol.Symbol |
---|
copy, toJson |
Constructor Detail |
---|
public FillSymbol(org.codehaus.jackson.JsonNode node) throws Exception
node
- the FillSymbol node.
Exception
public FillSymbol()
Method Detail |
---|
public int getColor()
public void setColor(int color)
color
- the color in RGB color value.public int getAlpha()
getColor() >>> 24
. It always returns a value between 0 (completely transparent) and 255 (completely
opaque).
public void setAlpha(int alpha)
alpha
- the alpha component of the symbol's color.getAlpha()
public LineSymbol getOutline()
public void setOutline(LineSymbol outline)
outline
- the outline symbol.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |