return (movie == null) ? 0 : Math.round(movie.getHeight() * scale);
}
@Override
public Dimensions getPreferredSize() {
MovieView movieView = (MovieView)getComponent();
Movie movie = movieView.getMovie();
return (movie == null) ? new Dimensions(0, 0) :
new Dimensions(Math.round(movie.getWidth() * scale),
Math.round(movie.getHeight() * scale));
}