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 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 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

      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
  • Method Details

    • getSymbols

      public List<Symbol> getSymbols()
      Gets the mutable list of symbols in this composite symbol.
      Returns:
      a modifiable list of symbols
      Since:
      100.0.0