public class Staircase
extends Shape
This class represents a poly line in the plot.
-
Constructor Summary
Constructors
-
Method Summary
Creates a Staircase with solid stroke and black color.
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Staircase
public Staircase(double[][] points,
Color color)
Constructor.
- Parameters:
points
- an n-by-2 or n-by-3 matrix that are the coordinates of points.
color
- the color of points.
-
Method Details
-
paint
Description copied from class: Shape
Draws the shape.
- Specified by:
paint
in class Shape
-
of
public static Staircase of(double[][] points)
Creates a Staircase with solid stroke and black color.