This would be nearly impossible because each run of the program uses
NULINES*4 pseudo-random values.
Line
Here are the Line constructors.
See the Oracle documentation for details.
Line() Line(double startX, double startY, double endX, double endY)
Here are some of the Line methods.
You can construct a Line object
with one of the constructors, and then later on adjust its size, color, and location.
double getEndX()
void setEndX()
double getStartX()
void setStartX()
double getEndY
void setEndY
double getStartY()
void setStartY()
Here are some useful methods inherited from Shape:
public final void setStroke(Paint value)
Set the color for the stroke. The default value is Color.BLACK
public final Paint getStroke()
Get the color of the stroke
public final void setStrokeWidth(double value)
Set the width of the stroke, in pixels
public final Paint getStrokeWidth()
Gets the width of the stroke, in pixels
Say that the Scene has a width of sceneWidth and a height of sceneHeight.
Fill in the blanks to create a Line object
that connects the lower left corner of the Scene to the upper right corner.
new Line( , , , )