forked from NPM/numass-framework
Fix data grid for viewer
This commit is contained in:
parent
cadfc20e54
commit
ac1cddcae7
@ -150,12 +150,10 @@ class JFreeChartFrame : XYPlotFrame(), FXPlotFrame, Serializable {
|
|||||||
return Range(meta.getDouble("lower", java.lang.Double.NEGATIVE_INFINITY), meta.getDouble("upper", java.lang.Double.POSITIVE_INFINITY))
|
return Range(meta.getDouble("lower", java.lang.Double.NEGATIVE_INFINITY), meta.getDouble("upper", java.lang.Double.POSITIVE_INFINITY))
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getAxis(axisMeta: Meta): ValueAxis {
|
private fun getAxis(axisMeta: Meta): ValueAxis = when (axisMeta.getString("type", "number").lowercase()) {
|
||||||
return when (axisMeta.getString("type", "number").lowercase()) {
|
"log" -> getLogAxis(axisMeta)
|
||||||
"log" -> getLogAxis(axisMeta)
|
"time" -> getDateAxis(axisMeta)
|
||||||
"time" -> getDateAxis(axisMeta)
|
else -> getNumberAxis(axisMeta)
|
||||||
else -> getNumberAxis(axisMeta)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun updateAxis(axisName: String, axisMeta: Meta, plotMeta: Meta) {
|
override fun updateAxis(axisName: String, axisMeta: Meta, plotMeta: Meta) {
|
||||||
|
@ -19,7 +19,7 @@ application {
|
|||||||
mainClass.set("inr.numass.viewer.Viewer")
|
mainClass.set("inr.numass.viewer.Viewer")
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "0.6.2"
|
version = "0.6.3"
|
||||||
|
|
||||||
description = "The viewer for numass data"
|
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/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
|
||||||
"--add-opens=javafx.controls/javafx.scene.control.skin=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.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 {
|
application {
|
||||||
|
Loading…
Reference in New Issue
Block a user