refact paint class

Signed-off-by: wenpincui <wenpincui224@gmail.com>
new painting view's draw function is ok

Signed-off-by: wenpin.cui <wenpincui224@gmail.com>