Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Canvas;

import android.graphics.Paint;

import java.util.LinkedHashMap;

public class Main {
    private static LinkedHashMap<String, String> debugOutput = new LinkedHashMap<String, String>();
    private static Paint whitePaint = new Paint();

    public static void drawDebugOutput(Canvas c) {
        int vertical_spacing = 0;

        for (String key : debugOutput.keySet()) {
            c.drawText(key + ": " + debugOutput.get(key), 20, 200 + vertical_spacing, whitePaint);
            vertical_spacing += whitePaint.getTextSize();
        }
    }
}