public class Label extends Shape
| Constructor and Description |
|---|
Label(java.lang.String text,
double[] coordinates,
double horizontalReference,
double verticalReference,
double rotation,
java.awt.Font font,
java.awt.Color color)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Label |
of(double... coordinates)
Creates a black label with coordinates as text.
|
static Label |
of(java.lang.String text,
double[] coordinates)
Creates a black label centered at the coordinates.
|
static Label |
of(java.lang.String text,
double[] coordinates,
double horizontalReference,
double verticalReference,
double rotation)
Creates a black label with system default font.
|
void |
paint(Graphics g)
Draws the shape.
|
public Label(java.lang.String text,
double[] coordinates,
double horizontalReference,
double verticalReference,
double rotation,
java.awt.Font font,
java.awt.Color color)
public static Label of(java.lang.String text, double[] coordinates)
public static Label of(double... coordinates)
public static Label of(java.lang.String text, double[] coordinates, double horizontalReference, double verticalReference, double rotation)