Search in sources :

Example 1 with TileImageReconstructor

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();
}
Also used : FocusListener(java.awt.event.FocusListener) JTextField(javax.swing.JTextField) ReliefImageBreaker(tools.image.ReliefImageBreaker) LookAndFeel(games.strategy.engine.framework.lookandfeel.LookAndFeel) Action(javax.swing.Action) PolygonGrabber(tools.image.PolygonGrabber) JMenuItem(javax.swing.JMenuItem) DecorationPlacer(tools.image.DecorationPlacer) TileImageBreaker(tools.image.TileImageBreaker) BorderLayout(java.awt.BorderLayout) JFrame(javax.swing.JFrame) ClientSetting(games.strategy.triplea.settings.ClientSetting) BoxLayout(javax.swing.BoxLayout) JMenuBar(javax.swing.JMenuBar) TileImageReconstructor(tools.image.TileImageReconstructor) JButton(javax.swing.JButton) CenterPicker(tools.image.CenterPicker) UnitImageFactory(games.strategy.triplea.image.UnitImageFactory) JMenu(javax.swing.JMenu) Component(java.awt.Component) File(java.io.File) FileSave(tools.image.FileSave) Box(javax.swing.Box) Consumer(java.util.function.Consumer) JScrollPane(javax.swing.JScrollPane) AutoPlacementFinder(tools.image.AutoPlacementFinder) Dimension(java.awt.Dimension) ToolArguments(tools.util.ToolArguments) OpenFileUtility(games.strategy.net.OpenFileUtility) FocusEvent(java.awt.event.FocusEvent) JLabel(javax.swing.JLabel) UrlConstants(games.strategy.triplea.UrlConstants) JTextArea(javax.swing.JTextArea) JPanel(javax.swing.JPanel) WindowConstants(javax.swing.WindowConstants) SwingAction(games.strategy.ui.SwingAction) TileImageReconstructor(tools.image.TileImageReconstructor) BoxLayout(javax.swing.BoxLayout) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) ReliefImageBreaker(tools.image.ReliefImageBreaker)

Aggregations

LookAndFeel (games.strategy.engine.framework.lookandfeel.LookAndFeel)1 OpenFileUtility (games.strategy.net.OpenFileUtility)1 UrlConstants (games.strategy.triplea.UrlConstants)1 UnitImageFactory (games.strategy.triplea.image.UnitImageFactory)1 ClientSetting (games.strategy.triplea.settings.ClientSetting)1 SwingAction (games.strategy.ui.SwingAction)1 BorderLayout (java.awt.BorderLayout)1 Component (java.awt.Component)1 Dimension (java.awt.Dimension)1 FocusEvent (java.awt.event.FocusEvent)1 FocusListener (java.awt.event.FocusListener)1 File (java.io.File)1 Consumer (java.util.function.Consumer)1 Action (javax.swing.Action)1 Box (javax.swing.Box)1 BoxLayout (javax.swing.BoxLayout)1 JButton (javax.swing.JButton)1 JFrame (javax.swing.JFrame)1 JLabel (javax.swing.JLabel)1 JMenu (javax.swing.JMenu)1