commonMain.jetbrains.datalore.plot.builder.BogusScale.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plot-builder-portable-js Show documentation
Show all versions of plot-builder-portable-js Show documentation
The Let-Plot Kotlin API depends on this artifact.
The newest version!
/*
* 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
import jetbrains.datalore.plot.base.Scale
import jetbrains.datalore.plot.base.Transform
import jetbrains.datalore.plot.base.scale.BreaksGenerator
import jetbrains.datalore.plot.base.scale.ScaleBreaks
internal class BogusScale : Scale {
override val name: String
get() = throw IllegalStateException("Bogus scale is not supposed to be used.")
override val labelFormatter: ((Any) -> String)
get() = throw IllegalStateException("Bogus scale is not supposed to be used.")
override val isContinuous: Boolean
get() = throw IllegalStateException("Bogus scale is not supposed to be used.")
override val isContinuousDomain: Boolean
get() = throw IllegalStateException("Bogus scale is not supposed to be used.")
override val multiplicativeExpand: Double
get() = throw IllegalStateException("Bogus scale is not supposed to be used.")
override val additiveExpand: Double
get() = throw IllegalStateException("Bogus scale is not supposed to be used.")
override val transform: Transform
get() = throw IllegalStateException("Bogus scale is not supposed to be used.")
override fun hasBreaks(): Boolean {
throw IllegalStateException("Bogus scale is not supposed to be used.")
}
override fun getScaleBreaks(): ScaleBreaks {
throw IllegalStateException("Bogus scale is not supposed to be used.")
}
override fun getBreaksGenerator(): BreaksGenerator {
throw IllegalStateException("Bogus scale is not supposed to be used.")
}
override fun with(): Scale.Builder {
throw IllegalStateException("Bogus scale is not supposed to be used.")
}
}