Module com.esri.arcgisruntime
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
A polygon symbol built with multiple layers of symbols to display graphics and features that have polygon geometry.
A MultilayerPolygonSymbol
can contain multiple layers that are combined to create different
appearances, for example, a polygon with a marker in the center. The individual layers have their own properties
such as width, height, and offset, and can be accessed programmatically through MultilayerSymbol.getSymbolLayers()
.
For more information about multilayer symbols, refer to
Symbol layers.
If you create a MultilayerPolygonSymbol
from a collection of SymbolLayer
objects, the first
symbol layer in the collection will be drawn first, with the second symbol layer on top of the first, and so on.
Note that symbol layers in a multilayer symbol are in reverse order of how they appear in the JSON representation.
- Since:
- 100.2.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.symbology.MultilayerSymbol
color
-
Constructor Summary
ConstructorDescriptionMultilayerPolygonSymbol
(Iterable<SymbolLayer> symbolLayers) Creates a multilayer polygon symbol from the given symbol layers.MultilayerPolygonSymbol
(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
colorProperty, getColor, getReferenceProperties, getSymbolLayers, setColor, setColor, setReferenceProperties
Methods inherited from class com.esri.arcgisruntime.symbology.Symbol
createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, createSwatchAsync, fromJson, getUnknownJson, getUnsupportedJson, toJson
-
Constructor Details
-
MultilayerPolygonSymbol
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:
IllegalArgumentException
- if symbolLayers is null- Since:
- 100.5.0
-
MultilayerPolygonSymbol
public MultilayerPolygonSymbol(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:
IllegalArgumentException
- if symbolLayers is null- Since:
- 100.13.0
-