/* * RotateScaleMoveSelectionTool.java * * Created on May 31, 2006, 11:15 AM * */ package ika.map.tools; import ika.gui.MapComponent; /** * A tool to select objects (by clicking or by rectangular dragging), to move, * scale and rotate objects. * @author Bernhard Jenny, Institute of Cartography, ETH Zurich. */ public class ScaleMoveSelectionTool extends CombinedTool { /** * Creates a new instance of RotateScaleMoveSelectionTool */ public ScaleMoveSelectionTool(MapComponent mapComponent) { super(mapComponent, "Select - Move - Scale"); SelectionTool selectionTool = new SelectionTool(this.mapComponent); MoverTool moveTool = new MoverTool(this.mapComponent); moveTool.setSelectOnDragStart(true); ScaleTool scaleTool = new ScaleTool(this.mapComponent); this.addMapTool(scaleTool); this.addMapTool(moveTool); // selection tool must be added last this.addMapTool(selectionTool); } }