public TileCutter getCutter(int w, int h, int spacing, int margin) {
final String selectedItem = (String) cutterBox.getSelectedItem();
if (selectedItem.equalsIgnoreCase("basic")) {
return new BasicTileCutter(w, h, spacing, margin);
} else if (selectedItem.equalsIgnoreCase("border")) {
return new BorderTileCutter();
}
return null;
}