Package com.esri.arcgisruntime.symbology
Class MultilayerPolygonSymbol
- java.lang.Object
-
- com.esri.arcgisruntime.symbology.Symbol
-
- com.esri.arcgisruntime.symbology.MultilayerSymbol
-
- com.esri.arcgisruntime.symbology.MultilayerPolygonSymbol
-
- All Implemented Interfaces:
JsonSerializable
public final class MultilayerPolygonSymbol extends MultilayerSymbol
Used to render polygon geometries, these symbols are built from multiple layers of symbols. They may be returned from polygon feature layers based on web maps, feature services, or mobile map packages, and can also be created from JSON by callingSymbol.fromJson(String)
.The symbol layers that comprise a MultilayerPolygonSymbol can be of different symbol types. For example, a MultilayerPolygonSymbol may contain fill symbol layers that draw the interior of the polygon, line (stroke) symbol layers that draw the outline of the polygon, and also point (marker) symbol layers that are drawn at specified point locations relative to the polygon. The layers that comprise the symbol can be accessed programmatically through
MultilayerSymbol.getSymbolLayers()
. The color property can also be changed programmatically. For more information about multilayer symbols, refer to Symbols in the ArcGIS Pro help.- Since:
- 100.2.0
-
-
Constructor Summary
Constructors Constructor Description MultilayerPolygonSymbol(java.lang.Iterable<SymbolLayer> symbolLayers)
Creates a multilayer polygon symbol from the given symbol layers.MultilayerPolygonSymbol(java.lang.Iterable<SymbolLayer> symbolLayers, SymbolReferenceProperties referenceProperties)
Creates a multilayer polygon symbol object with symbol layers andSymbolReferenceProperties
.
-
Method Summary
-
Methods inherited from class com.esri.arcgisruntime.symbology.MultilayerSymbol
getColor, getReferenceProperties, getSymbolLayers, setColor, setReferenceProperties
-
Methods inherited from class com.esri.arcgisruntime.symbology.Symbol
createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, fromJson, getUnknownJson, getUnsupportedJson, toJson
-
-
-
-
Constructor Detail
-
MultilayerPolygonSymbol
public MultilayerPolygonSymbol(java.lang.Iterable<SymbolLayer> symbolLayers)
Creates a multilayer polygon symbol from the given symbol layers. Any modification of the given collection of symbol layers will be ignored, useMultilayerSymbol.getSymbolLayers()
to add or remove symbol layers. By default the color is 0x00000000 (no color).- Parameters:
symbolLayers
- symbol layers for the symbol, cannot be null- Throws:
java.lang.IllegalArgumentException
- if symbolLayers is null- Since:
- 100.5.0
-
MultilayerPolygonSymbol
public MultilayerPolygonSymbol(java.lang.Iterable<SymbolLayer> symbolLayers, SymbolReferenceProperties referenceProperties)
Creates a multilayer polygon symbol object with symbol layers andSymbolReferenceProperties
.- Parameters:
symbolLayers
- a collection of symbol layers that make up the symbolreferenceProperties
- the symbol reference properties for the symbol, may be null- Throws:
java.lang.IllegalArgumentException
- if symbolLayers is null- Since:
- 100.13.0
-
-