Package tech.tablesaw.plotly.components
Class Line.LineBuilder
- java.lang.Object
-
- tech.tablesaw.plotly.components.Line.LineBuilder
-
-
Constructor Summary
Constructors Constructor Description LineBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Line
build()
Line.LineBuilder
color(String color)
Sets the line colorLine.LineBuilder
dash(Line.Dash dash)
Line.LineBuilder
shape(Line.Shape shape)
Line.LineBuilder
simplify(boolean b)
Simplifies lines by removing nearly-collinear points.Line.LineBuilder
smoothing(double smoothing)
Sets the smoothing parameterLine.LineBuilder
width(double width)
-
-
-
Method Detail
-
color
public Line.LineBuilder color(String color)
Sets the line color
-
width
public Line.LineBuilder width(double width)
-
smoothing
public Line.LineBuilder smoothing(double smoothing)
Sets the smoothing parameter- Parameters:
smoothing
- a value between 0 and 1.3, inclusive
-
dash
public Line.LineBuilder dash(Line.Dash dash)
-
simplify
public Line.LineBuilder simplify(boolean b)
Simplifies lines by removing nearly-collinear points. When transitioning lines, it may be desirable to disable this so that the number of points along the resulting SVG path is unaffected.- Parameters:
b
- true if you want to simplify. True is the default
-
shape
public Line.LineBuilder shape(Line.Shape shape)
-
build
public Line build()
-
-