From dc1b74fb122a3dcf594a4220faa4953a1911c5f0 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 4 Feb 2018 23:21:55 +0100 Subject: Updating doc --- .../java/fr/umlv/java/wallj/context/GraphicsContext.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java b/src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java index 2eaa3b4..f2ae0a6 100644 --- a/src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java +++ b/src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java @@ -33,7 +33,7 @@ public final class GraphicsContext { } /** - * @return the screen informations + * @return the screen information */ public ScreenInfo getScreenInfo() { return screenInfo; @@ -60,8 +60,14 @@ public final class GraphicsContext { graphics2D.fillRect(Math.round(position.x), Math.round(position.y), Math.round(width), Math.round(height)); } - public void paintString(Color color, Vec2 position, String string){ + /** + * + * @param color the color of the text + * @param position the position that is given by the baseline's left point of the text + * @param string the text to write down on the screen + */ + public void paintString(Color color, Vec2 position, String string) { graphics2D.setColor(color); - graphics2D.drawString(string,position.x, position.y); + graphics2D.drawString(string, position.x, position.y); } } -- cgit v1.2.3