Fix data grid for viewer

This commit is contained in:
Alexander Nozik 2021-12-16 18:17:07 +03:00
parent cadfc20e54
commit ac1cddcae7
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
2 changed files with 9 additions and 7 deletions

View File

@ -150,13 +150,11 @@ class JFreeChartFrame : XYPlotFrame(), FXPlotFrame, Serializable {
return Range(meta.getDouble("lower", java.lang.Double.NEGATIVE_INFINITY), meta.getDouble("upper", java.lang.Double.POSITIVE_INFINITY))
}
private fun getAxis(axisMeta: Meta): ValueAxis {
return when (axisMeta.getString("type", "number").lowercase()) {
private fun getAxis(axisMeta: Meta): ValueAxis = when (axisMeta.getString("type", "number").lowercase()) {
"log" -> getLogAxis(axisMeta)
"time" -> getDateAxis(axisMeta)
else -> getNumberAxis(axisMeta)
}
}
override fun updateAxis(axisName: String, axisMeta: Meta, plotMeta: Meta) {
val axis = getAxis(axisMeta)

View File

@ -19,7 +19,7 @@ application {
mainClass.set("inr.numass.viewer.Viewer")
}
version = "0.6.2"
version = "0.6.3"
description = "The viewer for numass data"
@ -40,6 +40,10 @@ val addJvmArgs = listOf(
"--add-opens=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
"--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED",
"--add-exports=javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED",
"--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
"--add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED",
"--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED",
"--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED"
)
application {