Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.List;
import android.graphics.Canvas;

import android.graphics.Paint;
import android.graphics.PointF;

import android.util.Log;

public class Main {
    public static void drawKnots(Canvas canvas, List<PointF> knots, int color) {
        Log.d("GammaGraph", "function drawKnots");
        Paint paint = new Paint();
        paint.setAntiAlias(true);
        paint.setColor(color);
        paint.setStrokeWidth(7);
        for (PointF knot : knots) {
            canvas.drawPoint(knot.x, knot.y, paint);
        }
    }
}