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

    Since:
    100.0.0
    See Also:
    Graphic, Renderer, Symbol
    • 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​(java.util.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:
        java.lang.IllegalArgumentException - if symbols is null
        Since:
        100.0.0
    • Method Detail

      • getSymbols

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