public class Model extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<LineSegment> |
lineSegmentList |
Constructor and Description |
---|
Model()
Construct an empty model.
|
Modifier and Type | Method and Description |
---|---|
void |
addLineSegment(LineSegment... lsArray)
Add a LineSegment (or LineSegments) to this model's list of line segments.
|
void |
setColor(java.awt.Color c)
Set all the line segments in this model to the same color.
|
void |
setColorRandom()
Set all the line segments in this model to the same random color.
|
void |
setRandomColors()
Set all the line segments in this model to random colors.
|
java.lang.String |
toString()
For debugging.
|
public java.util.List<LineSegment> lineSegmentList
public Model()
public void addLineSegment(LineSegment... lsArray)
lsArray
- array of LineSegments to add to this Modelpublic void setColor(java.awt.Color c)
c
- Color for all of this model's LineSegmentspublic void setColorRandom()
public void setRandomColors()
public java.lang.String toString()
toString
in class java.lang.Object