BasicRadioBehavior

class BasicRadioBehavior(textMetrics: TextMetrics, foregroundColor: Color = Black, backgroundColor: Color = Lightgray, darkBackgroundColor: Color = backgroundColor.darker(), iconTextSpacing: Double = 8.0, iconInset: Double = 1.0, innerCircleInset: (RadioButton) -> Double = { 4.0 }, iconSize: (RadioButton) -> Size = { Size(maxOf(0.0, minOf(16.0, it.height - 2 * iconInset, it.width - 2 * iconInset))) }, hoverColorMapper: ColorMapper = { it.darker(0.1f) }, disabledColorMapper: ColorMapper = { it.lighter() }, focusManager: FocusManager? = null) : CheckRadioButtonBehavior<RadioButton> (source)

Constructors

Link copied to clipboard
constructor(textMetrics: TextMetrics, foregroundColor: Color = Black, backgroundColor: Color = Lightgray, darkBackgroundColor: Color = backgroundColor.darker(), iconTextSpacing: Double = 8.0, iconInset: Double = 1.0, innerCircleInset: (RadioButton) -> Double = { 4.0 }, iconSize: (RadioButton) -> Size = { Size(maxOf(0.0, minOf(16.0, it.height - 2 * iconInset, it.width - 2 * iconInset))) }, hoverColorMapper: ColorMapper = { it.darker(0.1f) }, disabledColorMapper: ColorMapper = { it.lighter() }, focusManager: FocusManager? = null)

Inherited properties

Link copied to clipboard
protected val insets: Insets
Link copied to clipboard
protected open val selectionChanged: (Button, Boolean, Boolean) -> Unit
Link copied to clipboard
protected open val textChanged: (Button, String, String) -> Unit

Inherited functions

Link copied to clipboard
Link copied to clipboard
open fun clicked(event: PointerEvent)
Link copied to clipboard
Link copied to clipboard
open fun contains(view: RadioButton, point: Point): Boolean
Link copied to clipboard
open override fun dragged(event: PointerEvent)
Link copied to clipboard
protected open fun enabledChanged(button: RadioButton)
Link copied to clipboard
open override fun entered(event: PointerEvent)
Link copied to clipboard
open override fun exited(event: PointerEvent)
Link copied to clipboard
fun font(button: Button): Font?
Link copied to clipboard
protected fun icon(button: Button): Icon<Button>?
Link copied to clipboard
fun iconPosition(button: Button, text: String, icon: Icon<Button>, stringPosition: Point, bounds: Rectangle): Point
fun iconPosition(button: Button, text: String, icon: Icon<Button>, textSpacing: TextSpacing, stringPosition: Point, bounds: Rectangle): Point
Link copied to clipboard
open override fun install(view: RadioButton)
Link copied to clipboard
Link copied to clipboard
open fun moved(event: PointerEvent)
Link copied to clipboard
protected open fun pointerChanged(button: RadioButton)
Link copied to clipboard
open override fun pressed(event: KeyEvent)
open override fun pressed(event: PointerEvent)
Link copied to clipboard
open override fun released(event: KeyEvent)
open override fun released(event: PointerEvent)
Link copied to clipboard
open override fun render(view: RadioButton, canvas: Canvas)
Link copied to clipboard
protected open fun stylesChanged(button: RadioButton)
Link copied to clipboard
fun textPosition(button: Button, text: String, icon: Icon<Button>?, bounds: Rectangle, textSpacing: TextSpacing): Point
Link copied to clipboard
open override fun uninstall(view: RadioButton)