I don't really understand how to divide a class for the model and the view.
Let's say I have a class Cat which has some parameters like color, age, position on the map and some other stuff. I thought that the best way to create a custom painting is to override a paintComponent method. However the Cat class should be in the model and it shouldn't know anything about the way it is rendered in view.
So how to paint the cat? Let's say it is represented by an array of images and the model has variable direction which can contain an int from 0 to 3 which is related to pictures in array. What a view should do to draw a cat? Should it just have somewhere inside:
drawImage(model.getCat().getArray( model.getCat().getFrame() )) ?