Class ShapeProperties.Builder
- java.lang.Object
-
- com.hybris.cockpitng.components.visjs.network.data.ShapeProperties.Builder
-
- Enclosing class:
- ShapeProperties
public static class ShapeProperties.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapePropertiesbuild()ShapeProperties.BuilderwithBorderDashes(java.lang.String borderDashes)Possible values are 'true', 'false' or array with format [dash length, gap length].ShapeProperties.BuilderwithBorderRadius(java.lang.Integer borderRadius)Indicates a roundness of corners.ShapeProperties.BuilderwithInterpolation(java.lang.Boolean interpolation)Indicates whether image should be resampled when scalled down.ShapeProperties.BuilderwithUseBorderWithImage(java.lang.Boolean useBorderWithImage)When true then color object is used.ShapeProperties.BuilderwithUseImageSize(java.lang.Boolean useImageSize)When set to true then size of image is used.
-
-
-
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.
-
build
public ShapeProperties build()
-
-