Class AerisAmpLayer


  • public class AerisAmpLayer
    extends Object
    AerisAmpLayer Class Created by sshie on 1/23/2017.
    • Constructor Detail

      • AerisAmpLayer

        public AerisAmpLayer()
        Constructor Created a new AerisAmpLayer defaulted to Radar with an opacity of 80
      • AerisAmpLayer

        public AerisAmpLayer​(String layerId,
                             String layerName,
                             int layerOpacity)
        Constructor
    • Method Detail

      • setLayerName

        public void setLayerName​(String sName)
      • getLayerName

        public String getLayerName()
      • setLayerId

        public void setLayerId​(String sId)
      • getLayerId

        public String getLayerId()
      • setLayerOpacity

        public void setLayerOpacity​(int opacity)
      • getLayerOpacity

        public int getLayerOpacity()
      • getLayerLegend

        public int getLayerLegend()
      • setLayerLegend

        public void setLayerLegend​(String layerId)
        Sets the legend resource id based on the AMP layer being created.
        Parameters:
        layerId - String
      • setCustomLayerLegend

        public void setCustomLayerLegend​(int legendResourceId)
        Pass in the resource identifier of a legend image for the this AMP layer.
        Parameters:
        legendResourceId - int
      • setLayerModifier

        public void setLayerModifier​(AerisAmpLayer.Modifier modifier)
        Sets the layer's modifier Example: -dk
        Parameters:
        modifier - String
      • setLayerModifierOption

        public void setLayerModifierOption​(String modifierLabel,
                                           String optionId,
                                           boolean checked)
        Sets or adds an option for a modifier Example: -dk
        Parameters:
        modifierLabel - String
        optionId - String
      • getLayerModifier

        public AerisAmpLayer.Modifier getLayerModifier​(String modifierLabel)
        Returns the requested Modifier object, or null if no match is found.
        Parameters:
        modifierLabel - String
        Returns:
        Modifier