java.lang.Object | |
↳ | com.esri.core.symbol.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FillSymbol(JsonNode node)
Instantiates an object of FillSymbol from a JsonNode.
| |||||||||||
FillSymbol()
Instantiates an empty object of FillSymbol.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Instantiates an object of FillSymbol from a JsonNode.
node | the FillSymbol node. |
---|
Exception | the exception |
---|
Instantiates an empty object of FillSymbol.
Helper to getColor() that just returns the color's alpha value. This is the same as calling
getColor() >>> 24
. It always returns a value between 0 (completely transparent) and 255 (completely
opaque).
Returns the color to fill the polygon with. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.
Returns the outline of the polygon.
Sets the symbol transparency.
alpha | the alpha component of the symbol's color. |
---|
Sets the color to fill the polygon with. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.
color | the color in RGB color value. |
---|
Sets the outline of the polygon.
outline | the outline symbol. |
---|