Package-level declarations

Types

Link copied to clipboard
open class RedGreenArrayRange<BoundType : Comparable<BoundType>, LengthType : Comparable<LengthType>> @JvmOverloads constructor(range: ClosedRange<BoundType>, step: LengthType, math: BoundMath<BoundType, LengthType>, defaultColor: RedGreenColor = RedGreenColor.Red, rangeFactory: RangeFactory<BoundType> = ClosedRangeFactory()) : TwoColoredArrayRange<BoundType, LengthType, RedGreenColor>

Subclass of TwoColoredArrayRange using RedGreenColor and RedGreenColor.Red as default color by default.

Link copied to clipboard
Link copied to clipboard
open class RedGreenIntArrayRange @JvmOverloads constructor(range: ClosedRange<Int>, defaultColor: RedGreenColor = RedGreenColor.Red) : RedGreenArrayRange<Int, Int>
Link copied to clipboard
open class RedGreenLongArrayRange @JvmOverloads constructor(range: ClosedRange<Long>, defaultColor: RedGreenColor = RedGreenColor.Red) : RedGreenArrayRange<Long, Long>
Link copied to clipboard
open class TwoColoredArrayRange<BoundType : Comparable<BoundType>, LengthType : Comparable<LengthType>, ColorType : Enum<ColorType>> @JvmOverloads constructor(val range: ClosedRange<BoundType>, val step: LengthType, val math: BoundMath<BoundType, LengthType>, val defaultColor: ColorType, val otherColor: ColorType, val rangeFactory: RangeFactory<BoundType> = ClosedRangeFactory()) : MutableTwoColoredRange<BoundType, LengthType, ColorType>

TwoColoredRange implementation using ArrayList. It keeps list of subranges painted with defaultColor and calculates subranges of otherColor when required so requests related to defaultColor are more efficient than ones related to otherColor.

Link copied to clipboard

Two colored range - range that is filled completely with subranges of one of two colors. It provides features for painting and requesting subranges.