View Javadoc
1   /*
2    * Copyright (c) 2005, The JUNG Authors
3    * All rights reserved.
4    *
5    * This software is open-source under the BSD license; see either "license.txt"
6    * or https://github.com/jrtom/jung/blob/master/LICENSE for a description.
7    *
8    * Created on Aug 26, 2005
9    */
10  
11  package edu.uci.ics.jung.visualization.control;
12  
13  import java.awt.event.InputEvent;
14  /**
15   * 
16   * @author Tom Nelson 
17   *
18   */
19  @SuppressWarnings("rawtypes")
20  public class ModalSatelliteGraphMouse extends DefaultModalGraphMouse implements
21          ModalGraphMouse {
22  
23      public ModalSatelliteGraphMouse() {
24          this(1.1f, 1/1.1f);
25      }
26  
27      public ModalSatelliteGraphMouse(float in, float out) {
28          super(in, out);
29      }
30      
31  	protected void loadPlugins() {
32          pickingPlugin = new PickingGraphMousePlugin();
33          animatedPickingPlugin = new SatelliteAnimatedPickingGraphMousePlugin();
34          translatingPlugin = new SatelliteTranslatingGraphMousePlugin(InputEvent.BUTTON1_MASK);
35          scalingPlugin = new SatelliteScalingGraphMousePlugin(new CrossoverScalingControl(), 0);
36          rotatingPlugin = new SatelliteRotatingGraphMousePlugin();
37          shearingPlugin = new SatelliteShearingGraphMousePlugin();
38          
39          add(scalingPlugin);
40          
41          setMode(Mode.TRANSFORMING);
42      }
43  }