use of android.graphics.Region in project WilliamChart by diogobernardino.
the class ChartView method getEntriesArea.
/**
* Get the list of {@link android.graphics.Rect} associated to each entry of a ChartSet.
*
* @param index {@link com.db.chart.model.ChartSet} index
* @return The list of {@link android.graphics.Rect} for the specified dataset
*/
public ArrayList<Rect> getEntriesArea(int index) {
checkPositionIndex(index, mRegions.size());
ArrayList<Rect> result = new ArrayList<>(mRegions.get(index).size());
for (Region r : mRegions.get(index)) result.add(getEntryRect(r));
return result;
}
Aggregations