Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Graphics

        public Graphics()
    • 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