Package smile.plot.swing
Class Label
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Label
Label is a single line text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Labelof(double... coordinates) Creates a black label with coordinates as text.static LabelCreates a black label centered at the coordinates.static Labelof(String text, double[] coordinates, double horizontalReference, double verticalReference, double rotation) Creates a black label with system default font.voidDraws the shape.
-
Constructor Details
-
Method Details
-
paint
Description copied from class:ShapeDraws the shape. -
of
Creates a black label centered at the coordinates. -
of
Creates a black label with coordinates as text. -
of
public static Label of(String text, double[] coordinates, double horizontalReference, double verticalReference, double rotation) Creates a black label with system default font.
-