Constructor and Description |
---|
LineBuilder() |
Modifier and Type | Method and Description |
---|---|
Line |
build() |
Line.LineBuilder |
color(String color)
Sets the line color
|
Line.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 parameter
|
Line.LineBuilder |
width(double width) |
public Line.LineBuilder color(String color)
public Line.LineBuilder width(double width)
public Line.LineBuilder smoothing(double smoothing)
smoothing
- a value between 0 and 1.3, inclusivepublic Line.LineBuilder dash(Line.Dash dash)
public Line.LineBuilder simplify(boolean b)
b
- true if you want to simplify. True is the defaultpublic Line.LineBuilder shape(Line.Shape shape)
public Line build()
Copyright © 2019. All rights reserved.