java.lang.Object
com.esri.arcgisruntime.symbology.Symbol
com.esri.arcgisruntime.symbology.CompositeSymbol
- All Implemented Interfaces:
JsonSerializable
Defines a set of symbols that make up a single symbol.
A composite symbol contains a collection of symbols that can be used to compose a more complex symbol.
The order in which the symbols are added determines their rendering order. For example, the symbol added first is drawn to the view and the next symbol added is drawn directly over the symbol before it, and so on.
Text and Marker Symbols will display at each point that makes up the element the Composite Symbol is assigned to. The Line Symbol will connect between those points, and a Fill Symbol will fill in the area between those points.
- Since:
- 100.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a composite symbol with no symbols.CompositeSymbol
(List<Symbol> symbols) Creates a composite symbol made up of the given list of symbols. -
Method Summary
Modifier and TypeMethodDescriptionGets the mutable list of symbols in this composite symbol.Methods inherited from class com.esri.arcgisruntime.symbology.Symbol
createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, fromJson, getUnknownJson, getUnsupportedJson, toJson
-
Constructor Details
-
CompositeSymbol
public CompositeSymbol()Creates a composite symbol with no symbols.To add symbols, add them to the collection of symbols returned from
getSymbols()
.- Since:
- 100.0.0
-
CompositeSymbol
Creates a composite symbol made up of the given list of symbols.- Parameters:
symbols
- list of symbols that represent the composite symbol- Throws:
IllegalArgumentException
- if symbols is null- Since:
- 100.0.0
-
-
Method Details
-
getSymbols
Gets the mutable list of symbols in this composite symbol.- Returns:
- a modifiable list of symbols
- Since:
- 100.0.0
-