egslava
04/09/2016, 12:13 PMval commands: List<PlotView.Command> = texture_view.commands
commands.forEach { when (it){
is PlotView.Command.Clear -> plot.clear()
is PlotView.Command.AddPoints -> plot.addPoints(it.x, it.y)
is PlotView.Command.AddPoint -> plot.addPoint(it.x, it.y)
}}