Class ScaleMapAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ObjectWithId, Option<FreeColAction>

    public class ScaleMapAction
    extends FreeColAction
    An action for scaling a map. This action is a part of the map editor.
    See Also:
    Serialized Form
    • Constructor Detail

      • ScaleMapAction

        public ScaleMapAction​(FreeColClient freeColClient)
        Creates a new ScaleMapAction.
        Parameters:
        freeColClient - The FreeColClient for the game.
    • Method Detail

      • scaleMapTo

        private void scaleMapTo​(int width,
                                int height)
        Scales the current map into the specified size. The current map is given by freeColClient.getGame().getMap().
        Parameters:
        width - The width of the resulting map.
        height - The height of the resulting map.
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent ae)