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

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


     * Loads the mouse plugins
     */
    @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();
View Full Code Here


        // Initialise the animation switch
        showAnimation_ = false;

        // 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);
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

        // each one has a different scaling plugin
        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);
View Full Code Here

                transformer);
        graph_panel.getRenderContext().setEdgeLabelTransformer(
                new ToStringLabeller<MarkovEdge>());
        PluggableGraphMouse gm = new PluggableGraphMouse();
        gm.add(new PopupMousePlugin<MarkovVertex, MarkovEdge>());
        gm.add(new TranslatingGraphMousePlugin(MouseEvent.BUTTON1_MASK));
        graph_panel.setGraphMouse(gm);
        Transformer<MarkovVertex, String> labelTransform = new VertexLabelTransformer<MarkovVertex, String>();
        graph_panel.getRenderContext()
                .setVertexLabelTransformer(labelTransform);
        return graph_panel;
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>();
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>();
View Full Code Here

TOP

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

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.