From b54783aa4b0867c848db114865b3b6c584eae0a7 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sat, 28 Jul 2018 11:27:13 +0300 Subject: [PATCH] Added safe overrides for descriptor builder default values --- .../main/kotlin/inr/numass/control/cryotemp/PKT8Display.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/numass-control/cryotemp/src/main/kotlin/inr/numass/control/cryotemp/PKT8Display.kt b/numass-control/cryotemp/src/main/kotlin/inr/numass/control/cryotemp/PKT8Display.kt index 1ef484c1..58eba38b 100644 --- a/numass-control/cryotemp/src/main/kotlin/inr/numass/control/cryotemp/PKT8Display.kt +++ b/numass-control/cryotemp/src/main/kotlin/inr/numass/control/cryotemp/PKT8Display.kt @@ -1,6 +1,5 @@ package inr.numass.control.cryotemp -import hep.dataforge.description.Descriptors import hep.dataforge.fx.asBooleanProperty import hep.dataforge.fx.bindWindow import hep.dataforge.fx.dfIconView @@ -145,8 +144,9 @@ class PKT8Display : DeviceDisplayFX(), PKT8ValueListener { private val plotFrameMeta: Meta = device.meta.getMetaOrEmpty("plotConfig") private val plotFrame: PlotFrame by lazy { - JFreeChartFrame(plotFrameMeta).apply { - plots.descriptor = Descriptors.forJavaType(TimePlot::class.java) + JFreeChartFrame().apply { + configure(plotFrameMeta) + plots.setType() PlotUtils.setXAxis(this, "timestamp", "", "time") } }