g.fillRect(0, 0, getWidth(), getHeight());
Utilities.drawCheckerPattern(g.create(0, 0, getViewWidth(), getViewHeight()),checkerSize);
g.drawImage(image,0,0, image.getWidth()*zoom, image.getHeight()*zoom,0,0,image.getWidth(),image.getHeight(),null);
for(Object selected: editorFrame.animationManager.getSelectedObjects()) {
if(selected instanceof Animation) {
Animation animation = (Animation) selected;
for(Frame frame: animation.getFrames()) {
paintFrame(g, frame);
}
}
if (selected instanceof Frame) {
Frame frame = (Frame) selected;