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 Linebuild()Line.LineBuildercolor(String color)Sets the line colorLine.LineBuilderdash(Line.Dash dash)Line.LineBuildershape(Line.Shape shape)Line.LineBuildersimplify(boolean b)Simplifies lines by removing nearly-collinear points.Line.LineBuildersmoothing(double smoothing)Sets the smoothing parameterLine.LineBuilderwidth(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()
-
-