public class

CompositeSymbol

extends Object
implements Symbol
java.lang.Object
   ↳ com.esri.core.symbol.CompositeSymbol

Class Overview

Composite symbols are simply a combination of two or more symbols. Each symbol can represent the same or a different aspect of a graphic. For example, a polygon could be symbolized with a SimpleFillSymbol (applied to the polygon's interior), a SimpleLineSymbol (applied to the polygon's boundary) and a SimpleMarkerSymbol (applied to each vertex of the polygon). Composite symbols cannot be used in a renderer and do not form part of the REST specification.

Summary

Public Constructors
CompositeSymbol()
Create an empty CompositeSymbol.
CompositeSymbol(List<Symbol> symbols)
Creates a CompositeSymbol from the given list.
CompositeSymbol(JsonNode tempNode)
Creates a CompositeSymbol from Json.
Public Methods
void add(Symbol symbol)
Adds a symbol to the list of symbols in this CompositeSymbol.
Symbol copy()
Gets a copy of this Symbol object.
List<Symbol> getSymbols()
Gets the list of symbols in this CompositeSymbol.
void removeAll()
Removes all symbols form the list of symbols in this CompositeSymbol.
void setSymbols(List<Symbol> symbols)
Sets the list of symbols in this CompositeSymbol.
String toJson()
Converts the symbol to a Json String.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.symbol.Symbol

Public Constructors

public CompositeSymbol ()

Create an empty CompositeSymbol.

public CompositeSymbol (List<Symbol> symbols)

Creates a CompositeSymbol from the given list. Each symbol is drawn in the order it appears in the list; so the last symbol on-top of the draw order.

Parameters
symbols List: a list of symbols

public CompositeSymbol (JsonNode tempNode)

Creates a CompositeSymbol from Json.

Public Methods

public void add (Symbol symbol)

Adds a symbol to the list of symbols in this CompositeSymbol. Each symbol is drawn in the order it appears in the list; so the given symbol is on-top of the draw order. Note: in ArcGIS Runtime SDK for Java GraphicsLayer.updateGraphic() must be called for changes to a Graphic's symbol to take effect.

Parameters
symbol Symbol: the symbol to add

public Symbol copy ()

Gets a copy of this Symbol object.

Returns
Symbol Symbol object
Throws
Exception

public List<Symbol> getSymbols ()

Gets the list of symbols in this CompositeSymbol.

Returns
List<Symbol> a list of symbols

public void removeAll ()

Removes all symbols form the list of symbols in this CompositeSymbol.

public void setSymbols (List<Symbol> symbols)

Sets the list of symbols in this CompositeSymbol. Note: in ArcGIS Runtime SDK for Java GraphicsLayer.updateGraphic() must be called for changes to a Graphic's symbol to take effect.

Parameters
symbols List: a list of symbols

public String toJson ()

Converts the symbol to a Json String.

Returns
String
Throws
Exception