StrokeBuilder

Border stroke configurator class.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun build(): BorderStroke

Return border stroke based on current configuration.

Properties

Link copied to clipboard
var bottomStroke: Paint? = null

The fill to use on the bottom. If null, defaults to the same value as bottomStroke.

Link copied to clipboard
var bottomStyle: BorderStrokeStyle? = null

The style to use on the bottom. If null, defaults to the same value as topStyle.

Link copied to clipboard
var insets: Insets? = null

The insets indicating where to draw the border relative to the region edges.

Link copied to clipboard
var leftStroke: Paint? = null

The fill to use on the left. If null, defaults to the same value as rightStroke.

Link copied to clipboard
var leftStyle: BorderStrokeStyle? = null

The style to use on the left. If null, defaults to the same value as rightStyle.

Link copied to clipboard
var radii: CornerRadii? = null

The radii. If null, we default to square corners by using CornerRadii.EMPTY.

Link copied to clipboard
var rightStroke: Paint? = null

The fill to use on the right. If null, defaults to the same value as topStroke.

Link copied to clipboard
var rightStyle: BorderStrokeStyle? = null

The style to use on the right. If null, defaults to the same value as topStyle.

Link copied to clipboard
var stroke: Paint?

The stroke to use for all sides. If null, we default to javafx.scene.paint.Color.BLACK.

Link copied to clipboard
var style: BorderStrokeStyle?

The style to use for all sides. If null, we default to BorderStrokeStyle.NONE.

Link copied to clipboard
var topStroke: Paint? = null

The fill to use on the top. If null, defaults to javafx.scene.paint.Color.BLACK.

Link copied to clipboard
var topStyle: BorderStrokeStyle? = null

The style to use on the top. If null, defaults to BorderStrokeStyle.NONE.

Link copied to clipboard
var widths: BorderWidths? = null

The thickness of each side. If null, we default to BorderWidths.DEFAULT.