Package docking.util

# Class GraphicsUtils

java.lang.Object
docking.util.GraphicsUtils

public class GraphicsUtils extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GraphicsUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `drawString(JComponent c, Graphics2D g2d, String text, int x, int y)`
  `static void`
  `drawString(JComponent c, Graphics g, String text, int x, int y)`
  `static Graphics2D`
  `getGraphics2D(Graphics g)`
  `static int`
  `stringWidth(JComponent c, FontMetrics fm, String string)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GraphicsUtils

    public GraphicsUtils()

- ## Method Details

  - ### drawString

    public static void drawString(JComponent c, Graphics g, String text, int x, int y)

  - ### drawString

    public static void drawString(JComponent c, Graphics2D g2d, String text, int x, int y)

  - ### getGraphics2D

    public static Graphics2D getGraphics2D(Graphics g)

  - ### stringWidth

    public static int stringWidth(JComponent c, FontMetrics fm, String string)