Search in sources :

Example 56 with Region

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;
}
Also used : Rect(android.graphics.Rect) ArrayList(java.util.ArrayList) Region(android.graphics.Region)

Aggregations

Region (android.graphics.Region)56 Point (android.graphics.Point)40 RemoteException (android.os.RemoteException)33 IAccessibilityInteractionConnectionCallback (android.view.accessibility.IAccessibilityInteractionConnectionCallback)33 AccessibilityNodeInfo (android.view.accessibility.AccessibilityNodeInfo)25 SomeArgs (com.android.internal.os.SomeArgs)25 Rect (android.graphics.Rect)22 Paint (android.graphics.Paint)13 AccessibilityNodeProvider (android.view.accessibility.AccessibilityNodeProvider)10 CompatibilityInfo (android.content.res.CompatibilityInfo)8 Resources (android.content.res.Resources)8 InputMethodManager (android.view.inputmethod.InputMethodManager)8 BaseSurfaceHolder (com.android.internal.view.BaseSurfaceHolder)8 ArrayList (java.util.ArrayList)6 Configuration (android.content.res.Configuration)5 OutOfResourcesException (android.view.Surface.OutOfResourcesException)5 RootViewSurfaceTaker (com.android.internal.view.RootViewSurfaceTaker)5 LinkedList (java.util.LinkedList)5 List (java.util.List)5 DisplayMetrics (android.util.DisplayMetrics)3