public class Line extends Shape
Modifier and Type | Class and Description |
---|---|
static class |
Line.Style
The supported styles of lines.
|
Constructor and Description |
---|
Line(double[]... points)
Constructor.
|
Line(Line.Style style,
java.awt.Color color,
double[]... points)
Constructor.
|
Line(Line.Style style,
double[]... points)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Stroke |
getStroke()
Returns the line stroke style.
|
void |
paint(Graphics g)
Draw the component with given graphics object.
|
Line |
setStroke(java.awt.Stroke stroke)
Set the line stroke style.
|
public Line(double[]... points)
public Line(Line.Style style, double[]... points)
public Line(Line.Style style, java.awt.Color color, double[]... points)
public java.awt.Stroke getStroke()
public Line setStroke(java.awt.Stroke stroke)