Package com.loohp.limbo.metrics
Class Metrics.AdvancedMapChart
java.lang.Object
com.loohp.limbo.metrics.Metrics.CustomChart
com.loohp.limbo.metrics.Metrics.AdvancedMapChart
- Enclosing class:
Metrics
Represents a custom advanced map chart.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.json.simple.JSONObject
abstract HashMap<Metrics.Country,
Integer> getValues
(HashMap<Metrics.Country, Integer> valueMap) Gets the value of the chart.
-
Constructor Details
-
AdvancedMapChart
Class constructor.- Parameters:
chartId
- The id of the chart.
-
-
Method Details
-
getValues
public abstract HashMap<Metrics.Country,Integer> getValues(HashMap<Metrics.Country, Integer> valueMap) Gets the value of the chart.- Parameters:
valueMap
- Just an empty map. The only reason it exists is to make your life easier. You don't have to create a map yourself!- Returns:
- The value of the chart.
-
getChartData
protected org.json.simple.JSONObject getChartData()- Specified by:
getChartData
in classMetrics.CustomChart
-