Package edu.uci.ics.jung.visualization.util

Examples of edu.uci.ics.jung.visualization.util.Animator


        l.setInitializer(vv.getGraphLayout());
        l.setSize(vv.getSize());
        layout = l;
        LayoutTransition<Vertex, Edge> lt = new LayoutTransition<Vertex, Edge>(
            vv, vv.getGraphLayout(), l);
        Animator animator = new Animator(lt);
        animator.start();
        vv.getRenderContext().getMultiLayerTransformer()
            .setToIdentity();
        vv.repaint();

      } catch (Exception e) {
View Full Code Here


                        l.setGraph(g);
                        l.setInitializer(vv.getGraphLayout());
                        l.setSize(vv.getSize());
                        LayoutTransition<Object, Object> lt = new LayoutTransition<Object, Object>(vv, vv
                                        .getGraphLayout(), l);
                        Animator animator = new Animator(lt);
                        animator.start();

                        layout = l;
                        vv.repaint();
                    }
                } catch (Exception ex) {
View Full Code Here

            relaxer.stop();
            relaxer.prerelax();
            StaticLayout<Object, Object> staticLayout = new StaticLayout<Object, Object>(g, layout);
            LayoutTransition<Object, Object> lt = new LayoutTransition<Object, Object>(vv, vv.getGraphLayout(),
                            staticLayout);
            Animator animator = new Animator(lt);
            animator.start();
        }
    }
View Full Code Here

      public void itemStateChanged(ItemEvent e) {
        if(e.getStateChange() == ItemEvent.SELECTED) {
         
          LayoutTransition<String,Integer> lt =
            new LayoutTransition<String,Integer>(vv, treeLayout, radialLayout);
          Animator animator = new Animator(lt);
          animator.start();
          vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
          vv.addPreRenderPaintable(rings);
        } else {
          LayoutTransition<String,Integer> lt =
            new LayoutTransition<String,Integer>(vv, radialLayout, treeLayout);
          Animator animator = new Animator(lt);
          animator.start();
          vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
          vv.removePreRenderPaintable(rings);
        }
        vv.repaint();
      }});
View Full Code Here

                StaticLayout<Number,Number> staticLayout =
                  new StaticLayout<Number,Number>(g, layout);
            LayoutTransition<Number,Number> lt =
              new LayoutTransition<Number,Number>(vv, vv.getGraphLayout(),
                  staticLayout);
            Animator animator = new Animator(lt);
            animator.start();
          //  vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
            vv.repaint();

                } else {
                    switchLayout.setText("Switch to SpringLayout");
                    layout = new FRLayout<Number,Number>(g, d);
                    layout.setSize(d);
                Relaxer relaxer = new VisRunner((IterativeContext)layout);
                relaxer.stop();
                relaxer.prerelax();
                StaticLayout<Number,Number> staticLayout =
                  new StaticLayout<Number,Number>(g, layout);
            LayoutTransition<Number,Number> lt =
              new LayoutTransition<Number,Number>(vv, vv.getGraphLayout(),
                  staticLayout);
            Animator animator = new Animator(lt);
            animator.start();
          //  vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
            vv.repaint();

                }
            }
View Full Code Here

            StaticLayout<Number,Number> staticLayout =
              new StaticLayout<Number,Number>(g, layout);
        LayoutTransition<Number,Number> lt =
          new LayoutTransition<Number,Number>(vv, vv.getGraphLayout(),
              staticLayout);
        Animator animator = new Animator(lt);
        animator.start();
//        vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
        vv.repaint();

            } else {
              done = true;
View Full Code Here

      public void itemStateChanged(ItemEvent e) {
        if(e.getStateChange() == ItemEvent.SELECTED) {

          LayoutTransition<String,Integer> lt =
            new LayoutTransition<String,Integer>(vv, layout, radialLayout);
          Animator animator = new Animator(lt);
          animator.start();
          vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT).setToIdentity();
          vv.addPreRenderPaintable(rings);
        } else {

          LayoutTransition<String,Integer> lt =
            new LayoutTransition<String,Integer>(vv, radialLayout, layout);
          Animator animator = new Animator(lt);
          animator.start();
          vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT).setToIdentity();
          vv.removePreRenderPaintable(rings);
        }
        vv.repaint();
      }});
View Full Code Here

                l.setInitializer(vv.getGraphLayout());
                l.setSize(vv.getSize());
                layout = l;
        LayoutTransition lt =
          new LayoutTransition(vv, vv.getGraphLayout(), l);
        Animator animator = new Animator(lt);
        animator.start();
        vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
        vv.repaint();
               
            }
            catch (Exception e)
View Full Code Here

      public void itemStateChanged(ItemEvent e) {
        if(e.getStateChange() == ItemEvent.SELECTED) {
         
          LayoutTransition<String,Integer> lt =
            new LayoutTransition<String,Integer>(vv, treeLayout, radialLayout);
          Animator animator = new Animator(lt);
          animator.start();
          vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
          vv.addPreRenderPaintable(rings);
        } else {
          LayoutTransition<String,Integer> lt =
            new LayoutTransition<String,Integer>(vv, radialLayout, treeLayout);
          Animator animator = new Animator(lt);
          animator.start();
          vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
          setLtoR(vv);
          vv.removePreRenderPaintable(rings);
        }
View Full Code Here

                l.setInitializer(vv.getGraphLayout());
                l.setSize(vv.getSize());
               
        LayoutTransition<Integer,Number> lt =
          new LayoutTransition<Integer,Number>(vv, vv.getGraphLayout(), l);
        Animator animator = new Animator(lt);
        animator.start();
        vv.getRenderContext().getMultiLayerTransformer().setToIdentity();
        vv.repaint();
               
            }
            catch (Exception e)
View Full Code Here

TOP

Related Classes of edu.uci.ics.jung.visualization.util.Animator

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.