Class Line.LineBuilder

  • Enclosing class:
    Line

    public static class Line.LineBuilder
    extends Object
    • Constructor Detail

      • LineBuilder

        public LineBuilder()
    • Method Detail

      • smoothing

        public Line.LineBuilder smoothing​(double smoothing)
        Sets the smoothing parameter
        Parameters:
        smoothing - a value between 0 and 1.3, inclusive
      • 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
      • build

        public Line build()