Package com.tech.app.functions
Class FUtils.Graphics
- java.lang.Object
-
- com.tech.app.functions.FUtils.Graphics
-
- Enclosing class:
- FUtils
public static class FUtils.Graphics extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Graphics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
drawCenteredString(java.awt.Graphics g, java.lang.String text, java.awt.Rectangle rect, java.awt.Font font)
Draw a String centered in the middle of a Rectangle.
-
-
-
Method Detail
-
drawCenteredString
public static void drawCenteredString(java.awt.Graphics g, java.lang.String text, java.awt.Rectangle rect, java.awt.Font font)
Draw a String centered in the middle of a Rectangle.- Parameters:
g
- The Graphics instance.text
- The String to draw.rect
- The Rectangle to center the text in.font
- Police utilisée
-
-