commonMain.jetbrains.datalore.plot.config.StatKind.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plot-config-portable-js Show documentation
Show all versions of plot-config-portable-js Show documentation
The Let-Plot Kotlin API depends on this artifact.
/*
* 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.config
import jetbrains.datalore.base.enums.EnumInfoFactory
enum class StatKind {
IDENTITY,
COUNT,
COUNT2D,
BIN,
BIN2D,
DOTPLOT,
SMOOTH,
CONTOUR,
CONTOURF,
BOXPLOT,
DENSITYRIDGES,
YDENSITY,
YDOTPLOT,
DENSITY,
DENSITY2D,
DENSITY2DF,
QQ,
QQ2,
QQ_LINE,
QQ2_LINE;
companion object {
private val ENUM_INFO = EnumInfoFactory.createEnumInfo()
fun safeValueOf(name: String): StatKind {
return ENUM_INFO.safeValueOf(name) ?: throw IllegalArgumentException("Unknown stat name: '$name'")
}
}
}