public class TextPlot extends Plot
Modifier and Type | Method and Description |
---|---|
double[] |
getLowerBound()
Returns the lower bound of data.
|
double[] |
getUpperBound()
Returns the upper bound of data.
|
static TextPlot |
of(java.lang.String[] texts,
double[][] coordinates)
Create a text plot.
|
void |
paint(Graphics g)
Draws the shape.
|
public TextPlot(Label... texts)
public double[] getLowerBound()
Plot
getLowerBound
in class Plot
public double[] getUpperBound()
Plot
getUpperBound
in class Plot
public static TextPlot of(java.lang.String[] texts, double[][] coordinates)
texts
- the texts.coordinates
- a n-by-2 or n-by-3 matrix that are the coordinates of texts.