debug Quadrant Grid - Java 2D Graphics

Java examples for 2D Graphics:Curve

Description

debug Quadrant Grid

Demo Code


//package com.java2s;
import java.awt.Graphics2D;

import java.awt.Font;
import java.awt.Color;

import java.awt.geom.Point2D;
import java.util.List;

public class Main {
    public static void debugQuadrantGrid(Graphics2D graphics2D,
            List<Point2D[]> axes) {
        for (Point2D[] points : axes) {
            for (Point2D point : points) {
                graphics2D.setFont(new Font("Dialog", Font.BOLD, 21));
                graphics2D.setPaint(Color.red);
                graphics2D.drawString(".", (float) point.getX(),
                        (float) point.getY());
            }// w  w  w.j av  a2s .  c om
        }

    }
}

Related Tutorials