Package-level declarations
Types
Link copied to clipboard
interface MutableTwoColoredRange<BoundType : Comparable<BoundType>, LengthType : Comparable<LengthType>, ColorType : Enum<ColorType>> : TwoColoredRange<BoundType, LengthType, ColorType>
Mutable TwoColoredRange interface.
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
Color type for RedGreenArrayRange.
Link copied to clipboard
open class RedGreenIntArrayRange @JvmOverloads constructor(range: ClosedRange<Int>, defaultColor: RedGreenColor = RedGreenColor.Red) : RedGreenArrayRange<Int, Int>
RedGreenArrayRange subclass for IntRange.
Link copied to clipboard
open class RedGreenLongArrayRange @JvmOverloads constructor(range: ClosedRange<Long>, defaultColor: RedGreenColor = RedGreenColor.Red) : RedGreenArrayRange<Long, Long>
RedGreenArrayRange subclass for LongRange.
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
open class TwoColoredArrayRangeIterator<BoundType : Comparable<BoundType>, LengthType : Comparable<LengthType>, ColorType : Enum<ColorType>> @JvmOverloads constructor(parent: TwoColoredArrayRange<BoundType, LengthType, ColorType>, limitByRange: ClosedRange<BoundType> = parent.range) : Iterator<Pair<ClosedRange<BoundType>, ColorType>>
TwoColoredArrayRange iterator.
Link copied to clipboard
open class TwoColoredIntArrayRange<ColorType : Enum<ColorType>>(range: ClosedRange<Int>, defaultColor: ColorType, otherColor: ColorType) : TwoColoredArrayRange<Int, Int, ColorType>
Link copied to clipboard
open class TwoColoredLongArrayRange<ColorType : Enum<ColorType>>(range: ClosedRange<Long>, defaultColor: ColorType, otherColor: ColorType) : TwoColoredArrayRange<Long, Long, ColorType>
Link copied to clipboard
interface TwoColoredRange<BoundType : Comparable<BoundType>, LengthType : Comparable<LengthType>, ColorType : Enum<ColorType>> : Iterable<Pair<ClosedRange<BoundType>, ColorType>>
Two colored range - range that is filled completely with subranges of one of two colors. It provides features for painting and requesting subranges.