Package edu.uci.ics.jung.visualization.control

Examples of edu.uci.ics.jung.visualization.control.ScalingGraphMousePlugin


     */
    @Override
    protected void loadPlugins() {
        pickingPlugin = new NexsmPickingGraphMousePlugin();
        translatingPlugin = new TranslatingGraphMousePlugin(InputEvent.BUTTON1_MASK);
        scalingPlugin = new ScalingGraphMousePlugin(new CrossoverScalingControl(), 0, in, out);
//        rotatingPlugin = new RotatingGraphMousePlugin();
//        shearingPlugin = new ShearingGraphMousePlugin();
//        editingPlugin = new EditingGraphMousePlugin();
        infographplugin = new NexsmInfoGraphMousePlugin();
        labelerEditingPlugin = new NexsmLabelerGraphMousePlugin();
View Full Code Here


        // Create the custom mouse plugins to control the visualisation  with the mouse
        PluggableGraphMouse gm = new PluggableGraphMouse();
        gm.add(new TranslatingGraphMousePlugin(MouseEvent.BUTTON3_MASK));
        gm.add(new PickingGraphMousePlugin<Object, Object>());
        gm.add(new ScalingGraphMousePlugin(new CrossoverScalingControl(), 0, 0.9f, 1.1f));
        vv.setGraphMouse(gm);
        vv.addMouseListener(this);

        // translate the layout panel down and across so that it is not hard up
        // against the side of the splitPane box.
View Full Code Here

  @Override
    protected void loadPlugins() {
    this.pickingPlugin = new PickingGraphMousePlugin<V,E>();
    this.animatedPickingPlugin = new AnimatedPickingGraphMousePlugin<V,E>();
    this.translatingPlugin = new TranslatingGraphMousePlugin(InputEvent.BUTTON1_MASK);
    this.scalingPlugin = new ScalingGraphMousePlugin(new CrossoverScalingControl(), 0, in, out);
    this.rotatingPlugin = new RotatingGraphMousePlugin();
    this.shearingPlugin = new ShearingGraphMousePlugin();
    add(scalingPlugin);
    setMode(Mode.TRANSFORMING);
  }
View Full Code Here

        DefaultModalGraphMouse gm1 = new DefaultModalGraphMouse() {
            protected void loadPlugins() {
                pickingPlugin = new PickingGraphMousePlugin();
                animatedPickingPlugin = new AnimatedPickingGraphMousePlugin();
                translatingPlugin = new TranslatingGraphMousePlugin(InputEvent.BUTTON1_MASK);
                scalingPlugin = new ScalingGraphMousePlugin(new LayoutScalingControl(), 0);
                rotatingPlugin = new RotatingGraphMousePlugin();
                shearingPlugin = new ShearingGraphMousePlugin();

                add(scalingPlugin);
                setMode(Mode.TRANSFORMING);
            }
        };

        DefaultModalGraphMouse gm2 = new DefaultModalGraphMouse() {
            protected void loadPlugins() {
                pickingPlugin = new PickingGraphMousePlugin();
                animatedPickingPlugin = new AnimatedPickingGraphMousePlugin();
                translatingPlugin = new TranslatingGraphMousePlugin(InputEvent.BUTTON1_MASK);
                scalingPlugin = new ScalingGraphMousePlugin(new ViewScalingControl(), 0);
                rotatingPlugin = new RotatingGraphMousePlugin();
                shearingPlugin = new ShearingGraphMousePlugin();

                add(scalingPlugin);
                setMode(Mode.TRANSFORMING);
View Full Code Here

  @Override
    protected void loadPlugins() {
    pickingPlugin = new PickingGraphMousePlugin<Device,Connection>();
    animatedPickingPlugin = new AnimatedPickingGraphMousePlugin<Device,Connection>();
    translatingPlugin = new TranslatingGraphMousePlugin(InputEvent.BUTTON1_MASK);
    scalingPlugin = new ScalingGraphMousePlugin(new CrossoverScalingControl(), 0, in, out);
    rotatingPlugin = new RotatingGraphMousePlugin();
    shearingPlugin = new ShearingGraphMousePlugin();
    editingPlugin = new EditGraphMousePlugin(owner, vertexFactory, edgeFactory);
    //labelEditingPlugin = new LabelEditingGraphMousePlugin<Device,Connection>();
    annotatingPlugin = new AnnotatingGraphMousePlugin<Device,Connection>(rc);
View Full Code Here

  @Override
  protected void loadPlugins() {
    pickingPlugin = new PickingGraphMousePlugin<PipelineModule,Edge>();
    animatedPickingPlugin = new AnimatedPickingGraphMousePlugin<PipelineModule,Edge>();
    translatingPlugin = new TranslatingGraphMousePlugin(InputEvent.BUTTON1_MASK);
    scalingPlugin = new ScalingGraphMousePlugin(new CrossoverScalingControl(), 0, in, out);
    rotatingPlugin = new RotatingGraphMousePlugin();
    shearingPlugin = new ShearingGraphMousePlugin();
    editingPlugin = new EditorPlugin<PipelineModule,Edge>(vertexFactory, edgeFactory);
    labelEditingPlugin = new LabelEditingGraphMousePlugin<PipelineModule,Edge>();
    annotatingPlugin = new AnnotatingGraphMousePlugin<PipelineModule,Edge>(rc);
View Full Code Here

TOP

Related Classes of edu.uci.ics.jung.visualization.control.ScalingGraphMousePlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.