use of android.graphics.Path in project android_frameworks_base by ParanoidAndroid.
the class PieMenu method makeSlice.
private Path makeSlice(float start, float end, int outer, int inner, Point center, float narrow, boolean bothEnds) {
RectF bb = new RectF(center.x - outer, center.y - outer, center.x + outer, center.y + outer);
RectF bbi = new RectF(center.x - inner, center.y - inner, center.x + inner, center.y + inner);
Path path = new Path();
path.arcTo(bb, start, end - start, true);
path.arcTo(bbi, end + narrow, start - end - (bothEnds ? narrow : narrow * 2));
path.close();
return path;
}
use of android.graphics.Path in project android_frameworks_base by ParanoidAndroid.
the class TextOnPathActivity method makeStraightPath.
private static Path makeStraightPath() {
Path path = new Path();
buildStraightPath(path);
return path;
}
use of android.graphics.Path in project android_frameworks_base by ParanoidAndroid.
the class TextOnPathActivity method makePath.
private static Path makePath() {
Path path = new Path();
buildPath(path);
return path;
}
use of android.graphics.Path in project android_frameworks_base by ParanoidAndroid.
the class PathsCacheActivity method makeLargePath.
private static Path makeLargePath() {
Path path = new Path();
buildLargePath(path);
return path;
}
use of android.graphics.Path in project android_frameworks_base by ParanoidAndroid.
the class Gesture method toPath.
public Path toPath(Path path) {
if (path == null)
path = new Path();
final ArrayList<GestureStroke> strokes = mStrokes;
final int count = strokes.size();
for (int i = 0; i < count; i++) {
path.addPath(strokes.get(i).getPath());
}
return path;
}
Aggregations