public class StaircasePlot extends Plot
Constructor and Description |
---|
StaircasePlot(Staircase... lines)
Constructor.
|
StaircasePlot(Staircase[] lines,
Legend[] legends)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Canvas |
canvas()
Returns a canvas of the plot.
|
double[] |
getLowerBound()
Returns the lower bound of data.
|
double[] |
getUpperBound()
Returns the upper bound of data.
|
static StaircasePlot |
of(double[][] data)
Creates a line plot.
|
static StaircasePlot |
of(double[][] data,
java.awt.Color color,
java.lang.String label)
Creates a line plot.
|
void |
paint(Graphics g)
Draws the shape.
|
public StaircasePlot(Staircase... lines)
public double[] getLowerBound()
Plot
getLowerBound
in class Plot
public double[] getUpperBound()
Plot
getUpperBound
in class Plot
public static StaircasePlot of(double[][] data)
public static StaircasePlot of(double[][] data, java.awt.Color color, java.lang.String label)