Package com.aerisweather.aeris.tiles
Class AerisAmpLayer
- java.lang.Object
-
- com.aerisweather.aeris.tiles.AerisAmpLayer
-
public class AerisAmpLayer extends Object
AerisAmpLayer Class Created by sshie on 1/23/2017.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AerisAmpLayer.Modifier
class
AerisAmpLayer.ModifierOption
-
Constructor Summary
Constructors Constructor Description AerisAmpLayer()
Constructor Created a new AerisAmpLayer defaulted to Radar with an opacity of 80AerisAmpLayer(String layerId, String layerName, int layerOpacity)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLayerModifier(AerisAmpLayer.Modifier modifier)
String
getLayerId()
int
getLayerLegend()
AerisAmpLayer.Modifier
getLayerModifier(String modifierLabel)
Returns the requested Modifier object, or null if no match is found.ArrayList<AerisAmpLayer.Modifier>
getLayerModifiers()
Returns an ArrayList of the layer's modifier objectsString
getLayerName()
int
getLayerOpacity()
void
setCustomLayerLegend(int legendResourceId)
Pass in the resource identifier of a legend image for the this AMP layer.void
setLayerId(String sId)
void
setLayerLegend(String layerId)
Sets the legend resource id based on the AMP layer being created.void
setLayerModifier(AerisAmpLayer.Modifier modifier)
Sets the layer's modifier Example: -dkvoid
setLayerModifierOption(String modifierLabel, String optionId, boolean checked)
Sets or adds an option for a modifier Example: -dkvoid
setLayerName(String sName)
void
setLayerOpacity(int opacity)
-
-
-
Field Detail
-
id
public String id
-
name
public String name
-
modifiers
public final ArrayList<AerisAmpLayer.Modifier> modifiers
-
category
public String category
-
thumbSrc
public String thumbSrc
-
updateInterval
public String updateInterval
-
regions
public String regions
-
description
public String description
-
bundle
public Object bundle
-
-
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
-
addLayerModifier
public void addLayerModifier(AerisAmpLayer.Modifier modifier)
-
setLayerModifierOption
public void setLayerModifierOption(String modifierLabel, String optionId, boolean checked)
Sets or adds an option for a modifier Example: -dk- Parameters:
modifierLabel
- StringoptionId
- String
-
getLayerModifiers
public ArrayList<AerisAmpLayer.Modifier> getLayerModifiers()
Returns an ArrayList of the layer's modifier objects- Returns:
- ArrayList
-
getLayerModifier
public AerisAmpLayer.Modifier getLayerModifier(String modifierLabel)
Returns the requested Modifier object, or null if no match is found.- Parameters:
modifierLabel
- String- Returns:
- Modifier
-
-