intellij-randomness / com.fwdekker.randomness.ui / JSpinnerRange

JSpinnerRange

class JSpinnerRange

A container for two JSpinners that indicate a range of values.

Parameters

min - the JSpinner that represents the minimum value

max - the JSpinner that represents the maximum value

maxRange - the maximum difference between min and max

Constructors

<init>

JSpinnerRange(min: JSpinner, max: JSpinner, maxRange: Double = DEFAULT_MAX_RANGE)

A container for two JSpinners that indicate a range of values.

Properties

maxValue

val maxValue: Double

The current maximum value of the range.

minValue

val minValue: Double

The current minimum value of the range.

Functions

validateValue

fun validateValue(): ValidationInfo?

Validates this range.