smile.plot
Class Line
- java.lang.Object
-
- smile.plot.Shape
-
- smile.plot.Line
-
public class Line extends Shape
This class respesents a poly line in the plot.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classLine.StyleThe supported styles of lines.
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.StrokegetStroke()Returns the line stroke style.voidpaint(Graphics g)Draw the component with given graphics object.LinesetStroke(java.awt.Stroke stroke)Set the line stroke style.
-
-
-
Constructor Detail
-
Line
public Line(double[]... points)
Constructor.
-
Line
public Line(Line.Style style, double[]... points)
Constructor.
-
Line
public Line(Line.Style style, java.awt.Color color, double[]... points)
Constructor.
-
-
Method Detail
-
getStroke
public java.awt.Stroke getStroke()
Returns the line stroke style.
-
setStroke
public Line setStroke(java.awt.Stroke stroke)
Set the line stroke style.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG