protected DefaultEntityRenderer createDayRenderer() {
return new DefaultEntityRenderer();
}
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) {
view.adjust(0, (int) (0.3 * view.getHeight()));
} else if (e.getSource() == downButton) {
view.adjust(0, (int) (-0.3 * view.getHeight()));
} else if (e.getSource() == nightButton) {
if (nightButton.isSelected()) {
EntityClassifier<EntityViewInfo> eClassifier =
new MapStyleFactory().createNightViewClassifier();
frame.getView().getRenderer().setBackgroundColor(Color.BLACK);