void (String name, String dimensions, double width, double height) { PageSize pageSize = new PageSize(); pageSize.name = name; pageSize.visualName = name + " (" + dimensions + ")"; pageSize.width = width; pageSize.height = height; myPageSizes.add(pageSize); myNamesToPageSizes.put(pageSize.name, pageSize); }