From fbd5fc50e613fe9385c140998321f23cd807f90f Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Tue, 10 Jul 2018 13:57:26 +0300 Subject: [PATCH] minor code fix --- .../src/main/kotlin/inr/numass/viewer/AmplitudeView.kt | 2 +- numass-viewer/src/main/kotlin/inr/numass/viewer/HVView.kt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/numass-viewer/src/main/kotlin/inr/numass/viewer/AmplitudeView.kt b/numass-viewer/src/main/kotlin/inr/numass/viewer/AmplitudeView.kt index ac23e70f..21a3db7e 100644 --- a/numass-viewer/src/main/kotlin/inr/numass/viewer/AmplitudeView.kt +++ b/numass-viewer/src/main/kotlin/inr/numass/viewer/AmplitudeView.kt @@ -47,7 +47,7 @@ class AmplitudeView : View(title = "Numass amplitude spectrum plot", icon = Imag "showLine" to true "showSymbol" to false "showErrors" to false - }.setType(DataPlot::class) + }.setType() } val binningProperty = SimpleObjectProperty(20) diff --git a/numass-viewer/src/main/kotlin/inr/numass/viewer/HVView.kt b/numass-viewer/src/main/kotlin/inr/numass/viewer/HVView.kt index 681395d4..0735e2ac 100644 --- a/numass-viewer/src/main/kotlin/inr/numass/viewer/HVView.kt +++ b/numass-viewer/src/main/kotlin/inr/numass/viewer/HVView.kt @@ -34,7 +34,7 @@ class HVView : View(title = "High voltage time plot", icon = ImageView(dfIcon)) "showSymbol" to false "showErrors" to false } - plots.setType(DataPlot::class) + plots.setType() } private val container = PlotContainer(frame); @@ -58,7 +58,8 @@ class HVView : View(title = "High voltage time plot", icon = ImageView(dfIcon)) } ui { hvData -> hvData?.let { for (dp in it) { - val plot: TimePlot = frame[change.key] as TimePlot? ?: TimePlot(change.key).apply { frame.add(this) } + val plot: TimePlot = frame[change.key] as TimePlot? + ?: TimePlot(change.key).apply { frame.add(this) } plot.put(dp.getValue("timestamp").time, dp.getValue("value")) } }