|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jpemartin.jgt.DrawText
public class DrawText
Draw the given text with the given color. Typically you'd only use the ctor and the draw(g,x,y) methods.
| Constructor Summary | |
|---|---|
DrawText(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 |
void |
draw(java.awt.Graphics g,
int x,
int y,
java.awt.Color colorOverride)
draw the text at the given position, using the default font, but with a different color |
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 DrawText(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
public void draw(java.awt.Graphics g,
int x,
int y,
java.awt.Color colorOverride)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||