Class PathSegment
java.lang.Object
PathSegment
This class represents a displayable path segment
it has a color, width, and a Line2D object
Copyright Georgia Institute of Technology 2005
-
Constructor Summary
ConstructorsConstructorDescriptionPathSegment
(Color theColor, int theWidth, Line2D.Float theLine) Constructor that takes the color, width, and line -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method to paint this path segment
-
Constructor Details
-
PathSegment
Constructor that takes the color, width, and line
-
-
Method Details
-
paintComponent
Method to paint this path segment- Parameters:
g
- the graphics context
-