PlainBorder

A plain, rectangular border using a single color.

Constructors

Link copied to clipboard
constructor(bindToColor: ObservableColor)
constructor(color: Color)

Properties

Link copied to clipboard
open override var color: Color
Link copied to clipboard
open override val colorProperty: ColorProperty

Functions

Link copied to clipboard
open override fun draw(x: Float, y: Float, width: Float, height: Float, size: Edges)

Draw just the border, not the area within it. However, if implementations wish to draw the inside area too, that's ok.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withColor(color: Color): PlainBorder

Returns a new instance of ColoredBorder with a different color. Other attributes of the border will be copied. e.g. For a RoundedBorder, the radius will be the same.