- All Implemented Interfaces:
- JsonSerializable
Symbol to draw all features and graphics.
 Properties of a SimpleRenderer:
- Symbol, the Symbol that is used to draw Features/Graphics to a GeoView.
- Description, gives detail information about what this Renderer's does.
- Label, name that this Renderer can be referred to.
Example of creating a SimpleRender:
// create a mapView ... // create a GraphicsOverlay and set it to the mapView GraphicsOverlay graphicsOverlay = new GraphicsOverlay(); mapView.getGraphicsOverlays().add(graphicsOverlay); SimpleMarkerSymbol symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.TRIANGLE, 0xffff0000, 5); SimpleRenderer simpleRenderer = new SimpleRenderer(symbol); graphicsOverlay.setRenderer(simpleRenderer); // the graphic's symbol should be that of the renderer that was assigned Point randomPoint = new Point(2000000, 2000000); Graphic graphic = new Graphic(randomPoint); graphicsOverlay.getGraphics().add(graphic);
- Since:
- 100.0.0
- 
Nested Class SummaryNested classes/interfaces inherited from class com.esri.arcgisruntime.symbology.RendererRenderer.SceneProperties
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new simple renderer without a Symbol.SimpleRenderer(Symbol symbol) Creates a new simple renderer with the given symbol.
- 
Method SummaryModifier and TypeMethodDescriptionGets the description that describes what this Renderer's does.getLabel()Gets the name of this Renderer.Gets the Symbol that is being used by this Renderer to draw Features/Graphics to the GeoView.Returns the symbol that is used to visualize the given feature.Returns the symbol that is used to visualize the given graphic.voidsetDescription(String description) Sets the description, which gives detail information about what this Renderer's does.voidSets a name that this Renderer can be referred to.voidSets the Symbol to be used by this Renderer to draw Features/Graphics to the GeoView.Methods inherited from class com.esri.arcgisruntime.symbology.RendererfromJson, getRotationExpression, getRotationType, getSceneProperties, getSymbol, getSymbol, getSymbol, getSymbol, getSymbol, getSymbol, getUnknownJson, getUnsupportedJson, setRotationExpression, setRotationType, toJson
- 
Constructor Details- 
SimpleRendererpublic SimpleRenderer()Creates a new simple renderer without a Symbol.- Since:
- 100.0.0
 
- 
SimpleRendererCreates a new simple renderer with the given symbol.Setting the Symbol to null will just apply a default red circle Symbol. - Parameters:
- symbol- the Symbol for this Renderer, can be null
- Since:
- 100.0.0
 
 
- 
- 
Method Details- 
getSymbolReturns the symbol that is used to visualize the given feature.If the renderer is a DictionaryRendererand its associatedDictionarySymbolStylereferences a style file hosted on ArcGIS Online or an ArcGIS Enterprise portal (also referred to as a web style), this method returns null. If the layer has rendered and the symbol is already drawn on the view, this method returns a validMultilayerSymbol. If you want to get the symbol before the layer is rendered, useDictionarySymbolStyle.getSymbolAsync(Map).- Specified by:
- getSymbolin class- Renderer
- Parameters:
- feature- the Feature to get a Symbol from, not null
- Returns:
- the Symbol of the Feature that was passed
- Throws:
- IllegalArgumentException- if feature is null
- Since:
- 100.0.0
- See Also:
 
- 
getSymbolReturns the symbol that is used to visualize the given graphic.If the renderer is a DictionaryRendererand its associatedDictionarySymbolStylereferences a style file hosted on ArcGIS Online or an ArcGIS Enterprise portal (also referred to as a web style), this method returns null. If the layer has rendered and the symbol is already drawn on the view, this method returns a validMultilayerSymbol. If you want to get the symbol before the layer is rendered, useDictionarySymbolStyle.getSymbolAsync(Map).- Specified by:
- getSymbolin class- Renderer
- Parameters:
- graphic- the Graphic to get a Symbol from, not null
- Returns:
- the Symbol of the Graphic that was passed
- Throws:
- IllegalArgumentException- if graphic is null
- Since:
- 100.0.0
- See Also:
 
- 
getSymbolGets the Symbol that is being used by this Renderer to draw Features/Graphics to the GeoView.Default value is a red circle Symbol. - Returns:
- the Symbol being used by this Renderer
- Since:
- 100.0.0
- See Also:
 
- 
setSymbolSets the Symbol to be used by this Renderer to draw Features/Graphics to the GeoView.Setting the Symbol to null will just apply a default red circle Symbol. - Parameters:
- symbol- the new Symbol used by this Renderer, can be null
- Since:
- 100.0.0
 
- 
getDescriptionGets the description that describes what this Renderer's does.Default value an empty string. - Returns:
- the description of this Renderer
- Since:
- 100.0.0
 
- 
setDescriptionSets the description, which gives detail information about what this Renderer's does. An example could be describing the meaning behind the Symbol it uses.- Parameters:
- description- the new description for this Renderer
 
- 
getLabelGets the name of this Renderer.Default value is an empty string. - Returns:
- the label of this Renderer
- Since:
- 100.0.0
 
- 
setLabelSets a name that this Renderer can be referred to.- Parameters:
- label- the new label for this Renderer
- Since:
- 100.0.0
 
 
-