Added safe overrides for descriptor builder default values
This commit is contained in:
parent
f283146fd9
commit
b54783aa4b
@ -1,6 +1,5 @@
|
|||||||
package inr.numass.control.cryotemp
|
package inr.numass.control.cryotemp
|
||||||
|
|
||||||
import hep.dataforge.description.Descriptors
|
|
||||||
import hep.dataforge.fx.asBooleanProperty
|
import hep.dataforge.fx.asBooleanProperty
|
||||||
import hep.dataforge.fx.bindWindow
|
import hep.dataforge.fx.bindWindow
|
||||||
import hep.dataforge.fx.dfIconView
|
import hep.dataforge.fx.dfIconView
|
||||||
@ -145,8 +144,9 @@ class PKT8Display : DeviceDisplayFX<PKT8Device>(), PKT8ValueListener {
|
|||||||
private val plotFrameMeta: Meta = device.meta.getMetaOrEmpty("plotConfig")
|
private val plotFrameMeta: Meta = device.meta.getMetaOrEmpty("plotConfig")
|
||||||
|
|
||||||
private val plotFrame: PlotFrame by lazy {
|
private val plotFrame: PlotFrame by lazy {
|
||||||
JFreeChartFrame(plotFrameMeta).apply {
|
JFreeChartFrame().apply {
|
||||||
plots.descriptor = Descriptors.forJavaType(TimePlot::class.java)
|
configure(plotFrameMeta)
|
||||||
|
plots.setType<TimePlot>()
|
||||||
PlotUtils.setXAxis(this, "timestamp", "", "time")
|
PlotUtils.setXAxis(this, "timestamp", "", "time")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user