Package docking.util

Class GraphicsUtils


  • public class GraphicsUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphicsUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void drawString​(javax.swing.JComponent c, java.awt.Graphics2D g2d, java.lang.String text, int x, int y)  
      static void drawString​(javax.swing.JComponent c, java.awt.Graphics g, java.lang.String text, int x, int y)  
      static java.awt.Graphics2D getGraphics2D​(java.awt.Graphics g)  
      static int stringWidth​(javax.swing.JComponent c, java.awt.FontMetrics fm, java.lang.String string)  
      • Methods inherited from class java.lang.Object

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

      • GraphicsUtils

        public GraphicsUtils()
    • Method Detail

      • drawString

        public static void drawString​(javax.swing.JComponent c,
                                      java.awt.Graphics g,
                                      java.lang.String text,
                                      int x,
                                      int y)
      • drawString

        public static void drawString​(javax.swing.JComponent c,
                                      java.awt.Graphics2D g2d,
                                      java.lang.String text,
                                      int x,
                                      int y)
      • getGraphics2D

        public static java.awt.Graphics2D getGraphics2D​(java.awt.Graphics g)
      • stringWidth

        public static int stringWidth​(javax.swing.JComponent c,
                                      java.awt.FontMetrics fm,
                                      java.lang.String string)