Package docking.util
Class GraphicsUtils
- java.lang.Object
-
- docking.util.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)
-
-
-
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)
-
-