Package com.esri.arcgisruntime.layers
Class SubtypeSublayer
- java.lang.Object
-
- com.esri.arcgisruntime.layers.ArcGISSublayer
-
- com.esri.arcgisruntime.layers.SubtypeSublayer
-
- All Implemented Interfaces:
RemoteResource
,LayerContent
,Loadable
,PopupSource
public final class SubtypeSublayer extends ArcGISSublayer
A sublayer that allows custom rendering for features of a particular subtype.- Since:
- 100.7.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArcGISSublayer
copy()
Creates a deep copy of this ArcGISSublayer instance.java.util.List<LabelDefinition>
getLabelDefinitions()
Gets a mutable list ofLabelDefinition
s for the subtype sublayer.FeatureSubtype
getSubtype()
Gets the subtype in the feature service that this subtype sublayer represents.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, removeDoneLoadingListener, removeLoadStatusChangedListener, retryLoadAsync, setCanShowInLegend, setCredential, setPopupDefinition, setPopupEnabled, setRequestConfiguration, setVisible
-
-
-
-
Method Detail
-
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
public void setRenderer(Renderer renderer)
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:
java.lang.IllegalArgumentException
- if opacity is less than 0 or greater than 1- Since:
- 100.7.0
-
getLabelDefinitions
public java.util.List<LabelDefinition> getLabelDefinitions()
Gets a mutable list ofLabelDefinition
s for the subtype sublayer.- Returns:
- the list of label definitions for the subtype sublayer
- Since:
- 100.7.0
-
getSubtype
public FeatureSubtype 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
public ArcGISSublayer 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
-
-