Here you can find the source of drawStringAtPoint(Graphics g, String s, Point p)
Parameter | Description |
---|---|
g | The Graphics to draw with |
s | The String to draw |
p | The coordinates of the String |
public static void drawStringAtPoint(Graphics g, String s, Point p)
//package com.java2s; //License from project: Open Source License import java.awt.Graphics; import java.awt.Point; public class Main { /**//from w w w.j ava 2s . co m * Draws a String on the screen using a Point instead of x y * @param g The Graphics to draw with * @param s The String to draw * @param p The coordinates of the String */ public static void drawStringAtPoint(Graphics g, String s, Point p) { g.drawString(s, p.x, p.y); } }