public void actionPerformed(ActionEvent e) {
MapViewPane view = frame.getView();
if (e.getSource() == zoomInButton) {
view.zoom(2, view.getWidth() / 2, view.getHeight() / 2);
} else if (e.getSource() == zoomOutButton) {
view.zoom(0.5f, view.getWidth() / 2, view.getHeight() / 2);
} else if (e.getSource() == leftButton) {
view.adjust((int) (0.3 * view.getWidth()), 0);
} else if (e.getSource() == rightButton) {
view.adjust((int) (-0.3 * view.getWidth()), 0);
} else if (e.getSource() == upButton) {