public class Point extends Shape
Modifier and Type | Field and Description |
---|---|
static char[] |
MARKS
The marks of point.
|
Constructor and Description |
---|
Point(double[][] points,
char mark,
java.awt.Color color)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Point |
of(double[][] points)
Creates a Point with circle mark and black color.
|
static Point |
of(double[][] points,
char mark)
Creates a Point with black color.
|
static Point |
of(double[][] points,
java.awt.Color color)
Creates a Point with circle mark.
|
void |
paint(Graphics g)
Draws the shape.
|
public Point(double[][] points, char mark, java.awt.Color color)
points
- a n-by-2 or n-by-3 matrix that are the coordinates of points.mark
- the mark of points.
color
- the color of points.public static Point of(double[][] points)
public static Point of(double[][] points, java.awt.Color color)
public static Point of(double[][] points, char mark)