commonMain.jetbrains.datalore.plot.builder.scale.MapperProviderAdapter.kt Maven / Gradle / Ivy
/*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.builder.scale
import jetbrains.datalore.base.gcommon.collect.ClosedRange
import jetbrains.datalore.plot.base.Transform
open class MapperProviderAdapter : MapperProvider {
override fun createDiscreteMapper(domainValues: Collection<*>): GuideMapper {
throw IllegalStateException("Can't create mapper for discrete domain: ${domainValues.map { "'$it'" }
.joinToString(limit = 3)}")
}
override fun createContinuousMapper(
domain: ClosedRange,
lowerLimit: Double?,
upperLimit: Double?,
trans: Transform?
): GuideMapper {
throw IllegalStateException("Can't create mapper for continuous domain $domain")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy