Package com.esri.arcgisruntime.symbology
Class CompositeSymbol
- java.lang.Object
-
- com.esri.arcgisruntime.symbology.Symbol
-
- com.esri.arcgisruntime.symbology.CompositeSymbol
-
- All Implemented Interfaces:
JsonSerializable
public final class CompositeSymbol extends Symbol
Defines a Symbol that is made of a collection of zero or more symbols.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.
-
-
Constructor Summary
Constructors Constructor Description CompositeSymbol()
Creates a composite symbol with no symbols.CompositeSymbol(List<Symbol> symbols)
Creates a composite symbol made up of the given list of symbols.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Symbol>
getSymbols()
Gets the mutable list of symbols in this composite symbol.-
Methods inherited from class com.esri.arcgisruntime.symbology.Symbol
createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, fromJson, getUnknownJson, getUnsupportedJson, toJson
-
-
-
-
Constructor Detail
-
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
public CompositeSymbol(List<Symbol> symbols)
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
-
-