java.lang.Object
com.esri.arcgisruntime.layers.ArcGISSublayer
com.esri.arcgisruntime.layers.SubtypeSublayer
- All Implemented Interfaces:
RemoteResource
,LayerContent
,Loadable
,PopupSource
A sublayer that allows custom rendering for features of a particular subtype.
- Since:
- 100.7.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.layers.ArcGISSublayer
loadError, loadStatus
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a deep copy of this ArcGISSublayer instance.Gets the sublayer's feature templates.Gets a mutable list ofLabelDefinition
s for the subtype sublayer.Gets the subtype in the feature service that this subtype sublayer represents.Gets unknown data from the source JSON.Gets unsupported data from the source JSON.void
setLabelsEnabled
(boolean labelsEnabled) Sets whether the sublayer's labels are enabled/disabled.void
setMaxScale
(double maxScale) Sets the sublayer's maximum scale.void
setMinScale
(double minScale) Sets the sublayer's minimum scale.void
setOpacity
(float opacity) Sets the opacity - a value between 0 to 1.0 with 1.0 being solid or opaque and 0 being transparent.void
setRenderer
(Renderer renderer) Sets the renderer.Methods inherited from class com.esri.arcgisruntime.layers.ArcGISSublayer
addDoneLoadingListener, addLoadStatusChangedListener, cancelLoad, canChangeVisibility, canScaleSymbols, canShowInLegend, copyTo, fetchLegendInfosAsync, getCredential, getDefinitionExpression, getId, getLoadError, getLoadStatus, getMapServiceSublayerInfo, getMaxScale, getMinScale, getName, getOpacity, getPopupDefinition, getRenderer, getRequestConfiguration, getSubLayerContents, getSublayers, getUri, isLabelsEnabled, isPopupEnabled, isVisible, isVisibleAtScale, loadAsync, loadErrorProperty, loadStatusProperty, removeDoneLoadingListener, removeLoadStatusChangedListener, retryLoadAsync, setCanShowInLegend, setCredential, setPopupDefinition, setPopupEnabled, setRequestConfiguration, setVisible
-
Method Details
-
setLabelsEnabled
public void setLabelsEnabled(boolean labelsEnabled) Sets whether the sublayer's labels are enabled/disabled.- Parameters:
labelsEnabled
- true to enable, false to disable- Since:
- 100.7.0
-
setMaxScale
public void setMaxScale(double maxScale) Sets the sublayer's maximum scale.- Parameters:
maxScale
- the maximum scale- Since:
- 100.7.0
-
setMinScale
public void setMinScale(double minScale) Sets the sublayer's minimum scale.- Parameters:
minScale
- the minimum scale- Since:
- 100.7.0
-
setRenderer
Sets the renderer.- Overrides:
setRenderer
in classArcGISSublayer
- Parameters:
renderer
- the new renderer- Since:
- 100.7.0
-
setOpacity
public void setOpacity(float opacity) Sets the opacity - a value between 0 to 1.0 with 1.0 being solid or opaque and 0 being transparent.- Parameters:
opacity
- the new opacity- Throws:
IllegalArgumentException
- if opacity is less than 0 or greater than 1- Since:
- 100.7.0
-
getFeatureTemplates
Gets the sublayer's feature templates.A collection of templates that can be used to create new features of
getSubtype()
with default attribute values and a specified mode for creating its geometry.- Returns:
- an unmodifiable List containing the sublayer's feature templates
- Since:
- 200.2.0
- See Also:
-
getLabelDefinitions
Gets a mutable list ofLabelDefinition
s for the subtype sublayer.- Returns:
- the list of
LabelDefinition
objects for this layer - Since:
- 100.7.0
-
getSubtype
Gets the subtype in the feature service that this subtype sublayer represents.- Returns:
- the subtype in the feature service that this subtype sublayer represents
- Since:
- 100.7.0
-
copy
Description copied from class:ArcGISSublayer
Creates a deep copy of this ArcGISSublayer instance.- Specified by:
copy
in classArcGISSublayer
- Returns:
- a deep copy of this ArcGISSublayer instance
-
getUnknownJson
Gets unknown data from the source JSON.Unknown JSON is a Map of values not defined in the ArcGIS specification used to create this object but found in the source JSON. If the object is written back to JSON, any unknown JSON data is not persisted. The ArcGIS specification may be for a web map, web scene, REST API, and so on.
- Returns:
- an unmodifiable Map containing unknown data from the source JSON
- Since:
- 200.2.0
- See Also:
-
getUnsupportedJson
Gets unsupported data from the source JSON.Unsupported JSON is a Map of values defined in the ArcGIS specification used to create this object but not currently used in this API. If the object is written back to JSON, any unsupported JSON data is persisted. The ArcGIS specification may be from a web map, web scene, REST API, and so on.
- Returns:
- an unmodifiable Map containing unsupported data from the source JSON
- Since:
- 200.2.0
- See Also:
-