All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.jetbrains.datalore.plot.builder.BogusScale.kt Maven / Gradle / Ivy

There is a newer version: 4.5.3-alpha1
Show 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.base.gcommon.collect.ClosedRange
import jetbrains.datalore.plot.base.Scale
import jetbrains.datalore.plot.base.Transform

internal class BogusScale : Scale {
    override val name: String
        get() = throw IllegalStateException("Bogus scale is not supposed to be used.")

    override val breaks: List
        get() = throw IllegalStateException("Bogus scale is not supposed to be used.")

    override val labels: MutableList
        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 domainLimits: ClosedRange?
        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 val mapper: (Double?) -> Double?
        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 hasLabels(): Boolean {
        throw IllegalStateException("Bogus scale is not supposed to be used.")
    }

    override fun hasDomainLimits(): Boolean {
        throw IllegalStateException("Bogus scale is not supposed to be used.")
    }

    override fun isInDomainLimits(v: Any): Boolean {
        throw IllegalStateException("Bogus scale is not supposed to be used.")
    }

    override fun asNumber(input: Any?): Double {
        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.")
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy