Class Smooth.Builder

  • Enclosing class:
    Smooth

    public static class Smooth.Builder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Smooth build()  
      Smooth.Builder withEnabled​(java.lang.Boolean enabled)
      Enables quadratic bezier curves.
      Smooth.Builder withForceDirection​(java.lang.String forceDirection)
      Possible values are "horizontal", "vertical", "none".
      Smooth.Builder withRoundness​(java.lang.Double roundness)
      Accepted range is [0..1].
      Smooth.Builder withType​(java.lang.String type)
      Possible types are "dynamic", "continuous", "discrete", "diagonalCross", "straightCross", "horizontal", "vertical", "curvedCW", "curvedCCW", "cubicBezier".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withEnabled

        public Smooth.Builder withEnabled​(java.lang.Boolean enabled)
        Enables quadratic bezier curves. Default value is true.
      • withType

        public Smooth.Builder withType​(java.lang.String type)
        Possible types are "dynamic", "continuous", "discrete", "diagonalCross", "straightCross", "horizontal", "vertical", "curvedCW", "curvedCCW", "cubicBezier". Default value is "dynamic"
      • withForceDirection

        public Smooth.Builder withForceDirection​(java.lang.String forceDirection)
        Possible values are "horizontal", "vertical", "none". The options are taken into account only when type is set to cubicBezier.
      • withRoundness

        public Smooth.Builder withRoundness​(java.lang.Double roundness)
        Accepted range is [0..1]. Default value is 0.5
      • build

        public Smooth build()