|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpsgraphics.Figure
psgraphics.DrawableLine
Represents a line that can be drawn to the screen. The parameter from describe the starting coordinates and the parameter to describe the ending coordinates.
| Constructor Summary | |
DrawableLine(java.awt.Point from,
java.awt.Point to)
Creates a new DrawableLine and initializes the coordinates which describe it. |
|
| Method Summary | |
void |
draw(java.awt.Graphics g)
Draws the line 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 DrawableLine(java.awt.Point from,
java.awt.Point to)
from - Starting coordinates.to - Ending coordinates.| 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 | |||||||||