|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pzgui.StringDrawer
public abstract class StringDrawer
Provides some generic GUI helper functions for drawing strings.
| 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 |
|---|
public StringDrawer()
| Method Detail |
|---|
public static final void drawCenteredString(java.lang.String s,
java.awt.Graphics2D gfx,
int x,
int y)
public static final void drawCenteredStringOutlined(java.lang.String s,
java.awt.Graphics2D gfx,
int x,
int y,
java.awt.Paint outlinePaint)
public static final void drawRightAlignedString(java.lang.String s,
java.awt.Graphics2D gfx,
int x,
int y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||