org.pzgui
Class StringDrawer

java.lang.Object
  extended by org.pzgui.StringDrawer

public abstract class StringDrawer
extends java.lang.Object

Provides some generic GUI helper functions for drawing strings.

Author:
David Underhill

Constructor Summary
StringDrawer()
           
 
Method Summary
static void drawCenteredString(java.lang.String s, java.awt.Graphics2D gfx, int x, int y)
          Draw the string s horizontally centered at position x, y
static void drawCenteredStringOutlined(java.lang.String s, java.awt.Graphics2D gfx, int x, int y, java.awt.Paint outlinePaint)
          Draw the string s outlined and horizontally centered at position x, y
static void drawRightAlignedString(java.lang.String s, java.awt.Graphics2D gfx, int x, int y)
          Draw the string s right-aligned at position x, y
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDrawer

public StringDrawer()
Method Detail

drawCenteredString

public static final void drawCenteredString(java.lang.String s,
                                            java.awt.Graphics2D gfx,
                                            int x,
                                            int y)
Draw the string s horizontally centered at position x, y


drawCenteredStringOutlined

public static final void drawCenteredStringOutlined(java.lang.String s,
                                                    java.awt.Graphics2D gfx,
                                                    int x,
                                                    int y,
                                                    java.awt.Paint outlinePaint)
Draw the string s outlined and horizontally centered at position x, y


drawRightAlignedString

public static final void drawRightAlignedString(java.lang.String s,
                                                java.awt.Graphics2D gfx,
                                                int x,
                                                int y)
Draw the string s right-aligned at position x, y