|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpsgraphics.Figure
psgraphics.DrawableString
Represents a string that can be drawn to the screen. The parameters x, y describe the location coordinates on the drawing area.
| Constructor Summary | |
DrawableString(java.awt.Point position,
java.lang.String str)
Creates a new DrawableString and initializes the coordinates which describe it and the string that will be shown. |
|
| Method Summary | |
void |
draw(java.awt.Graphics g)
Draws the string on the drawing area of the postscript interpreter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DrawableString(java.awt.Point position,
java.lang.String str)
position - The position coordinates.str - The string that need to be shown.| Method Detail |
public void draw(java.awt.Graphics g)
draw in class Figureg - The same Graphics parameter passed to the paint method of the drawing area.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||