实现实时绘图方法，KLineView and ContainerView