com.alee.utils
Class DebugUtils

java.lang.Object
  extended by com.alee.utils.DebugUtils

public final class DebugUtils
extends java.lang.Object

This class provides a set of utilities for various code and graphics debug cases.

Author:
Mikle Garin

Constructor Summary
DebugUtils()
           
 
Method Summary
static void initTimeDebugInfo()
          Initializes time debugging.
static void paintBorderDebugInfo(java.awt.Graphics g, javax.swing.JComponent c)
          Paints border debug information.
static void paintBorderDebugInfo(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Color color)
          Paints border debug information.
static void paintTimeDebugInfo(java.awt.Graphics g)
          Paints time debug information.
static void paintTimeDebugInfo(java.awt.Graphics2D g2d)
          Paints time debug information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugUtils

public DebugUtils()
Method Detail

initTimeDebugInfo

public static void initTimeDebugInfo()
Initializes time debugging. Call this when you want to start measuring painting time.


paintTimeDebugInfo

public static void paintTimeDebugInfo(java.awt.Graphics g)
Paints time debug information. Call this when you want to paint time debug information.

Parameters:
g - graphics

paintTimeDebugInfo

public static void paintTimeDebugInfo(java.awt.Graphics2D g2d)
Paints time debug information. Call this when you want to paint time debug information.

Parameters:
g2d - graphics

paintBorderDebugInfo

public static void paintBorderDebugInfo(java.awt.Graphics g,
                                        javax.swing.JComponent c)
Paints border debug information. This will display border bounds within the component.

Parameters:
g - graphics
c - component

paintBorderDebugInfo

public static void paintBorderDebugInfo(java.awt.Graphics g,
                                        javax.swing.JComponent c,
                                        java.awt.Color color)
Paints border debug information. This will display border bounds within the component.

Parameters:
g - graphics
c - component
color - debug shape color