Examples of PluggableRenderer


Examples of edu.uci.ics.jung.visualization.PluggableRenderer

        putLayout(key, new StaticLayout(_myGraph));
        AbstractLayout l = getLayout(key);
        putVisualizationModel(key, new DefaultVisualizationModel(l, borderDimension));
        VisualizationModel vm = getVisualizationModel(key);
        putPR(key, new NexsmPluggableRenderer());
        PluggableRenderer pr = getPR(key);
        putVV(key, new VisualizationViewer(vm, pr, _dim));
        VisualizationViewer vv = getVV(key);
       
        putVV(key + "satellite", new SatelliteVisualizationViewer(vv, l, new PluggableRenderer(), new Dimension(160,160)));
        vv.setName(key);
        vv.setBorder(BorderFactory.createEtchedBorder());
        vv.setLayout(null);
       
        if (getBooleanParam("showcenterdot") != null) {
            if (getBooleanParam("showcenterdot"))
                addCenterDotPostRenderer(key);
        }
       
        if (getBooleanParam("showborder") != null) {
            if (getBooleanParam("showborder"))
                addBorderPreRenderer(key);
        }
       
        NexsmEditingModalGraphMouse graphMouse = new NexsmEditingModalGraphMouse(this);
       
        vv.setGraphMouse(graphMouse);
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
       
        pr.setGraphLabelRenderer(nglr);
        pr.setVertexStringer(vs);
        Predicate hiddenVertex = new HiddenVertexPredicate(userdatumkey+key);
        Predicate showEdge = new ShowEdgePredicate(userdatumkey+key);
        pr.setVertexIncludePredicate(hiddenVertex);
        pr.setEdgeIncludePredicate(showEdge);
       
        PluggableRenderer satelliteRenderer = (PluggableRenderer)getVV(key + "satellite").getRenderer();
        satelliteRenderer.setVertexIncludePredicate(hiddenVertex);
        satelliteRenderer.setEdgeIncludePredicate(showEdge);
        satelliteRenderer.setVertexPaintFunction(
                new PickableVertexPaintFunction(satelliteRenderer, Color.BLUE, Color.BLACK, Color.ORANGE));

        pr.setVertexIconFunction(vi);
        pr.setVertexShapeFunction(vi);
        pr.setEdgeStrokeFunction(new ConstantEdgeStrokeFunction(2));
View Full Code Here

Examples of edu.uci.ics.jung.visualization.PluggableRenderer

   */
  public static VisualizationViewer getG() {
    VisualizationViewer vv;
    try {
      g = getGraph();
      PluggableRenderer pr = new PluggableRenderer();

      vv = new VisualizationViewer(new TemporalSpringLayout(g,20), pr);
   

      return vv;
View Full Code Here

Examples of edu.uci.ics.jung.visualization.PluggableRenderer

  /**
   * @param app
   */
  public GenerateVv(Application app) {
    super();
                pr = new PluggableRenderer();
    this.app = app ;
                app.getRenderer().configureRenderer(pr);
    mapper = app.getMapper();
    // size = new UserDatumNumberVertexValue(GraphAttributeType.SIZE);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.