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

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


  protected GraphElementAccessor<V,E> pickSupport;
 
    public LayoutLensSupport(VisualizationViewer<V,E> vv) {
        this(vv, new HyperbolicTransformer(vv, vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT)),
                new ModalLensGraphMouse());
    }
View Full Code Here


        "Mouse-Drag the Lens edge to resize it<p>"+
        "Ctrl+MouseWheel to change magnification</center></html>";
   
    public MagnifyImageLensSupport(VisualizationViewer<V,E> vv) {
        this(vv, new MagnifyShapeTransformer(vv),
                new ModalLensGraphMouse());
    }
View Full Code Here

        vv.addKeyListener(graphMouse.getModeKeyListener());
       
        hyperbolicViewSupport =
            new ViewLensSupport<String,Integer>(vv, new HyperbolicShapeTransformer(vv,
                vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.VIEW)),
                    new ModalLensGraphMouse());


        graphMouse.addItemListener(hyperbolicViewSupport.getGraphMouse().getModeListener());

        JComboBox modeBox = graphMouse.getModeComboBox();
View Full Code Here

        "Mouse-Drag the Lens edge to resize it<p>"+
        "Ctrl+MouseWheel to change magnification</center></html>";
   
    public HyperbolicImageLensSupport(VisualizationViewer<V,E> vv) {
        this(vv, new HyperbolicShapeTransformer(vv),
                new ModalLensGraphMouse());
    }
View Full Code Here

    vv.addPreRenderPaintable(rings);

        hyperbolicViewSupport =
            new ViewLensSupport<String,Integer>(vv, new HyperbolicShapeTransformer(vv,
                vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.VIEW)),
                    new ModalLensGraphMouse());
       
        final ScalingControl scaler = new CrossoverScalingControl();

        JButton plus = new JButton("+");
        plus.addActionListener(new ActionListener() {
View Full Code Here

        vv.addKeyListener(graphMouse.getModeKeyListener());
       
        hyperbolicViewSupport =
            new ViewLensSupport<String,Number>(vv, new HyperbolicShapeTransformer(vv,
                vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.VIEW)),
                    new ModalLensGraphMouse());
        hyperbolicLayoutSupport =
            new LayoutLensSupport<String,Number>(vv, new HyperbolicTransformer(vv,
                vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT)),
                    new ModalLensGraphMouse());
        magnifyViewSupport =
            new ViewLensSupport<String,Number>(vv, new MagnifyShapeTransformer(vv,
                vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.VIEW)),
                    new ModalLensGraphMouse(new LensMagnificationGraphMousePlugin(1.f, 6.f, .2f)));
        magnifyLayoutSupport =
            new LayoutLensSupport<String,Number>(vv, new MagnifyTransformer(vv,
                vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT)),
                    new ModalLensGraphMouse(new LensMagnificationGraphMousePlugin(1.f, 6.f, .2f)));
        hyperbolicLayoutSupport.getLensTransformer().setLensShape(hyperbolicViewSupport.getLensTransformer().getLensShape());
        magnifyViewSupport.getLensTransformer().setLensShape(hyperbolicLayoutSupport.getLensTransformer().getLensShape());
        magnifyLayoutSupport.getLensTransformer().setLensShape(magnifyViewSupport.getLensTransformer().getLensShape());
       
        final ScalingControl scaler = new CrossoverScalingControl();
View Full Code Here

TOP

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

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.