prolog.ui
Class UiUtil

java.lang.Object
  |
  +--prolog.ui.UiUtil

public class UiUtil
extends java.lang.Object

some util methods used by all renderers from over the program.


Constructor Summary
private UiUtil()
          private constructor -> util class
 
Method Summary
static void paintCell(java.awt.Graphics2D g, java.awt.Rectangle r, java.lang.String text, java.awt.Color bkColor, java.awt.Color borderColor)
          paints a cell
static void paintCenteredCell(java.awt.Graphics2D g, java.awt.Rectangle r, java.lang.String text, java.awt.Color bkColor, java.awt.Color borderColor)
          paints a cell with centered content
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

UiUtil

private UiUtil()
private constructor -> util class
Method Detail

paintCenteredCell

public static void paintCenteredCell(java.awt.Graphics2D g,
                                     java.awt.Rectangle r,
                                     java.lang.String text,
                                     java.awt.Color bkColor,
                                     java.awt.Color borderColor)
paints a cell with centered content
Parameters:
g - - the graphical context to paint into
r - - the rectangle to paint into
text - - the text to paint
bkColor - - the background color
borderColor - - the border color

paintCell

public static void paintCell(java.awt.Graphics2D g,
                             java.awt.Rectangle r,
                             java.lang.String text,
                             java.awt.Color bkColor,
                             java.awt.Color borderColor)
paints a cell
Parameters:
g - - the graphical context to paint into
r - - the rectangle to paint into
text - - the text to paint
bkColor - - the background color
borderColor - - the border color