use of tools.image.TileImageReconstructor in project triplea by triplea-game.
the class MapCreator method createPart4Panel.
private void createPart4Panel() {
panel4.removeAll();
panel4.setLayout(new BoxLayout(panel4, BoxLayout.PAGE_AXIS));
panel4.add(Box.createVerticalStrut(30));
panel4.add(new JLabel("Other or Optional Utilities:"));
panel4.add(Box.createVerticalStrut(30));
final JButton reliefBreakerButton = new JButton("Run the Relief Image Breaker");
reliefBreakerButton.addActionListener(SwingAction.of("Run the Relief Image Breaker", e -> runUtility(ReliefImageBreaker::run)));
panel4.add(reliefBreakerButton);
panel4.add(Box.createVerticalStrut(30));
final JButton imageShrinkerButton = new JButton("Run the Image Shrinker");
imageShrinkerButton.addActionListener(SwingAction.of("Run the Image Shrinker", e -> runUtility(ImageShrinker::run)));
panel4.add(imageShrinkerButton);
panel4.add(Box.createVerticalStrut(30));
final JButton tileImageReconstructorButton = new JButton("Run the Tile Image Reconstructor");
tileImageReconstructorButton.addActionListener(SwingAction.of("Run the Tile Image Reconstructor", e -> runUtility(TileImageReconstructor::run)));
panel4.add(tileImageReconstructorButton);
panel4.add(Box.createVerticalStrut(30));
panel4.validate();
}
Aggregations