|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--CoffeeTable.Grid.GridUtils
GridUtils is a utility class containing drawing routines used by the GridPanel. These static methods have been moved here from GridPanel class.
| Constructor Summary | |
GridUtils()
|
|
| Method Summary | |
static void |
drawJustString(java.awt.Graphics g,
java.lang.String aString,
java.awt.Rectangle aRect,
int justification,
java.awt.FontMetrics aFontMetrics,
int baseLine)
Draw the string using the specified justification style. |
static void |
drawJustString(java.awt.Graphics g,
java.lang.String aString,
java.awt.Rectangle aRect,
int justification,
java.awt.FontMetrics aFontMetrics,
int baseLine,
boolean underline)
Draw the string using the specified justification style. |
static void |
drawString(java.awt.Graphics g,
java.lang.String aString,
java.awt.Rectangle aRect,
int justification,
java.awt.FontMetrics aFontMetrics)
Draw a String in the specified rectangle. |
static void |
drawString(java.awt.Graphics g,
java.lang.String aString,
java.awt.Rectangle aRect,
int justification,
java.awt.FontMetrics aFontMetrics,
boolean underline)
Draw a String in the specified rectangle. |
static void |
drawText(java.awt.Graphics g,
java.lang.String aString,
java.awt.Rectangle aRect,
int justification,
java.awt.FontMetrics aFontMetrics)
Draw the string using the specified justification style, with word wrapping. |
static void |
drawText(java.awt.Graphics g,
java.lang.String aString,
java.awt.Rectangle aRect,
int justification,
java.awt.FontMetrics aFontMetrics,
boolean underline)
Draw the string using the specified justification style, with word wrapping. |
static void |
drawTruncString(java.awt.Graphics g,
java.lang.String aString,
java.awt.Rectangle aRect,
int justification,
java.awt.FontMetrics aFontMetrics,
int baseLine)
Draw the string using the specified justification style, truncating the string if necessary. |
static void |
drawTruncString(java.awt.Graphics g,
java.lang.String aString,
java.awt.Rectangle aRect,
int justification,
java.awt.FontMetrics aFontMetrics,
int baseLine,
boolean underline)
Draw the string using the specified justification style, truncating the string if necessary. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public GridUtils()
| Method Detail |
public static final void drawJustString(java.awt.Graphics g, java.lang.String aString, java.awt.Rectangle aRect, int justification, java.awt.FontMetrics aFontMetrics, int baseLine, boolean underline)
g - the Graphics objectaString - the String to be drawnaRect - the Rectangle in which to draw the stringjustification - the justification style (JUST_LEFT, JUST_CENTER, JUST_RIGHT)aFontMetrics - the FontMetrics record for the Font being usedbaseLine - the baseLine for the textunderline - true to draw the text underlinedpublic static final void drawJustString(java.awt.Graphics g, java.lang.String aString, java.awt.Rectangle aRect, int justification, java.awt.FontMetrics aFontMetrics, int baseLine)
g - the Graphics objectaString - the String to be drawnaRect - the Rectangle in which to draw the stringjustification - the justification style (JUST_LEFT, JUST_CENTER, JUST_RIGHT)aFontMetrics - the FontMetrics record for the Font being usedbaseLine - the baseLine for the textpublic static final void drawText(java.awt.Graphics g, java.lang.String aString, java.awt.Rectangle aRect, int justification, java.awt.FontMetrics aFontMetrics, boolean underline)
g - the Graphics objectaString - the String to be drawnaRect - the Rectangle in which to draw the stringjustification - the justification style (JUST_LEFT, JUST_CENTER, JUST_RIGHT)aFontMetrics - the FontMetrics record for the Font being usedunderline - true to draw the text underlinedpublic static final void drawText(java.awt.Graphics g, java.lang.String aString, java.awt.Rectangle aRect, int justification, java.awt.FontMetrics aFontMetrics)
g - the Graphics objectaString - the String to be drawnaRect - the Rectangle in which to draw the stringjustification - the justification style (JUST_LEFT, JUST_CENTER, JUST_RIGHT)aFontMetrics - the FontMetrics record for the Font being usedpublic static final void drawTruncString(java.awt.Graphics g, java.lang.String aString, java.awt.Rectangle aRect, int justification, java.awt.FontMetrics aFontMetrics, int baseLine, boolean underline)
g - the Graphics objectaString - the String to be drawnaRect - the Rectangle in which to draw the stringjustification - the justification style (JUST_LEFT, JUST_CENTER, JUST_RIGHT)aFontMetrics - the FontMetrics record for the Font being usedbaseLine - distance from the top of the Rect to the text baselineunderline - true to draw the text underlinedpublic static final void drawTruncString(java.awt.Graphics g, java.lang.String aString, java.awt.Rectangle aRect, int justification, java.awt.FontMetrics aFontMetrics, int baseLine)
g - the Graphics objectaString - the String to be drawnaRect - the Rectangle in which to draw the stringjustification - the justification style (JUST_LEFT, JUST_CENTER, JUST_RIGHT)aFontMetrics - the FontMetrics record for the Font being usedbaseLine - distance from the top of the Rect to the text baselinepublic static final void drawString(java.awt.Graphics g, java.lang.String aString, java.awt.Rectangle aRect, int justification, java.awt.FontMetrics aFontMetrics, boolean underline)
g - the specified Graphics objectaString - the String to be drawnaRect - the Rectangle in which to draw the stringjustification - the justification style (JUST_LEFT, JUST_CENTER, JUST_RIGHT with WORD_WRAP or TRUNC_STRING OR'd to it)aFontMetrics - the FontMetrics record for the Font being usedunderline - true to draw the text underlinedpublic static final void drawString(java.awt.Graphics g, java.lang.String aString, java.awt.Rectangle aRect, int justification, java.awt.FontMetrics aFontMetrics)
g - the specified Graphics objectaString - the String to be drawnaRect - the Rectangle in which to draw the stringjustification - the justification style (JUST_LEFT, JUST_CENTER, JUST_RIGHT with WORD_WRAP or TRUNC_STRING OR'd to it)aFontMetrics - the FontMetrics record for the Font being used
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||