Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.graphics.Path;
import android.graphics.RectF;

public class Main {
    public static void computeCircleFailedSymbolPath(RectF contentRect, int sideLength, Path failedSymbolPath1,
            Path failedSymbolPath2) {
        float padding = sideLength * 0.3f;
        failedSymbolPath1.moveTo(contentRect.left + padding, contentRect.top + padding);
        failedSymbolPath1.quadTo(contentRect.left + padding, contentRect.top + padding, contentRect.right - padding,
                contentRect.bottom - padding);

        failedSymbolPath2.moveTo(contentRect.right - padding, contentRect.top + padding);
        failedSymbolPath2.quadTo(contentRect.right - padding, contentRect.top + padding, contentRect.left + padding,
                contentRect.bottom - padding);
    }
}