|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jpemartin.jgt.DrawTextGlyph
public class DrawTextGlyph
Draw the given text with the given color. Typically you'd only use the ctor and the draw(g,x,y) methods. This version does the same thing as DrawText, but it tries to do it faster by caching the intermediate glyphs. Testing, however, shows that this is not faster at all (see DrawTextBench).
| Constructor Summary | |
|---|---|
DrawTextGlyph(java.lang.String text,
java.awt.Color color)
Initialize the object with a given text and color |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics g,
int x,
int y)
draw the text at the given position, using the default font |
java.awt.Color |
getColor()
|
void |
setColor(java.awt.Color _color)
Set the text color |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrawTextGlyph(java.lang.String text,
java.awt.Color color)
| Method Detail |
|---|
public java.awt.Color getColor()
public void setColor(java.awt.Color _color)
public void draw(java.awt.Graphics g,
int x,
int y)
draw in interface Drawable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||