Package me.playernguyen.opteco.bStats
Class Metrics.SimpleBarChart
java.lang.Object
me.playernguyen.opteco.bStats.Metrics.CustomChart
me.playernguyen.opteco.bStats.Metrics.SimpleBarChart
- Enclosing class:
- Metrics
public static class Metrics.SimpleBarChart extends Metrics.CustomChart
Represents a custom simple bar chart.
-
Constructor Summary
Constructors Constructor Description SimpleBarChart(java.lang.String chartId, java.util.concurrent.Callable<java.util.Map<java.lang.String,java.lang.Integer>> callable)
Class constructor. -
Method Summary
Modifier and Type Method Description protected com.google.gson.JsonObject
getChartData()
-
Constructor Details
-
SimpleBarChart
public SimpleBarChart(java.lang.String chartId, java.util.concurrent.Callable<java.util.Map<java.lang.String,java.lang.Integer>> callable)Class constructor.- Parameters:
chartId
- The id of the chart.callable
- The callable which is used to request the chart data.
-
-
Method Details
-
getChartData
protected com.google.gson.JsonObject getChartData() throws java.lang.Exception- Specified by:
getChartData
in classMetrics.CustomChart
- Throws:
java.lang.Exception
-