public class PathSegment
extends java.lang.Object
Constructor and Description |
---|
PathSegment(java.awt.Color theColor,
int theWidth,
java.awt.geom.Line2D.Float theLine)
Constructor that takes the color, width,
and line
|
Modifier and Type | Method and Description |
---|---|
void |
paintComponent(java.awt.Graphics g)
Method to paint this path segment
|
public PathSegment(java.awt.Color theColor, int theWidth, java.awt.geom.Line2D.Float theLine)
theColor
- the color of the PathSegmenttheWidth
- the width of the PathSegmenttheLine
- the Line2D.Float which represents this PathSegment