- All Implemented Interfaces:
JsonSerializable
- Direct Known Subclasses:
PictureFillSymbol
,SimpleFillSymbol
FillSymbol is the base class for different symbols, such as SimpleFillSymbol
and PictureFillSymbol
.
A FillSymbol can also be used in combination with a LineSymbol
to add an outline to the fill symbol.
You can specify the symbology of a single graphic using Graphic.setSymbol(Symbol)
.
Alternatively, you can create a Renderer
that contains a collection of symbols and rules. Each rule determines
which symbol is applied to a graphic or feature depending on its attribute values. To symbolize graphics, apply a renderer to the
GraphicsOverlay
, and to symbolize features, apply the renderer to
FeatureLayer
.
- Since:
- 100.0.0
- See Also:
-
Property Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe interior color of the fill symbol.getColor()
Gets the value of thecolor
property.Gets the line, with a specific color and width, to be applied to the fill symbol.void
setColor
(int color) Deprecated, for removal: This API element is subject to removal in a future version.void
Sets the value of thecolor
property.void
setOutline
(LineSymbol outline) Sets a line, with a specific color and width, to be applied to the fill symbol.Methods inherited from class com.esri.arcgisruntime.symbology.Symbol
createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, fromJson, getUnknownJson, getUnsupportedJson, toJson
-
Property Details
-
color
The interior color of the fill symbol.Attempting to set the color to null will throw a NullPointerException exception.
- Since:
- 200.0.0
- See Also:
-
-
Method Details
-
colorProperty
The interior color of the fill symbol.Attempting to set the color to null will throw a NullPointerException exception.
- Returns:
- the
color
property - Since:
- 200.0.0
- See Also:
-
getColor
Gets the value of thecolor
property.- Property description:
- The interior color of the fill symbol.
Attempting to set the color to null will throw a NullPointerException exception.
- Returns:
- the value of the
color
property - Since:
- 200.0.0
- See Also:
-
setColor
Sets the value of thecolor
property.- Property description:
- The interior color of the fill symbol.
Attempting to set the color to null will throw a NullPointerException exception.
- Parameters:
color
- the value for thecolor
property- Since:
- 200.0.0
- See Also:
-
setColor
Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced bysetColor(Color)
Sets the interior color used to display this symbol.- Parameters:
color
- an integer representing the fill color as 0xAARRGGBB- Since:
- 100.0.0
-
getOutline
Gets the line, with a specific color and width, to be applied to the fill symbol.- Returns:
- the outline if there is one or null otherwise
- Since:
- 100.0.0
-
setOutline
Sets a line, with a specific color and width, to be applied to the fill symbol.If the outline is set to null, then this FillSymbol will have no border attached to it.
- Parameters:
outline
- the new outline for this fill symbol, can be null- Since:
- 100.0.0
-
setColor(Color)