Package com.aerisweather.aeris.tiles
Enum AerisPointData
- java.lang.Object
-
- java.lang.Enum<AerisPointData>
-
- com.aerisweather.aeris.tiles.AerisPointData
-
- All Implemented Interfaces:
AerisOverlay
,Serializable
,Comparable<AerisPointData>
public enum AerisPointData extends Enum<AerisPointData> implements AerisOverlay
Aeris point data enum that helps setup each loading with the proper aeris query, proper handler and proper legend. Legends can be overridden by using their own drawable in the same name.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AIR_QUALITY
EARTHQUAKES
FIRE
LIGHTNING_STRIKES
NONE
RECORDS
RIVERS
STORM_CELLS
STORM_REPORTS
TROPICAL_CYCLONES
TROPICAL_CYCLONES_ARCHIVE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AerisPointHandler
getHandler(AerisMapView mapView)
Gets the proper handler for the AerisRequest being made by the overlay.int
getLegend()
Gets the integer drawable of the overlay's map legend.String
getName()
Gets the display friendly name of the overlaystatic AerisPointData
getPointDataFromName(String name)
Gets the enum from the string name of it.com.aerisweather.aeris.communication.AerisRequest
getRequest(com.aerisweather.aeris.communication.Action action, com.aerisweather.aeris.communication.parameter.ParameterBuilder builder, android.content.Context context)
Gets the request needed to load the data for the overlay.com.aerisweather.aeris.communication.AerisRequest
getRequest(com.aerisweather.aeris.communication.Action action, com.aerisweather.aeris.communication.parameter.ParameterBuilder builder, android.content.Context context, Boolean useDefaultParams)
Gets the request needed to load the data for the overlay.com.aerisweather.aeris.communication.AerisRequest
getRequest(com.aerisweather.aeris.communication.parameter.PlaceParameter place, com.aerisweather.aeris.communication.Action action, com.aerisweather.aeris.communication.parameter.LimitParameter limit, com.aerisweather.aeris.communication.parameter.FromParameter from, com.aerisweather.aeris.communication.parameter.SortParameter sort)
Gets the request needed to load the data for the overlay.static List<String>
getStringList(android.content.Context context)
Gets a list of the String for displaying in lists.static AerisPointData
valueOf(String name)
Returns the enum constant of this type with the specified name.static AerisPointData[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final AerisPointData NONE
-
FIRE
public static final AerisPointData FIRE
-
STORM_CELLS
public static final AerisPointData STORM_CELLS
-
STORM_REPORTS
public static final AerisPointData STORM_REPORTS
-
EARTHQUAKES
public static final AerisPointData EARTHQUAKES
-
LIGHTNING_STRIKES
public static final AerisPointData LIGHTNING_STRIKES
-
RECORDS
public static final AerisPointData RECORDS
-
RIVERS
public static final AerisPointData RIVERS
-
TROPICAL_CYCLONES
public static final AerisPointData TROPICAL_CYCLONES
-
TROPICAL_CYCLONES_ARCHIVE
public static final AerisPointData TROPICAL_CYCLONES_ARCHIVE
-
AIR_QUALITY
public static final AerisPointData AIR_QUALITY
-
-
Method Detail
-
values
public static AerisPointData[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AerisPointData c : AerisPointData.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AerisPointData valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
Description copied from interface:AerisOverlay
Gets the display friendly name of the overlay- Specified by:
getName
in interfaceAerisOverlay
- Returns:
- String representation of the overlay
-
getLegend
public int getLegend()
Description copied from interface:AerisOverlay
Gets the integer drawable of the overlay's map legend. Will be 0 if there is not a legend.- Specified by:
getLegend
in interfaceAerisOverlay
- Returns:
- The legend of the overlay
-
getHandler
public AerisPointHandler getHandler(AerisMapView mapView)
Description copied from interface:AerisOverlay
Gets the proper handler for the AerisRequest being made by the overlay.- Specified by:
getHandler
in interfaceAerisOverlay
- Parameters:
mapView
- The mapview Obj to pass the handler results too- Returns:
- The handler to the request made for loading the overlay.
-
getPointDataFromName
public static AerisPointData getPointDataFromName(String name)
Gets the enum from the string name of it.- Parameters:
name
- name to check for- Returns:
- The enum of the name, null otherwise.
-
getStringList
public static List<String> getStringList(android.content.Context context)
Gets a list of the String for displaying in lists. Removes from the list API permissions this client does not have.- Parameters:
context
- context- Returns:
- return
-
getRequest
public com.aerisweather.aeris.communication.AerisRequest getRequest(com.aerisweather.aeris.communication.parameter.PlaceParameter place, com.aerisweather.aeris.communication.Action action, com.aerisweather.aeris.communication.parameter.LimitParameter limit, com.aerisweather.aeris.communication.parameter.FromParameter from, com.aerisweather.aeris.communication.parameter.SortParameter sort)
Description copied from interface:AerisOverlay
Gets the request needed to load the data for the overlay.- Specified by:
getRequest
in interfaceAerisOverlay
- Parameters:
place
- place parameter to useaction
- action type to uselimit
- limit parameter to usefrom
- default from parameter to usesort
- default sort parameter to use- Returns:
- The Aeris Request to load the overlay
-
getRequest
public com.aerisweather.aeris.communication.AerisRequest getRequest(com.aerisweather.aeris.communication.Action action, com.aerisweather.aeris.communication.parameter.ParameterBuilder builder, android.content.Context context)
Description copied from interface:AerisOverlay
Gets the request needed to load the data for the overlay.- Specified by:
getRequest
in interfaceAerisOverlay
- Parameters:
action
- action type to usebuilder
- parameters to usecontext
- context to use to retrieve default option values- Returns:
- The request object.
-
getRequest
public com.aerisweather.aeris.communication.AerisRequest getRequest(com.aerisweather.aeris.communication.Action action, com.aerisweather.aeris.communication.parameter.ParameterBuilder builder, android.content.Context context, Boolean useDefaultParams)
Description copied from interface:AerisOverlay
Gets the request needed to load the data for the overlay.- Specified by:
getRequest
in interfaceAerisOverlay
- Parameters:
action
- action type to usebuilder
- parameters to usecontext
- context to use to retrieve default option values, if neededuseDefaultParams
- flag to determine whether or not to use default parameters- Returns:
- The request object
-
-