FileDocCategorySizeDatePackage
PathsCacheActivity.javaAPI DocAndroid 5.1 API4196Thu Mar 12 22:22:44 GMT 2015com.android.test.hwui

PathsCacheActivity

public class PathsCacheActivity extends android.app.Activity

Fields Summary
private android.graphics.Path
mPath
private final Random
mRandom
private final ArrayList
mPathList
Constructors Summary
Methods Summary
private static voidbuildLargePath(android.graphics.Path path)

        path.moveTo(0.0f, 0.0f);
        path.cubicTo(0.0f, 0.0f, 10000.0f, 15000.0f, 10000.0f, 20000.0f);
        path.cubicTo(10000.0f, 20000.0f, 5000.0f, 30000.0f, -8000.0f, 20000.0f);
        path.cubicTo(-8000.0f, 20000.0f, 10000.0f, 20000.0f, 20000.0f, 0.0f);
    
private static voidbuildPath(android.graphics.Path path)

        path.moveTo(0.0f, 0.0f);
        path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f);
        path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f);
        path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f);
    
private static android.graphics.PathmakeLargePath()

        Path path = new Path();
        buildLargePath(path);
        return path;
    
private static android.graphics.PathmakePath()

        Path path = new Path();
        buildPath(path);
        return path;
    
protected voidonCreate(android.os.Bundle savedInstanceState)


    
        
        super.onCreate(savedInstanceState);

        mPath = makePath();

        final PathsView view = new PathsView(this);
        setContentView(view);