Class ShapeProperties.Builder

  • Enclosing class:
    ShapeProperties

    public static class ShapeProperties.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withBorderDashes

        public ShapeProperties.Builder withBorderDashes​(java.lang.String borderDashes)
        Possible values are 'true', 'false' or array with format [dash length, gap length]. Default value is false. The configuration applied to all shapes with border.
      • withBorderRadius

        public ShapeProperties.Builder withBorderRadius​(java.lang.Integer borderRadius)
        Indicates a roundness of corners. Possible only for 'box' shape. Default value is 6.
      • withInterpolation

        public ShapeProperties.Builder withInterpolation​(java.lang.Boolean interpolation)
        Indicates whether image should be resampled when scalled down. Taking into account only for 'image' and 'circularImage' shape. Default value is true.
      • withUseImageSize

        public ShapeProperties.Builder withUseImageSize​(java.lang.Boolean useImageSize)
        When set to true then size of image is used. When false then size option is used. Taking into account only for 'image' and 'circularImage' shape. Default value is false.
      • withUseBorderWithImage

        public ShapeProperties.Builder withUseBorderWithImage​(java.lang.Boolean useBorderWithImage)
        When true then color object is used. aking into account only for 'image' shape. Default value is false.