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 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

      public void setRenderer(Renderer renderer)
      Sets the renderer.
      Overrides:
      setRenderer in class ArcGISSublayer
      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

      public List<FeatureTemplate> 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

      public List<LabelDefinition> getLabelDefinitions()
      Gets a mutable list of LabelDefinitions for the subtype sublayer.
      Returns:
      the list of LabelDefinition objects for this layer
      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 class ArcGISSublayer
      Returns:
      a deep copy of this ArcGISSublayer instance
    • getUnknownJson

      public Map<String,Object> 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

      public Map<String,Object> 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: